monkeymike.co.uk

July 2, 2009

Importing data

Filed under: R hints and Tips — @ 5:45 pm

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.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

You must be logged in to post a comment.

Powered by WordPress