Learn R Programming

expss (version 0.10.7)

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. .sheet is the same as above but works in the scope of default dataset.

Usage

sheet(...)

as.sheet(x, ...)

.sheet(...)

Arguments

...

objects, possibly named

x

object to be coerced to data.frame

Value

data.frame/list

See Also

default_dataset, data.frame, as.data.frame

Examples

Run this code
# NOT RUN {
# 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)


data(iris)
default_dataset(iris)

.sheet(Sepal.Width,  Sepal.Length)

# }

Run the code above in your browser using DataLab