ubject: Re: [R] Recursive Indexing Failed
> To: "Duncan Murdoch"
> Cc: "Alaios" , "R-help@r-project.org"
> Date: Monday, May 9, 2011, 2:57 PM
> On 05/09/2011 09:52 AM, Duncan
> Murdoch wrote:
> >> In general, the expression x[[1:2]] is not
> m
On 05/09/2011 09:52 AM, Duncan Murdoch wrote:
In general, the expression x[[1:2]] is not meaningful, as the elements
of the list may be of different type, with no way to concatenate them.
That's the wrong explanation: the expression x[[1:2]] is meaningful,
but it means the same thing as x[[1]]
On 09/05/2011 9:18 AM, Patrick Breheny wrote:
On 05/09/2011 08:58 AM, Alaios wrote:
> Dear all,
> I would like to ask your help concerning an error message I get.
>
> I have the following struct
>
> str(CRagentInTime[[1]])
> List of 2
>$ timelag: int 0
>$ CRagent:List of 50
> ..$
elf-contained.
___
Patrick Breheny
Assistant Professor
Department of Biostatistics
Department of Statistics
University of Kentucky
--- On Mon, 5/9/11, Patrick Breheny wrote:
From: Patrick Breheny
Subject: Re: [R] Recursive Indexing Failed
To: "Alaios"
Cc: &qu
usually requires "[", not "[[".
>
> Best REgards
> Alex
>
> --- On Mon, 5/9/11, Patrick Breheny wrote:
>
>> From: Patrick Breheny
>> Subject: Re: [R] Recursive Indexing Failed
>> To: "Alaios"
>> Cc: "R-help@r-proje
So the only thing that might work is a for..loop to collect all these together?
Best REgards
Alex
--- On Mon, 5/9/11, Patrick Breheny wrote:
> From: Patrick Breheny
> Subject: Re: [R] Recursive Indexing Failed
> To: "Alaios"
> Cc: "R-help@r-project.org"
>
On 05/09/2011 08:58 AM, Alaios wrote:
Dear all,
I would like to ask your help concerning an error message I get.
I have the following struct
str(CRagentInTime[[1]])
List of 2
$ timelag: int 0
$ CRagent:List of 50
..$ :List of 3
.. ..$ CRmap: num [1:256, 1:256] NA NA NA NA NA NA NA NA
Dear all,
I would like to ask your help concerning an error message I get.
I have the following struct
str(CRagentInTime[[1]])
List of 2
$ timelag: int 0
$ CRagent:List of 50
..$ :List of 3
.. ..$ CRmap: num [1:256, 1:256] NA NA NA NA NA NA NA NA NA NA ...
.. ..$ xy : num [1:2] 10 177
e selecting 20 elements.
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf Of Jim Hargreaves
Sent: Saturday, 26 June 2010 9:54 PM
To: r-help@r-project.org
Subject: [R] Recursive indexing failed at level 2
Dear fellow R users,
I am repla
On 06/26/2010 02:07 PM, Duncan Murdoch wrote:
Jim Hargreaves wrote:
Hi Duncan, list,
Thanks for the advice, but unfortunately that wasn't what was causing
my problem. I'm still getting the "Recursive indexing failed at level
2" message even after replacing my unlist(pulse[i]) with pulse[[i]].
Jim Hargreaves wrote:
Hi Duncan, list,
Thanks for the advice, but unfortunately that wasn't what was causing my
problem. I'm still getting the "Recursive indexing failed at level 2"
message even after replacing my unlist(pulse[i]) with pulse[[i]].
Read the second part of my first message,
Hi Duncan, list,
Thanks for the advice, but unfortunately that wasn't what was causing my
problem. I'm still getting the "Recursive indexing failed at level 2"
message even after replacing my unlist(pulse[i]) with pulse[[i]].
Error:
>
pulse_subset[[1:as.numeric(length(pulse[[i]][as.numeric(
On 26/06/2010 8:29 AM, Jim Hargreaves wrote:
On 06/26/2010 01:20 PM, Duncan Murdoch wrote:
On 26/06/2010 7:53 AM, Jim Hargreaves wrote:
Dear fellow R users,
I am replacing elements of a list like so:
pulse_subset[[1:20]]=unlist(pulse[i])[1:20]
If pulse is a list, then pulse[i]
On 06/26/2010 01:20 PM, Duncan Murdoch wrote:
On 26/06/2010 7:53 AM, Jim Hargreaves wrote:
Dear fellow R users,
I am replacing elements of a list like so:
pulse_subset[[1:20]]=unlist(pulse[i])[1:20]
If pulse is a list, then pulse[i] is also a list, with one element. I
think you want pulse[
On 26/06/2010 7:53 AM, Jim Hargreaves wrote:
Dear fellow R users,
I am replacing elements of a list like so:
pulse_subset[[1:20]]=unlist(pulse[i])[1:20]
If pulse is a list, then pulse[i] is also a list, with one element. I
think you want pulse[[i]], which extracts element i.
If pulse_s
Dear fellow R users,
I am replacing elements of a list like so:
pulse_subset[[1:20]]=unlist(pulse[i])[1:20]
where pulse is a list of lists, and pulse [i] has >20 values.
This gives the error "Recursive Indexing failed at level 2". But,
interestingly this instruction is part of a loop which ha
16 matches
Mail list logo