Skip to content

Array

4 messages · Peter Dalgaard, Bronagh Grimes, Erik Iverson

#
Bronagh Grimes wrote:

            
You're presupposing that R works like SAS. It doesn't.

This looks like a job for reshape (either Hadley Wickham's package or
the built-in function).

  
    
#
Thanks for this, will have a look now.

Much appreciated,

-----Original Message-----
From: Peter Dalgaard [mailto:P.Dalgaard at biostat.ku.dk] 
Sent: 24 April 2009 11:40
To: Bronagh Grimes
Cc: r-help at r-project.org
Subject: Re: [R] Array
Bronagh Grimes wrote:

            
You're presupposing that R works like SAS. It doesn't.

This looks like a job for reshape (either Hadley Wickham's package or
the built-in function).

  
    
#
Bronagh Grimes wrote:
You're probably going to get more useful responses in general if, instead of 
posting code from SAS to be ported to R, you describe what the code is doing 
(e.g., give some sample input, and describe what you'd like the output to be).

That way, you do not limit those who will reply to the set of people who
know SAS.  Many times, the concepts will be different between the two approaches 
one would take when programming something in SAS and R.