Understood now. Thanks Duncan.
Muhammad
On Sat, 18 Jun 2011, Duncan Murdoch wrote:
On 11-06-18 10:45 AM, Muhammad Rahiz wrote:
Hi,
Can someone advise why the followind did not produce the array, given
the condition specified?
s<- 1
a1<- array(dim=c(1,4))
a2<- array(dim=c(2,4))
arr<- ifelse(s==0,a1,a2)
See the Value section of ?ifelse.
Duncan Murdoch
______________________________________________
R-help@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.