set_segments: Creates a dataframe with .id and segment, from the name of a...

Description Usage Arguments Value

View source: R/setter.R

Description

Creates a dataframe with .id and segment, from the name of a factor column of the test frame.

Usage

1
set_segments(col_names, id_names, test_data)

Arguments

col_names

'character()'
Column names to extract from the dataframe.

id_names

'character()'
Column used as unique line ids.

test_data

'data.frame()'
A dataframe with vectors as columns from which to fetch the data.

Value

'data.frame()'
Data frame with id_names and "segment".


signaux-faibles/MLsegmentr documentation built on Aug. 29, 2019, 2:22 p.m.