Package 'hellno'

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

Help Index


alternative as.data.frame() implementation

Description

hellno::as.data.frame() wraps up base::as.data.frame() so that stringAsFactors is set to HELLNO ( == FALSE ) by default

Usage

as.data.frame(x, row.names = NULL, optional = FALSE,
  stringsAsFactors = HELLNO, ...)

Arguments

x

see as.data.frame

row.names

see as.data.frame

optional

see as.data.frame

stringsAsFactors

see as.data.frame by default set to FALSE

...

see as.data.frame

See Also

as.data.frame


alternative data.frame() implementation

Description

hellno::data.frame() wraps up base::data.frame() so that stringAsFactors is set to HELLNO ( == FALSE ) by default

Usage

data.frame(..., stringsAsFactors = HELLNO)

Arguments

...

see data.frame

stringsAsFactors

see data.frame by default set to FALSE

See Also

data.frame


logical constant for FALSE

Description

logical constant for FALSE

Usage

HELLNO

Format

An object of class logical of length 1.


altenative rbind implementation

Description

altenative rbind implementation

Usage

rbind(..., deparse.level = 1)

Arguments

...

see rbind.data.frame

deparse.level

see rbind.data.frame

See Also

rbind.data.frame


altenative rbind.data.frame() implementation

Description

altenative rbind.data.frame() implementation

Usage

rbind.data.frame(..., deparse.level = 1, make.row.names = TRUE,
  stringsAsFactors = HELLNO)

Arguments

...

see rbind.data.frame

deparse.level

see rbind.data.frame

make.row.names

see rbind.data.frame

stringsAsFactors

rbind.data.frame by default set to FALSE

See Also

rbind.data.frame