[R] Putting column names in some automated way

2007-09-16 Thread Megh Dal
Dear all, I have following codes: colnames(data) = c(var, var, var) i = c(1,2,3) Now I want construct a for loop starting from 1 to 3 to give the new names of columns for dataframe data like below colnames(data) c(var1, var2, var3) Definitely I could do this manually, however I want to put

Re: [R] Putting column names in some automated way

2007-09-16 Thread Bernd Weiss
Megh Dal schrieb: Dear all, I have following codes: colnames(data) = c(var, var, var) i = c(1,2,3) Now I want construct a for loop starting from 1 to 3 to give the new names of columns for dataframe data like below colnames(data) c(var1, var2, var3) Definitely I could do this

Re: [R] HTML reading,

2007-09-16 Thread christophe vuadens
Thanks to your answer, î'm trying to instaling it... Armin Goralczyk wrote: On 9/15/07, christophe vuadens [EMAIL PROTECTED] wrote: Hello, Sorry for my english, in a R function, I want to read HTML files to analyse the text. Do somebody now, how can i read the text only in txt

Re: [R] Create a local repository

2007-09-16 Thread Prof Brian Ripley
On Wed, 12 Sep 2007, Uwe Ligges wrote: Scott Hyde wrote: I'd like to create a small local repository that would be used to install a package for a class of students at their home. I don't want to upload it to CRAN, as I don't think it should be disseminated at that level. What I'd like

Re: [R] stalled loop

2007-09-16 Thread jim holtman
You will have to supply a lot more information than you have. Is it a memory problem (are you paging), is it a function of your data structure, is it your algorithm, etc. Please follow the guidelines: provide commented, minimal, self-contained, reproducible code. On 9/16/07, kevinchang [EMAIL

[R] stalled loop

2007-09-16 Thread kevinchang
Hey everyone, The code I wrote executes correctly but is stalled seriously. Is there a way to hasten execution without coming up with a brand new algorithm ?please help. Thanks a lot for your time. #a simplified version of the code a-c(superman , xman , spiderman ,wolfman

[R] Factorial, L-moments, and overflows

2007-09-16 Thread Pedro.Rodriguez
Hi everyone, In the package POT, there is a function that computes the L-moments of a given sample (samlmu). However, to compute those L-moments, one needs to obtain the total number of combinations between two numbers, which, by the way, requires the use of a factorial. See, for example,

Re: [R] help for high-quality plot

2007-09-16 Thread Zheng Lu
Dear all: I am curious how to generate high-quality plot and graph with R and input it into my word document. my plot was always generated in device 2, when I save it as PNG, the quality is poor. Thank you very much for your consideration and time. ZLu

Re: [R] help for high-quality plot

2007-09-16 Thread Gabor Grothendieck
Use windows metafile format. Its a vector graphic format so it will display in full resolution. png is bitmapped and so won't. Also you can edit a wmf graphic in Word using Word's built in graphic editor so you could change the labels, etc. even after you have imported it. Right click the

[R] power calculation for repeated measures ANOVA?

2007-09-16 Thread MATTHEW BRIDGMAN
Is there a way to calculate power for repeated measures ANOVA (2 groups x 7 observations)? I have searched all over, but all I can find is power.anova.test, but that would not give accurate results, right? Thanks, Matt Bridgman __ R-help@r-project.org

Re: [R] stalled loop

2007-09-16 Thread jim holtman
If I understand what you are trying to do is to find duplicated values of rearrangements of words. If that is the case, this is probably faster since your final loop is removed by using duplicated. Most of the time is in the sapply function. a - c(superman, xman, spiderman, wolfman, mansuper,

Re: [R] power calculation for repeated measures ANOVA?

2007-09-16 Thread Mitchell Maltenfort
Mind a book reference instead of a software reference? Look for Bausell and Li's Power Analysis for Experimental Research -- cookbook style power calculations, but has explicit RM ANOVA. On 9/16/07, MATTHEW BRIDGMAN [EMAIL PROTECTED] wrote: Is there a way to calculate power for repeated

Re: [R] Factorial, L-moments, and overflows

2007-09-16 Thread jim holtman
It sounds like you are using 'integers'. Have you considered 'numeric' (floating point)? You can always look at the function 'samlmu' to see what it does in this case. On 9/16/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi everyone, In the package POT, there is a function that computes

[R] Stepwise logistic model selection using Cp and BIC criteria

2007-09-16 Thread Tirthadeep
Hi, Is there any package for logistic model selection using BIC and Mallow's Cp statistic? If not, then kindly suggest me some ways to deal with these problems. Thanks. -- View this message in context: