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.
-
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
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
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
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
>
>
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
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)
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
8 matches
Mail list logo