View source: R/nds_load_data.R
nds_load_data | R Documentation |
.csv
filesThis function loads one or more .csv
files containing the NDS-BR data.
nds_load_data(pattern, folder = NULL, sep = ";", vars = NULL)
pattern |
A |
folder |
A |
sep |
A |
vars |
A |
nds_load_data
default considers that data inside the .csv
files
are separated by ';', and decimals are expressed by comma (','). If
sep
is set to ",", decimals must be expressed by ".". The
pattern
argument is used to identify a common initial text among the
files. If only one file is to be loaded, pattern
can be the full name
of the file. In the folder
argument it is possible to insert a path
of the folder in which the files are included. If this field is left empty,
the function considers that the files are present in the working directory
of the project (getwd()
). In the vars
parameter it is possible
to insert a character vector with the desired variable names to load.
A tibble of the NDS-BR dataset.
## Considering driver_A.csv, driver_B.csv and driver_C.csv:
path <- system.file("extdata", package = "ndsbr")
df <- nds_load_data("driver", path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.