exampleNVSPL | R Documentation |
Sample NVSPL data stored as data.frames within a list object.
data(exampleNVSPL)
An object of class list
containing 9 data.frames.
The exampleNVSPL object can be used to experiment with functions that use NVSPL data. See the example code given in nvspl_to_ai
.
# Create an input directory for this example
dir.create('example-input-directory')
# Read in example NVSPL data
data(exampleNVSPL)
# View structure
str(exampleNVSPL, 1)
# Write example NVSPL data to example input directory to mimic NVSPL .txt format
for (i in 1:length(exampleNVSPL)) {
write.table(x = exampleNVSPL[[i]],
file = paste0('example-input-directory/', names(exampleNVSPL)[i]),
sep = ',',
quote = FALSE)
}
# Delete all temporary example files when finished
unlink(x = 'example-input-directory', recursive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.