nds_split_data: Split naturalistic data into the original files

View source: R/nds_split_data.R

nds_split_dataR Documentation

Split naturalistic data into the original files

Description

[Deprecated]

Usage

nds_split_data(data, driver = .data$DRIVER)

Arguments

data

A data.frame or tibble with naturalistic data

driver

A column with the names of the drivers.

Details

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.

Value

A list with four tibbles of the NDS-BR dataset.

Examples

path <- system.file("extdata", package = "ndsbr")
df <- nds_load_data("driver", path)
df_split <- nds_split_data(df)

pabsantos/ndsbr documentation built on June 13, 2024, 3:47 a.m.