Importing data

temp <- read.table('clipboard', header=TRUE)
DataFrameName <-read.csv ("C:/filename.csv", header= TRUE)

When importing from the clipboard make sure you don't have any commas or spaces in the data or the headings as it may fail to import correctly. You'll get errors talking about too many or to few columns if you leave them in.

Leave a Reply