On 13/07/2012 9:50 AM, Bert Gunter wrote:
Jessica:
On Fri, Jul 13, 2012 at 1:35 AM, Jessica Streicher wrote:
> two things:
>
> - R always counts from 1, not from 0
> - listmembers are accessed by using [[ ]] , not [ ]
>
FALSE! -- or at least not clearly stated:
> x <- list(a=letters[1:3],b
Jessica:
On Fri, Jul 13, 2012 at 1:35 AM, Jessica Streicher wrote:
> two things:
>
> - R always counts from 1, not from 0
> - listmembers are accessed by using [[ ]] , not [ ]
>
FALSE! -- or at least not clearly stated:
> x <- list(a=letters[1:3],b=1:4)
> x[[2]]
[1] 1 2 3 4
> x[2]
$b
[1] 1 2
thanks!
On Fri, Jul 13, 2012 at 4:35 AM, Jessica Streicher wrote:
> two things:
>
> - R always counts from 1, not from 0
> - listmembers are accessed by using [[ ]] , not [ ]
>
> try
>
> t1[t==ll[[1]], "v"] <- 99
>
> greetings Jessi
>
>
> On 11.07.2012, at 15:47, Charles Stangor wrote:
>
> > I c
two things:
- R always counts from 1, not from 0
- listmembers are accessed by using [[ ]] , not [ ]
try
t1[t==ll[[1]], "v"] <- 99
greetings Jessi
On 11.07.2012, at 15:47, Charles Stangor wrote:
> I can't seem to determine how to get the name of a list member to
> substitute:
>
> ll <- lis
It should. Reproducible example of it not?
Michael
On Jul 11, 2012, at 3:06 PM, Charles Stangor wrote:
> I can't seem to determine how to get the name of a list member to
> substitute as a variable name:
>
> ll <- list("a1" = "a","a2" = "b")
>
> t1[t==ll[1], "v"] <- 99
>
> why doesn't this s
5 matches
Mail list logo