Re: [R] col.names in as.data.frame() ?

2023-10-28 Thread Boris Steipe
lt;- c("collective", "category") >> nouns > collective category > 1 gagglegeese > 2 duledoves > 3 wake vultures > > Is there a known bug here or is the documentation wrong? > > -Original Message- > From: R-h

Re: [R] col.names in as.data.frame() ?

2023-10-28 Thread avi.e.gross
duledoves 3 wake vultures Is there a known bug here or is the documentation wrong? -Original Message- From: R-help On Behalf Of Boris Steipe Sent: Saturday, October 28, 2023 1:54 PM To: R. Mailing List Subject: [R] col.names in as.data.frame() ? I have been trying t

Re: [R] col.names in as.data.frame() ?

2023-10-28 Thread Duncan Murdoch
Sent a slightly shorter version of this to your email, this one is to the list: On 28/10/2023 1:54 p.m., Boris Steipe wrote: > > I have been trying to create a data frame from some structured text in a single expression. Reprex: > > > > nouns <- as.data.frame( > >matrix(c( > >

[R] col.names in as.data.frame() ?

2023-10-28 Thread Boris Steipe
I have been trying to create a data frame from some structured text in a single expression. Reprex: nouns <- as.data.frame( matrix(c( "gaggle", "geese", "dule", "doves", "wake", "vultures" ), ncol = 2, byrow = TRUE), col.names = c("collective", "category")