I've taken another look, and I actually think you're right. I'm going with
Gabor's. Changing d to a list is such a simple solution that I can't
believe I didn't try it earlier.
On Tue, Jul 3, 2012 at 1:39 PM, Peter Ehlers wrote:
> On 2012-07-03 09:47, Spencer Maynes wrote:
>
>> Thanks guys for t
On 2012-07-03 09:47, Spencer Maynes wrote:
Thanks guys for the help, I'm going to go with Patrick Burns answer because
it seems to work the best for my situation, but these all seem like they
should work.
Patrick's solution is similar to Gabor's, but, personally,
I favour Gabor's. Seems neatest
uesday, July 3, 2012 12:47 PM
Subject: Re: [R] Assigning a vector to every element of a list.
Thanks guys for the help, I'm going to go with Patrick Burns answer because
it seems to work the best for my situation, but these all seem like they
should work.
On Tue, Jul 3, 2012 at 2:51 AM, Patrick
Thanks guys for the help, I'm going to go with Patrick Burns answer because
it seems to work the best for my situation, but these all seem like they
should work.
On Tue, Jul 3, 2012 at 2:51 AM, Patrick Burns wrote:
> b <- rep(list(d), length(b))
>
>
> On 02/07/2012 23:16, Spencer Maynes wrote:
>
ct.org
Cc:
Sent: Monday, July 2, 2012 6:16 PM
Subject: [R] Assigning a vector to every element of a list.
I have a vector d of unknown length, and a list b of unknown length. I
would like to replace every element of b with d. Simply writing b<-d does
not work as R tries to fit every element
b <- rep(list(d), length(b))
On 02/07/2012 23:16, Spencer Maynes wrote:
I have a vector d of unknown length, and a list b of unknown length. I
would like to replace every element of b with d. Simply writing b<-d does
not work as R tries to fit every element of d to a different element of d,
and
On Mon, Jul 2, 2012 at 6:16 PM, Spencer Maynes wrote:
> I have a vector d of unknown length, and a list b of unknown length. I
> would like to replace every element of b with d. Simply writing b<-d does
> not work as R tries to fit every element of d to a different element of d,
> and b<-rep(d,len
On 2012-07-02 15:16, Spencer Maynes wrote:
I have a vector d of unknown length, and a list b of unknown length. I
would like to replace every element of b with d. Simply writing b<-d does
not work as R tries to fit every element of d to a different element of d,
and b<-rep(d,length(b)) does not w
I have a vector d of unknown length, and a list b of unknown length. I
would like to replace every element of b with d. Simply writing b<-d does
not work as R tries to fit every element of d to a different element of d,
and b<-rep(d,length(b)) does not work either as it makes a list of
length lengt
9 matches
Mail list logo