coerceToDataFrame: coerceToDataFrame

View source: R/preparedata.R

coerceToDataFrameR Documentation

coerceToDataFrame

Description

Takes various formats of data (in particular, lists of variables and data.frames, and forces them to become a data frame. Where the coercion involves creating rows in the data frame that are unlikely to be from the same analysis unit, a warning is provided.

Usage

coerceToDataFrame(x, chart.type = "Column", remove.NULLs = TRUE)

Arguments

x

Input data which may be a list of variables or dataframe

chart.type

For any value except "Scatter", x$Y will be ignored if x$X contains more than one variable

remove.NULLs

Logical; whether to remove null entries

Value

A data.frame)


Displayr/flipChart documentation built on Sept. 20, 2024, 10:56 a.m.