search for: conmensurable

Displaying 1 result from an estimated 1 matches for "conmensurable".

Did you mean: commensurable
1998 Oct 14
1
Re: R vrs S
...im=c(dim(a),dim(b)[2]))) } in S-Plus given x = ( 1 1 1 2 1 3 1 4 ) po(x,x) gives [,,1] = 1 1 1 2 1 3 1 4 [,,2] = 1 1 2 4 3 9 4 16 ie a collection of flats of outer products, now in R the same function gives an error for un conmensurable arrays. I have to re- write po as po <- function(a,b) { bb <- array(0,dim=c(dim(a),dim(b)[2]) for (i in 1:dim(a)[1]) { bb[i,,] <= outrer(a[i,],b[i,]) } bb } Am I missing something? . The help files for 'apply' in R and is S+ are exaclty the same, but the...