Learn R Programming

expss (version 0.11.4)

sheet: Make data.frame without conversion to factors and without fixing names

Description

sheet and as.sheet are shortcuts to data.frame and as.data.frame with stringsAsFactors = FALSE, check.names = FALSE.

Usage

sheet(...)

as.sheet(x, ...)

Value

data.frame/list

Arguments

...

objects, possibly named

x

object to be coerced to data.frame

See Also

Examples

Run this code

# see the difference
df1 = data.frame(a = letters[1:3], "This is my long name" = 1:3)
df2 = sheet(a = letters[1:3], "This is my long name" = 1:3)

str(df1)
str(df2)


Run the code above in your browser using DataLab