ParseAsDataFrame: Parse a Character Matrix To a Data Frame

View source: R/dataentry.R

ParseAsDataFrameR Documentation

Parse a Character Matrix To a Data Frame

Description

Takes a data.frame and performs extra parsing, for example with dates and percentages.

Usage

ParseAsDataFrame(
  m,
  warn = TRUE,
  want.factors = FALSE,
  want.col.names = NULL,
  want.row.names = FALSE,
  us.format = NULL
)

Arguments

m

A character matrix to be converted to data.frame

warn

Whether to show warnings.

want.factors

Whether a text variable should be converted to a factor in a data frame.

want.col.names

Whether to interpret the first row as column names in a data frame. If this is not set, then any non-numeric value in the first row will be used as column names.

want.row.names

Whether to interpret the first col as row names in a data frame.

us.format

Whether to use the US convention when parsing dates in a data frame.


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