Monday, 12 January 2015

Manipulating data and data frames...

Some nice commands today:

To remove a data file:

rm(df.data2) 


To transpose a data frame (i.e. to swap columns and rows):

data2 <- as.data.frame(t(data)) #transform the columns into rows.

info from here:
http://stackoverflow.com/questions/6778908/r-transposing-a-data-frame

No comments:

Post a Comment