I have not had a great amount of success installing/updating packages from the "Packages" menu of Rgui under Windows XL. (Except for installing from loacal zip files.) But I am not asking for help in using these facilities because I prefer to keep a folder of package zip files. On the other hand I do find it tedious having to right-click "Save link as" on every individual file from CRAN. I'm sure someone knows a faster way to do it. Cheers, Murray Jorgensen -- Dr Murray Jorgensen http://www.stats.waikato.ac.nz/Staff/maj.html Department of Statistics, University of Waikato, Hamilton, New Zealand Email: maj at waikato.ac.nz Fax 7 838 4155 Phone +64 7 838 4773 wk Home +64 7 825 0441 Mobile 021 1395 862
On Mon, 2005-10-31 at 13:38 +1300, Murray Jorgensen wrote:> I have not had a great amount of success installing/updating packages > from the "Packages" menu of Rgui under Windows XL. (Except for > installing from loacal zip files.) > > But I am not asking for help in using these facilities because I prefer > to keep a folder of package zip files. On the other hand I do find it > tedious having to right-click "Save link as" on every individual file > from CRAN. > > I'm sure someone knows a faster way to do it. > > Cheers, Murray JorgensenMurray, See ?install.packages for more information and also R Windows FAQ section 4 on Packages. On that same help page is download.packages() which will download, but not install, packages into a target directory, if that is an option that you prefer, since the ZIP files will generally consume less space then actually installing them if not needed. You can use install.packages() from the command line to install any CRAN packages that are available and then use update.packages() to keep the installed packages updated as they become available. If you want to install all CRAN packages that you do not currently have installed, you can use: install.packages(new.packages(), dependencies = TRUE) All available CRAN packages that do not require third party libraries on your system should be installed. I am not sure what the count on Windows would be, but for me on Linux, including the base R packages, I end up with 624 packages installed, which takes about 650 Mb. HTH, Marc Schwartz
Well, there's downTHEMall, a Mozilla Firefox extension (https://addons.mozilla.org/extensions/). Ted. On 31/10/05 11:38, Murray Jorgensen wrote,:> I have not had a great amount of success installing/updating packages > from the "Packages" menu of Rgui under Windows XL. (Except for > installing from loacal zip files.) > > But I am not asking for help in using these facilities because I prefer > to keep a folder of package zip files. On the other hand I do find it > tedious having to right-click "Save link as" on every individual file > from CRAN. > > I'm sure someone knows a faster way to do it. > > Cheers, Murray Jorgensen-- Dr E.A. Catchpole Visiting Fellow Univ of New South Wales at ADFA, Canberra, Australia and University of Kent, Canterbury, England - www.ma.adfa.edu.au/~eac - fax: +61 2 6268 8786 - ph: +61 2 6268 8895
Murray Jorgensen wrote:> I have not had a great amount of success installing/updating packages > from the "Packages" menu of Rgui under Windows XL. (Except for > installing from loacal zip files.) > > But I am not asking for help in using these facilities because I prefer > to keep a folder of package zip files. On the other hand I do find it > tedious having to right-click "Save link as" on every individual file > from CRAN. > > I'm sure someone knows a faster way to do it.You probably want to use "wget". I think a "recursive web suck" would suck down a whole directory from CRAN in one command: wget -r -l1 http://cran.<mirror>.r-project.org/bin/windows/contrib/2.2/ will get all the contents of the Windows 2.2 binary directory, plus a bit of other junk. You want the -l1 to limit yourself to things directly referenced on that page, otherwise you'll get all of CRAN. wget is available in various places on the web; I forget where I got my copy. I think there are options in various browsers to do the same thing, but I haven't used them. Duncan Murdoch
Dear Group, I have a matrix (157 X 157 ) with correlation values. I want to convert the unique elements into a long list so that I can add an extra variable and plot them. Example: A B C D alfa 1 0.3 0.8 -0.3 beta 0.2 1 -0.3 0.4 echo 0.9 -0.3 1 0.5 tang -0.5 0.5 0.4 1 I want to convert into this form: alfa A 1 alfa B 0.3 alfa C 0.8 alfa D -0.3 beta A 0.2 beta B 1 beta C -0.3 beta D 0.4 ....... and so on. I will add another variable afterwards: var1 var2 corr var3 alfa A 1 grp1 alfa B 0.3 grp1 alfa C 0.8 grp2 alfa D -0.3 grp3 beta A 0.2 grp3 beta B 1 grp2 beta C -0.3 grp1 beta D 0.4 grp2 ........ and so on.... I am sure there should be a way.. but I am completely clueless.. Can any one help me please. thanks srini
See ?reshape Uwe Ligges Srinivas Iyyer wrote:> Dear Group, > > I have a matrix (157 X 157 ) with correlation values. > I want to convert the unique elements into a long list > so that I can add an extra variable and plot them. > > Example: > > A B C D > > alfa 1 0.3 0.8 -0.3 > > beta 0.2 1 -0.3 0.4 > > echo 0.9 -0.3 1 0.5 > > tang -0.5 0.5 0.4 1 > > > I want to convert into this form: > > > alfa A 1 > alfa B 0.3 > alfa C 0.8 > alfa D -0.3 > beta A 0.2 > beta B 1 > beta C -0.3 > beta D 0.4 > ....... > > and so on. > > > I will add another variable afterwards: > var1 var2 corr var3 > alfa A 1 grp1 > alfa B 0.3 grp1 > alfa C 0.8 grp2 > alfa D -0.3 grp3 > beta A 0.2 grp3 > beta B 1 grp2 > beta C -0.3 grp1 > beta D 0.4 grp2 > ........ and so on.... > > > I am sure there should be a way.. but I am completely > clueless.. > Can any one help me please. > > thanks > srini > > ______________________________________________ > R-help at 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
Dear Group, I am a novice R programmer with little statistical background. I am a molecular biologist by training. I generated a correlation matrix (157 X 157) for 157 variables. I want to selection only the unique values (values that are either side of the diagnol). I want these unique correltaion values in a list. How can I do this. could any one help me please. thank you. sr
Try this: # test data mm <- cor(iris[,-5]) mm # get upper triangle from matrix mm[lower.tri(mm)] # if you want it as a data frame with columns for row and column names as.data.frame.table(mm)[lower.tri(mm),] In either of the cases above you could substitute row(mm) > col(mm) for lower.tri(mm) if you like. On 10/31/05, Srinivas Iyyer <srini_iyyer_bio at yahoo.com> wrote:> Dear Group, > I am a novice R programmer with little statistical > background. I am a molecular biologist by training. > I generated a correlation matrix (157 X 157) for 157 > variables. > > I want to selection only the unique values (values > that are either side of the diagnol). I want these > unique correltaion values in a list. > > How can I do this. could any one help me please. > > thank you. > > sr > > ______________________________________________ > R-help at 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 >