View source: R/nds_split_data.R
nds_split_data | R Documentation |
nds_split_data(data, driver = .data$DRIVER)
data |
A data.frame or tibble with naturalistic data |
driver |
A column with the names of the drivers. |
This function splits the naturalistic data into the original separation of the NDS-BR sample.
nds_split_data
takes the naturalistic data imported by
nds_load_data and splits into four tibbles, matching the original
separation of drivers provided by the sample of NDS-BR. The function uses
the column containing driver names to properly split the data.
A list with four tibbles of the NDS-BR dataset.
path <- system.file("extdata", package = "ndsbr")
df <- nds_load_data("driver", path)
df_split <- nds_split_data(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.