Re: [R] array of arrays

From: Michael Prince <michaelprnc_at_gmail.com>
Date: Mon, 09 Jun 2008 18:44:22 +0200

Thanks to all three of you.

I used a 4 dimensional array as you suggested.

I will have to do a lot of loops with loop variables i and j. I should perhaps save my results from time to time, no ? If I need to save "object1" and "object2",
the command should be save(object1,object2,file=paste("save",i,j)), right ?

Thank you very much

P.S. : It is rather usual to have this kind of work to do, isn't it ? If you have any advice, thanks for telling me.

2008/6/5 Patrick Burns <pburns_at_pburns.seanet.com>:

> I think what you want is a 3 or 4 dimensional array.
> S Poetry has a chapter on such things.
>
> It is also possible to have arrays of arrays, but I don't
> think that is what you want.
>
>
> Patrick Burns
> patrick_at_burns-stat.com
> +44 (0)20 8525 0696
> http://www.burns-stat.com
> (home of S Poetry and "A Guide for the Unwilling S User")
>
> Michael Prince wrote:
>
>> Dear R users,
>>
>> I want to calculate the bias and variance of an estimator for several
>> values
>> of two parameters a and b.
>>
>> For example :
>>
>> b1 b2
>> a1 bias bias
>> variance variance
>> a2 bias bias
>> variance variance
>>
>> Can one do array of arrays ? I have tried and it did not work.
>>
>> Actually I would like to get this array for several values of the number
>> of
>> observations. That would be an array of arrays of arrays :-)
>>
>> Maybe there is a better way to do that...
>>
>> Is there also a way to export arrays to Latex ?
>>
>> Thank you very much
>>
>> [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-help_at_r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>>
>>
>>
>

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 09 Jun 2008 - 17:09:32 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 09 Jun 2008 - 17:30:40 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive