[R] lognorm

2005-01-07 Thread Frederic renaud
Hi! I 've a problem to have a lognorm distribution with mean=1 and var (or sigma)=1. rlnorm(1000,0,0) rlnorm(1000,1,1) rlnorm(1000,0,1) ? Can you help me? __ R-help@stat.math.ethz.ch mailing list

[R] count element in column

2005-01-05 Thread Frederic renaud
Hi, I 've a matrix n*1 (thus a column) and I would like to count the number of negative element inside. Can you help me? Thanks! eg: res[,1]= 1 -3 -1 How obtain the number 2 (number of negative-element)? __

[R] Un peu d'aide

2004-12-26 Thread Frederic renaud
Bonjour, Je voudrais faire un petit programme sous R dans lequel je ferais intervenir des parametres que j'initialiserais dans R directement ou dans un fichier txt(des naturels, reels et caracteres). N'auriez vous pas des programmes deja fait qui reprennent ces techniques? De plus, je voudrais

[R] vector

2004-12-26 Thread Frederic renaud
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@stat.math.ethz.ch mailing list