Description Usage Arguments Value See Also Examples
Read external CTF data into the corresponding R data frame.
1 | read.ctf(location, columns, nrows)
|
location |
location of the CTF data, either a file path to a CTF metadata JSON file, or a directory containing a single CTF metadata JSON file. |
columns |
names of the columns to read. If missing, then read in all columns. |
nrows |
integer, the maximum number of rows to read in. If missing, then read in all rows. |
data frame
write.ctf
to write CTF
1 2 3 4 5 6 7 8 | # An example CTF metadata file included in this package
d <- system.file("extdata", "vgsales", "vgsales-metadata.json", package = "ctf")
# Read all the rows and columns
vgsales <- read.ctf(d)
# Read 10 rows of two columns, Name and Rank
vgsales2 <- read.ctf(d, columns = c("Name", "Rank"), nrows = 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.