| is_factor_file | R Documentation |
Check if a file encodes a factor
is_factor_file(con = stdin())
is_cls_file(con = stdin())
con |
Connection from which to read the file |
Logical, TRUE if the file is a valid CLS factor file,
FALSE otherwise.
set.seed(1887)
tempfac <- factor(sample(LETTERS, 30, replace=TRUE), levels=sample(LETTERS))
tempfile <- tempfile()
write_factor(tempfac, tempfile)
is_factor_file(tempfile)
write_factor(tempfac, tempfile, sep=" ")
is_factor_file(tempfile)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.