Hi! Can you help me? I would like to make a vector from p pre-determined vector. The parameter p can change. I've try with ?c with unsuccess! An idee? Sorry for my english! Thanks Fred
1. Don't worry about your english. For most of the people who follow this list, English is a second language. 2. It would help if you provided an example of what you tried that didn't work. 3. Does the following answer your question: > a <- 1:2 > b <- 3:4 > (d <- c(a, b)) [1] 1 2 3 4 > If not, please check the posting guide "http://www.R-project.org/posting-guide.html". It may help you answer your question yourself faster than we can. If that fails, it may increase the chances that we actually answer your real question. Bon chance. spencer graves Frederic renaud wrote:>Hi! >Can you help me? I would like to make a vector from p >pre-determined vector. The parameter p can change. >I've try with ?c with unsuccess! An idee? > >Sorry for my english! >Thanks >Fred > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html > >-- Spencer Graves, PhD, Senior Development Engineer O: (408)938-4420; mobile: (408)655-4567
If you have all your vectors in a list vl <- list( p1, p2, p3) the the following should do the trick: res <- numeric(0) for( i in 1:length(vl) ) res <- c( res, vl[[i]] ) Bendix Carstensen ---------------------- Bendix Carstensen Senior Statistician Steno Diabetes Center Niels Steensens Vej 2 DK-2820 Gentofte Denmark tel: +45 44 43 87 38 mob: +45 30 75 87 38 fax: +45 44 43 07 06 bxc at steno.dk www.biostat.ku.dk/~bxc ----------------------> -----Original Message----- > From: r-help-bounces at stat.math.ethz.ch > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Frederic renaud > Sent: Monday, December 27, 2004 1:57 AM > To: r-help at stat.math.ethz.ch > Subject: [R] vector > > > Hi! > Can you help me? I would like to make a vector from p > pre-determined vector. The parameter p can change. I've try > with ?c with unsuccess! An idee? > > Sorry for my english! > Thanks > Fred > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read > the posting guide! http://www.R-project.org/posting-guide.html >