[R] Create a temporal file to test with data

# create data
data <- c(1:5, "6,7", "8,9,10")
# create temporal file
tf <- tempfile()
writeLines(data, tf)
# manipulation with file
data <- read.table(tf)
# remove temporal file
unlink(tf)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s