AsDataFrame: 'AsDataFrame'

View source: R/asdataframe.R

AsDataFrameR Documentation

AsDataFrame

Description

Converts input data to a numeric data.frame.

Usage

AsDataFrame(
  input.data,
  use.names = FALSE,
  ignore.columns = "",
  categorical.as.binary = FALSE,
  remove.first = FALSE
)

Arguments

input.data

Either a data.frame, a list of data.frames and/or vectors, or a matrix.

use.names

Whether to use names in place of labels, used only for a list of vectors.

ignore.columns

A list of names of columns to ignore. When input.data is a matrix, rows are also ignored.

categorical.as.binary

Whether to convert factors to dummy binary variables, or else their levels are converted to integers.

remove.first

Whether to remove the first binary variable.


NumbersInternational/flipTransformations documentation built on Feb. 26, 2024, 6:43 a.m.