Title: | A Solution to the 'stringsAsFactors=FALSE' Problem |
---|---|
Description: | Base R's default setting for 'stringsAsFactors' within 'data.frame()' and 'as.data.frame()' is supposedly the most often complained about piece of code in the R infrastructure. The 'hellno' package provides an explicit solution without changing R itself or having to mess around with options. It tries to solve this problem by providing alternative 'data.frame()' and 'as.data.frame()' functions that are in fact simple wrappers around base R's 'data.frame()', 'as.data.frame()', 'rbind()' and 'rbind.as.data.frame()' with 'stringsAsFactors' option set to 'HELLNO' (which in turn equals FALSE) by default. |
Authors: | Peter Meissner |
Maintainer: | Peter Meissner <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.2.0 |
Built: | 2024-11-21 05:20:28 UTC |
Source: | https://github.com/petermeissner/hellno |
hellno::as.data.frame()
wraps up base::as.data.frame()
so that
stringAsFactors
is set to HELLNO
( == FALSE
) by default
as.data.frame(x, row.names = NULL, optional = FALSE, stringsAsFactors = HELLNO, ...)
as.data.frame(x, row.names = NULL, optional = FALSE, stringsAsFactors = HELLNO, ...)
x |
see |
row.names |
see |
optional |
see |
stringsAsFactors |
see |
... |
see |
hellno::data.frame()
wraps up base::data.frame()
so that
stringAsFactors
is set to HELLNO
( == FALSE
) by default
data.frame(..., stringsAsFactors = HELLNO)
data.frame(..., stringsAsFactors = HELLNO)
... |
see |
stringsAsFactors |
see |
logical constant for FALSE
HELLNO
HELLNO
An object of class logical
of length 1.
altenative rbind implementation
rbind(..., deparse.level = 1)
rbind(..., deparse.level = 1)
... |
see |
deparse.level |
see |
altenative rbind.data.frame() implementation
rbind.data.frame(..., deparse.level = 1, make.row.names = TRUE, stringsAsFactors = HELLNO)
rbind.data.frame(..., deparse.level = 1, make.row.names = TRUE, stringsAsFactors = HELLNO)
... |
see |
deparse.level |
see |
make.row.names |
see |
stringsAsFactors |
|