Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

Examples

# 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)

expss

Tables, Labels and Some Useful Functions from Spreadsheets and 'SPSS' Statistics

v0.10.7
GPL (>= 2)
Authors
Gregory Demin [aut, cre], Sebastian Jeworutzki [ctb] (<https://orcid.org/0000-0002-2671-5253>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.