[R] Splus equivalent of reshape in R

Jim Lemon jim at bitwrit.com.au
Wed May 16 13:53:15 CEST 2012


On 05/16/2012 01:18 PM, Santosh wrote:
> Hello R/Splus users..
> I am posting in R discussion group in hope of wider response compared to
> what I received from Splus user groups....
>
> Was wondering if there is any function available in Splus 8.2 that is
> equivalent to "reshape" of R?
>
> Below is a sample dataset. Size [both rows and columns) of the dataset may
> vary...

Hi Santosh,
You may be able to use the code in the function rep_n_stack in the 
prettyR package in S-PLUS. It does what you want, and since it is 
written in R source code, it may run in S-PLUS. Just extract the code 
and "source" it into S-PLUS.

Jim



More information about the R-help mailing list