[R] Richiesta informazioni

2004-12-27 Thread Andrea Nesi
Sono Andrea Nesi, studente di Ingegneria dell’Università di Firenze. Sto facendo il tirocinio nell’Ufficio di Protezione Civile del Comune di Prato, dove sto cercando di effettuare una statistica sui dati idrometrici rilevati, relativi ad una serie storica di 12 anni (per ogni anno è in mio

RE: [R] vector

2004-12-27 Thread BXC (Bendix Carstensen)
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

Re: [R] vector

2004-12-27 Thread Peter Dalgaard
BXC (Bendix Carstensen) [EMAIL PROTECTED] writes: 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]] ) Or, do.call(c, vl) -- O__ Peter Dalgaard

Re: [R] vector

2004-12-27 Thread Göran Broström
On Mon, Dec 27, 2004 at 11:09:13AM +0100, BXC (Bendix Carstensen) wrote: 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]] ) or, shorter, and faster I would guess, res -

Re: [R] list(0) to integer

2004-12-27 Thread Tobias Verbeke
On Mon, 27 Dec 2004 03:18:53 -0800 (PST) Frederic renaud [EMAIL PROTECTED] wrote: Hello I've another question :-) I would like to transform a list to a integer. I must be sure that the number entered by the user is an integer! Thus, I've made : repeat{ cat(Effectif des populations

[R] email lists

2004-12-27 Thread JC
I need to get this to everyone possible...how? www.geocities.com/dollbottgreen This is totally legit...don't want to break any laws. Don't want to and can't wait weeks and months before search engines pick it up. [[alternative HTML version deleted]]

[R] classification using logistic regression

2004-12-27 Thread Rajdeep Das
Dear Colleagues, I would like to do classification using logistic regression. Which R package can I use? Also is there any package for feature selection for logistic regression based method? Thanks a lot in advance. Happy holidays. Regards, Raj [[alternative HTML version deleted]]

Re: [R] how to ignore t.test error message

2004-12-27 Thread burak kutlu
Hi Although t.test does not give an error with t.test(c(0, 0), c(0, 0)); if you try doing that with any number other than 0, t.test(c(1,1),c(1,1)) (R gives the following error) Error in t.test.default(c(1, 1), c(1, 1)) : data are essentially constant The logic in insisting is

RE: [R] how to ignore t.test error message

2004-12-27 Thread Liaw, Andy
See ?try (as Uwe said) or ?tryCatch. Andy From: burak kutlu Hi Although t.test does not give an error with t.test(c(0, 0), c(0, 0)); if you try doing that with any number other than 0, t.test(c(1,1),c(1,1)) (R gives the following error) Error in t.test.default(c(1, 1),

Re: [R] classification using logistic regression

2004-12-27 Thread Kevin Wang
Hi, On Mon, 27 Dec 2004, Rajdeep Das wrote: I would like to do classification using logistic regression. Which R package can I use? Have you tried glm() function? Also is there any package for feature selection for logistic regression based method? Do you mean model selection methods

[R] RandomFields: Controling seed with GaussRF

2004-12-27 Thread Ernesto Jardim
Hi, I'm using RF to simulate a correlated variable with GaussRF set.seed=1 GaussRF(sim.kfinegrid, grid=F, model=exponential, param=c(0,0.5,0,0.2)) However when I simulate again using the same random seed I get different results. set.seed=1 summary(GaussRF(sim.kfinegrid, grid=F,

[R] random numbers within a given range

2004-12-27 Thread Rajdeep Das
Dear Colleagues, Is there a way to get random numbers within a given range? Regards and thanks in advance, Raj [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] RandomFields: Controling seed with GaussRF

2004-12-27 Thread Peter Dalgaard
Ernesto Jardim [EMAIL PROTECTED] writes: set.seed=1 GaussRF(sim.kfinegrid, grid=F, model=exponential, param=c(0,0.5,0,0.2)) However when I simulate again using the same random seed I get different results. set.seed=1 summary(GaussRF(sim.kfinegrid, grid=F, model=exponential,

Re: [R] RandomFields: Controling seed with GaussRF

2004-12-27 Thread Ernesto Jardim
On Tue, 2004-12-28 at 00:30, Peter Dalgaard wrote: Ernesto Jardim [EMAIL PROTECTED] writes: set.seed=1 GaussRF(sim.kfinegrid, grid=F, model=exponential, param=c(0,0.5,0,0.2)) However when I simulate again using the same random seed I get different results. set.seed=1

Re: [R] random numbers within a given range

2004-12-27 Thread Peter Dalgaard
Rajdeep Das [EMAIL PROTECTED] writes: Is there a way to get random numbers within a given range? Yes. What distribution? If uniform, see help(Uniform). -- O__ Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of

[R] plots

2004-12-27 Thread duraikannan sundaramoorthi
Is there a way to save plots and use in a word document. Thanks for your help in advance. durai __ Send holiday email and support a worthy cause. Do good. __ R-help@stat.math.ethz.ch mailing list

RE: [R] plots

2004-12-27 Thread Charles Annis, P.E.
Yes. Assuming you are using R in Windows, right click on the plot, and choose Save as metafile, or more expeditiously, Copy as metafile, and then paste directly into your WORD document. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265

Re: [R] Question about creating error bars

2004-12-27 Thread Dan Bolser
On Thu, 23 Dec 2004, Dan Bolser wrote: I have data that looks (very roughly) like this... Declarative: Several 'groups', each group with a very variable number of data points associated. Procedural: v.1 - c(rep(50,1), rep(5,5), rep(2,10)) # Set up v.2 - c('a','b','c','d','e','f','g','h',

RE: [R] plots

2004-12-27 Thread BXC (Bendix Carstensen)
For exact contol of height and width, you may want to have a look at: ?win.metafile 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