[R] VR package not found for R version 1.9.1
I'm trying to install the VR package for version 1.9.1 but I'm getting the following error message: install.packages(VR) trying URL `http://cran.r-project.org/bin/windows/contrib/1.9/PACKAGES' Content type `text/plain; charset=iso-8859-1' length 20716 bytes opened URL downloaded 20Kb trying URL `http://cran.r-project.org/bin/windows/contrib/1.9/VR_7.2-11.zip' Error in download.file(url, destfile, method, mode = wb) : cannot open URL `http://cran.r-project.org/bin/windows/contrib/1.9/VR_7.2-11.zip' In addition: Warning message: cannot open: HTTP status was `404 Not Found' Any workarounds? Thanks, - Moises [[alternative HTML version deleted]] __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
RE: [R] removing invariant columns from a matrix
Thanks, that solved the problem! - Moises -Original Message- From: Roger D. Peng [mailto:[EMAIL PROTECTED] Sent: Sunday, August 29, 2004 3:08 PM To: Moises Hassan Cc: R Help Subject: Re: [R] removing invariant columns from a matrix See question 7.7 in the R FAQ (http://cran.r-project.org/doc/FAQ/R-FAQ.html) -roger Moises Hassan wrote: It works great, except that in the case where only one column is left, it returns a vector and the column name is lost. How can you avoid that behavior? Thanks, - Moises -Original Message- From: Spencer Graves [mailto:[EMAIL PROTECTED] Sent: Saturday, August 28, 2004 8:26 PM To: Peter Dalgaard Cc: Moises Hassan; R Help Subject: Re: [R] removing invariant columns from a matrix Both the previous solutions seem to assume a numeric matrix. How about the following: A - array(letters[c(rep(1, 13), rep(2, 13), 1:26)], dim=c(13, 5)) A[, apply(A, 2, function(x)any(x[-1] != x[-length(x)]))] A[, apply(A, 2, function(x)any(x[-1] != x[-length(x)])] enjoy. spencer graves Peter Dalgaard wrote: Moises Hassan [EMAIL PROTECTED] writes: I'm looking for an efficient way of removing zero-variance columns from a large matrix. Any suggestions? A[,apply(A,2,var)0] __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] removing invariant columns from a matrix
I'm looking for an efficient way of removing zero-variance columns from a large matrix. Any suggestions? Thanks, - Moises [[alternative HTML version deleted]] __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] distance to cluster center
Is there a way to get the distance between each point and the center of the cluster it was assigned to in cluster methods such as agnes, pam, and clara. Thanks! - Moises [[alternative HTML version deleted]] __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] aov summary to matrix
Is there an easy way of converting an aov.summary into a matrix in which the rows are the factor names and the columns are Df, Sum Sq, Mean Sq, F value and Pr. For example, convert Df Sum Sq Mean Sq F value Pr(F) block5 343.29 68.66 4.4467 0.015939 * N1 189.28 189.28 12.2587 0.004372 ** P1 8.408.40 0.5441 0.474904 K1 95.20 95.20 6.1657 0.028795 * N:P 1 21.28 21.28 1.3783 0.263165 N:K 1 33.14 33.14 2.1460 0.168648 P:K 1 0.480.48 0.0312 0.862752 Residuals 12 185.29 15.44 --- Signif. codes: 0 `***' 0.001 `**' 0.01 `*' 0.05 `.' 0.1 ` ' 1 To Factor Df Sum Sq Mean Sq F value Pr block5 343.29 68.66 4.4467 0.015939 N1 189.28 189.28 12.2587 0.004372 P1 8.408.40 0.5441 0.474904 K1 95.20 95.20 6.1657 0.028795 N:P 1 21.28 21.28 1.3783 0.263165 N:K 1 33.14 33.14 2.1460 0.168648 P:K 1 0.480.48 0.0312 0.862752 Residuals 12 185.29 15.44NA NA Thanks, - Moises __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] capture stderr in Windows
I'm using the following command to run R in Windows Rterm --no-save --no-restore Rscriptfile Rstdoutfile How can I capture the text sent by R to stderr in a file? Thanks, - Moises [[alternative HTML version deleted]] __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] Graphics in BATCH CMD mode
Running R scripts via 'R_exe BATCH CMD inpufile outputfile' works fine with jpeg commands in Windows, but the jpeg commands give an error under Linux because GUI is set to none. Is there a way to use jpeg commands in BATCH CMD in Linux. Thanks, Moises __ [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] binary data
What's the preferred way in R for handling samples with binary data (like chemical fingerprints encoded as hexadecimal strings with 0's and 1's indicating the absence or presence of chemical features) in methods such as clustering and MDS. Do you always have to expand the fingerprint data into individual variables (which can be a few hundreds) or can they be used directly as binary data by some of these methods. Thanks, Moises [[alternative HTML version deleted]] __ [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