Skip to content

Help on not matching object lengths

4 messages · Andras Farkas, PIKAL Petr, William Dunlap

#
Hi

I am not sure if I understand it correctly but maybe
a <-seq(0,8, by = sign(8-0)*0.25)
b <-seq(8,16, by = sign(16-8)*0.25)
const <-runif(1000,50,60)
const <- rep(const, 33)
d <-exp(-const*a)+exp(-const*b)
dim(d) <- c(33,1000)

gives you matrix 33x1000

Maybe you can simplyfy the example to 10 columns and 3 rows and show better what do you want to do with it.

Regards
Petr
#
[1] 3 3 3 4 4 4 4 4 4 4
[1] 7

Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com