Description Usage Arguments Value See Also Examples
read.table
1 |
... |
additional arguments passed to |
file |
the file or connection to read the table from |
data frame.
If a character column can be interpreted as dates, then it translates the value into POSIXct objects. Otherwise, it acts as utils::read.table
1 2 3 4 5 6 7 8 9 10 | name <- c("bob", "fred", "sally")
birthday <- c("01/22/1993", "02/25/1980", "03/31/1970")
birthday <- as.factor(birthday)
table <- data.frame(name,birthday)
conn <- textConnection("read.table.txt", 'w')
write.table(table, file=conn, quote=FALSE, sep="\t", row.names=FALSE)
conn <- textConnection(read.table.txt)
table.new <- read.table(conn, header=TRUE, sep="\t")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.