[R] robust correlation in R
Dear R user group, I'm looking for a robust mesure of correlation in R. I found a very interesting article by Dr Rich Herrington on http://www.unt.edu/benchmarks/archives/2001/december01/rss.htm and I'd like to implement exaclty this method but my problem is that everything is here developped in R language and is very slow when the correlation matrix is important. I'm wondering if someone has maybe developped the same (or equivalent) method using functions in C like it is currently developped in r for the covariance and variance. Thank you for your help. Xavier * Ce message et toutes les pieces jointes (ci-apres le messag...{{dropped}} __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] robust correlation in R
Dear R user group, I'm looking for a robust mesure of correlation in R. I found a very interesting article by Dr Rich Herrington on http://www.unt.edu/benchmarks/archives/2001/december01/rss.htm and I'd like to implement exaclty this method but my problem is that everything is here developped in R language and is very slow when the correlation matrix is important. I'm wondering if someone has maybe developped the same (or equivalent) method using functions in C like it is currently developped in r for the covariance and variance. Thank you for your help. Xavier * Ce message et toutes les pieces jointes (ci-apres le messag...{{dropped}} __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] writing complex outputs to table
Steve, This example works: x-TukeyHSD(fm1, tension, ordered = TRUE) as.table(x$tension) Steve Powers wrote: So I've come across a few cases where complex outputs from functions will not write to tables. The most recent case involves the TukeyHSD function in the stats package. If I save the TukeyHSD call and print it, that obviously goes fine, but when I try writing to a table, I get an error message that says cannot coerce class \multicomp\ into dataframe. What does this mean, and how do I work around it? Is there a more fail-safe general method of writing complex outputs to a table? The story here is I want to be able to call certain values from the TukeyHSD results to produce custom summaries. Using R version 2.4 on Windows XP.---steve __ R-help@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 and provide commented, minimal, self-contained, reproducible code. -- View this message in context: http://www.nabble.com/writing-complex-outputs-to-table-tf4407732.html#a12596104 Sent from the R help mailing list archive at Nabble.com. __ R-help@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 and provide commented, minimal, self-contained, reproducible code.
Re: [R] write.csv / string extraction and field limits
This example works fine: test-matrix(c(1,2,'VOICIUNPETITTES',3),ncol=2,nrow=2) write.csv(test,file='C:/xavier/test.csv') Could you provide the same small example when it doesn't work? kwaj wrote: Hello, I have a peculiar problem which I am hoping I can get help on. I am using the write.csv command to write a matrix structure to a file, which I later read in excel. The command works quite well for most strings and numerical values in the matrix structure. However, I have found that when a field in the matrix contains a string of long length, when the matrix is finally written the file - the field shows up as NA. I am assuming write.csv has a limit on the field size? Maybe 16 characters? Assuming the above is correct - I tried to extract a portion of the string using the 'substring' command and enter the extracted portion into the field before using the write.csv command. However I find, that when a string is extracted, the output from write.csv generates a NA in the file output. My questions are: 1) Does write.csv have a limit on the size of strings in the matrix fields? Is there anyway to place large strings in the field? 2) Is there anyway to make the substring command or an alternative but similar command, compatible with write.csv? I have tried 'as.character(substring(phrase, min, max)' and that does not seem to work cheers -- View this message in context: http://www.nabble.com/write.csv---string-extraction-and-field-limits-tf4395535.html#a12596551 Sent from the R help mailing list archive at Nabble.com. __ R-help@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 and provide commented, minimal, self-contained, reproducible code.