Description Usage Arguments Value Examples
Read a unitted data.frame from a text file that was written using write_unitted.
| 1 2 | 
| file | The file to read in | 
| comment.char | a single-character string. should describe any comments INCLUDING the special character, if any, that begins the units line (i.e., the comment.char that was specified in write_unitted) | 
| header | logical indicating whether to read in the header (and units), 
as in  | 
| sep | character string separating columns of the table, as in 
 | 
| stringsAsFactors | logical indicating whether to convert strings to 
factors, as in  | 
| ... | Other arguments passed to  | 
| attach.units | logical. If TRUE, the returned value is unitted. If FALSE, units in the text file are ignored entirely and the return value is a non-unitted data.frame. | 
a unitted_data.frame if attach.units=TRUE, or a data.frame if attach.units=FALSE.
| 1 2 3 4 5 | practice <- u(data.frame(x=1:3, y=9:7, row.names=as.character(1:3)), c(x="grapes","seeds"))
write_unitted(practice, file="practice.tsv")
read_unitted("practice.tsv")
all.equal(practice, read_unitted("practice.tsv"))
file.remove("practice.tsv")
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.