Re: [R] Help on not matching object lengths

2012-08-29 Thread William Dunlap
ibco.com > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf > Of Andras Farkas > Sent: Wednesday, August 29, 2012 9:19 AM > To: PIKAL Petr; r-help@r-project.org > Subject: Re: [R] Help on not matching object lengths &g

Re: [R] Help on not matching object lengths

2012-08-29 Thread Andras Farkas
should be 7.    Would you mind sharing your input on how to accomplish that?   thanks,   Andras   From: PIKAL Petr roject.org> Sent: Wednesday, August 29, 2012 11:11 AM Subject: RE: [R] Help on not matching object lengths Hi I am not sure if I understand it

Re: [R] Help on not matching object lengths

2012-08-29 Thread PIKAL Petr
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 c