condense_rows: Condense rows

Description Usage Arguments Value

View source: R/utils.R

Description

Condense two vectors - where the first vector is an id vector and the second vector is an target (which must be unique) - into a data.table with two columns (id and target).

Usage

1
condense_rows(id, target, names = NULL)

Arguments

id

(integer()) a integer vector contains ids.

target

(integer()) a integer vector contains values with the same length as id.

names

(Default as NULL)

Value

a data.table with two columns, id and target.


dymium-org/dymiumCore documentation built on July 18, 2021, 5:10 p.m.