On Sun, Sep 25, 2011 at 9:40 AM, David Winsemius wrote:
> (I do not know why Sarah Goslee is telling you that you cannot access
> matrices with column names. You clearly can do so. Maybe I misread her
> statement.)
I suppose I should have said that you can't access matrices via column
name *like
On Sep 25, 2011, at 5:03 AM, 阮铮 wrote:
This is my first time to ask for help in the R mailing list, so
sorry for my misbehavior.
The question is actually an example of the apply function embedded
in R. Code is here:
x <- cbind(x1 = 3, x2 = c(4:1, 2:5))
> dimnames(x)[[1]] <- letters[1:8
Hi,
On Sun, Sep 25, 2011 at 5:03 AM, 阮铮 wrote:
> This is my first time to ask for help in the R mailing list, so sorry for my
> misbehavior.
>
>
> The question is actually an example of the apply function embedded in R. Code
> is here:
>
>> x <- cbind(x1 = 3, x2 = c(4:1, 2:5)) > dimnames(x)[[1]
This is my first time to ask for help in the R mailing list, so sorry for my
misbehavior.
The question is actually an example of the apply function embedded in R. Code
is here:
> x <- cbind(x1 = 3, x2 = c(4:1, 2:5)) > dimnames(x)[[1]] <- letters[1:8] > x
> x1 x2 a 3 4 b 3 3 c 3 2 d 3
4 matches
Mail list logo