| readTable | R Documentation |
writeMatrixreadTable reads a data.frame written by writeMatrix into a R session
readTable(file, row.names = TRUE, ...)
file |
file to be read in |
row.names |
Logical, whether the first column contains row names (should be consistent with the settign in |
... |
Other parameters passed to |
Default behaviour of read.table is adapted to the convention used in writeMatrix
A data.frame object
test.df <- data.frame(Team=c("HSV", "BVB", "VFB"), Score=c(21, 19, 17))
tmpfile <- tempfile()
writeMatrix(test.df, tmpfile)
readin.df <- readTable(tmpfile)
stopifnot(identical(as.character(readin.df$Team), c("HSV", "BVB", "VFB")))
stopifnot(identical(readin.df$Score, c(21L, 19L, 17L)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.