[R] Array

Muhammad Rahiz muhammad.rahiz at ouce.ox.ac.uk
Sat Jun 18 16:45:15 CEST 2011


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)

Thanks.

Muhammad



More information about the R-help mailing list