asNumericList: 'AsNumericList'

View source: R/list.R

asNumericListR Documentation

AsNumericList

Description

Coerce a list of numeric or factor variables into a list where the elements of the list are numeric.

Usage

asNumericList(x, binary = TRUE, remove.first = FALSE, return.data.frame = TRUE)

Arguments

x

A list containing the variables to combine. The elements of the list should be of class numeric, factor, or ordered factor.

binary

If TRUE, unordered factors are represented as dummy variables. Otherwise, they are represented as sequential integers.

remove.first

Remove the first binary variable.

return.data.frame

Returns as a data.frame.

Value

A data.frame or list.


Displayr/flipTransformations documentation built on Feb. 26, 2024, 12:47 a.m.