| read_spec | R Documentation |
write_spec()Read a spec CSV written by write_spec()
read_spec(path)
path |
Path to the spec |
A spec data.frame.
df <- data.frame(id = sprintf("AB%03d", 1:60), value = 1:60)
path <- file.path(tempdir(), "read_spec_source.csv")
utils::write.csv(df, path, row.names = FALSE, na = "")
spec <- infer_spec(read_source(path))
spec_path <- file.path(tempdir(), "read_spec.csv")
write_spec(spec, spec_path)
reviewed <- read_spec(spec_path)
reviewed[, c("column", "role")]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.