On May 20, 2010, at 11:05 PM, santana sarma wrote:
Hi,
I have a dataframe with some 800 rows and 14 columns.
Could you please advise how I can concatenate the rows - one after
another.
Similarly for columns, one below the other.
Not sure exactly what you are after:
unlist might accomplish the second task.
Whether c(apply(df, 1, I)) would be satisfactory for the first task
might depend on whether the columns in the dataframe were all of the
same type. Now that I think of it, both soolutions would force the
types to be that same.
?"c"
?I
?apply
df[1:nrow(df), ] ... would essentially give you the first request,
but it would not be any different than just typing df. So .... what do
intend this process to accomplish?
--
David Winsemius, MD
West Hartford, CT
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.