adf: Convert to data.frame, without factors

Description Usage Arguments Details Value Author(s) Examples

View source: R/mod09nrt.R

Description

Shortcut for: as.data.frame(x, row.names=NULL, stringsAsFactors=FALSE)

Usage

1
adf(x)

Arguments

x

matrix or other object transformable to data.frame

Details

This function is useful for dealing with errors due to automatic conversion of some columns to factors. Another solution may be to prepend options(stringsAsFactors = FALSE) at the start of one's script, to turn off all default stringsAsFactors silliness.

Value

data.frame

Author(s)

Nicholas J. Matzke [email protected]

Examples

1
2
x = matrix(c(1,2,3,4,5,6), nrow=3, ncol=2)
adf(x)

mod09nrt documentation built on May 29, 2017, 6:08 p.m.

Related to adf in mod09nrt...