| write_spec | R Documentation |
Only the role column is meant to be edited by hand; the rest documents
why the heuristics chose it. The file holds column names and counts only,
no cell values.
write_spec(spec, path)
spec |
A spec data.frame. |
path |
Output |
path, invisibly.
df <- data.frame(id = sprintf("AB%03d", 1:60), value = 1:60)
path <- file.path(tempdir(), "write_spec_source.csv")
utils::write.csv(df, path, row.names = FALSE, na = "")
spec <- infer_spec(read_source(path))
spec_path <- file.path(tempdir(), "write_spec.csv")
write_spec(spec, spec_path)
file.exists(spec_path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.