Re: [R] creating a data.frame from scratch

2019-04-23 Thread PIKAL Petr
R-intro which should be part of your R installation. Cheers Petr > -Original Message- > From: R-help On Behalf Of Drake Gossi > Sent: Saturday, April 20, 2019 1:40 AM > To: r-help@r-project.org > Subject: [R] creating a data.frame from scratch > > Hello everyone, &g

Re: [R] creating a data.frame from scratch

2019-04-19 Thread Jeff Newmiller
You seem to be trying to learn R ... sideways... or backwards, perhaps. Have you read An Introduction to R[1], included with every copy of the software? In particular, there are sections on data frames [2] (which should be read in the context of the discussion on lists, as it is presented. The

[R] creating a data.frame from scratch

2019-04-19 Thread Drake Gossi
Hello everyone, Is there any way to create a data.frame from scratch? other than, say, this? > structure(list(Fruit = structure(c(1L, 2L, 5L, 4L, 3L), .Label = c("apple", "banana", "kiwi", "orange", "pear"), class = "factor"), Color = structure(c(3L, 4L, 1L, 2L, 1L), .Label = c("green", "orange",