Re: [R] setting attributes

2010-11-04 Thread Johannes Huesing
David Winsemius [Fri, Nov 05, 2010 at 05:18:23AM CET]: [...] > If you were trying for something else, then please explain in plain > English rather than simply showing code that throws an error. > Well, code never hurts. But it should be accompanied with a hint towards what it is meant to do. -

Re: [R] setting attributes (SOLVED)

2010-11-04 Thread Stephen Liu
From: Erik Iverson To: r-help@r-project.org Sent: Fri, November 5, 2010 1:09:19 PM Subject: Re: [R] setting attributes (SOLVED) >> The learning curve of R is rather steep at start. >Yes, it can be. I think the general advice would be >to get a good Intro to R book if you're j

Re: [R] setting attributes (SOLVED)

2010-11-04 Thread Erik Iverson
The learning curve of R is rather steep at start. Yes, it can be. I think the general advice would be to get a good Intro to R book if you're just starting out. That's certainly my advice. Or, get a book on some methods you're interested in that uses R (the Springer useR! series is really us

Re: [R] setting attributes (SOLVED)

2010-11-04 Thread Stephen Liu
ep at start. B.R. Stephen L - Original Message From: Michael Sumner To: Stephen Liu Cc: r-help@r-project.org Sent: Fri, November 5, 2010 12:44:08 PM Subject: Re: [R] setting attributes David did help already, but if you want literally what the Introduction uses then you'll need a vector

Re: [R] setting attributes

2010-11-04 Thread Michael Sumner
ror > running the code.  Please help. > > B.R. > Stephen L > > > > > - Original Message > From: David Winsemius > To: Stephen Liu > Cc: r-help@r-project.org > Sent: Fri, November 5, 2010 12:18:23 PM > Subject: Re: [R] setting attributes > >

Re: [R] setting attributes

2010-11-04 Thread Stephen Liu
e: [R] setting attributes On Nov 5, 2010, at 12:05 AM, Stephen Liu wrote: > Hi folks, > > An Introduction to R > > 3.3 Getting and setting attributes > http://cran.r-project.org/doc/manuals/R-intro.html#Vectors-and-assignment > >> z <- 0:9 >> z > [1] 0 1 2

Re: [R] setting attributes

2010-11-04 Thread David Winsemius
On Nov 5, 2010, at 12:05 AM, Stephen Liu wrote: Hi folks, An Introduction to R 3.3 Getting and setting attributes http://cran.r-project.org/doc/manuals/R-intro.html#Vectors-and-assignment z <- 0:9 z [1] 0 1 2 3 4 5 6 7 8 9 attr(z, "dim") <- c(10,10) Error in attr(z, "dim") <- c(10, 10)

[R] setting attributes

2010-11-04 Thread Stephen Liu
Hi folks, An Introduction to R 3.3 Getting and setting attributes http://cran.r-project.org/doc/manuals/R-intro.html#Vectors-and-assignment > z <- 0:9 > z [1] 0 1 2 3 4 5 6 7 8 9 > attr(z, "dim") <- c(10,10) Error in attr(z, "dim") <- c(10, 10) : dims [product 100] do not match the length o