
as.data.frame(x, row.names=NULL,
stringsAsFactors=FALSE)
adf(x)
adf2
, are 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.
adf2
x = matrix(c(1,2,3,4,5,6), nrow=3, ncol=2)
adf(x)
Run the code above in your browser using DataLab