Re: [R] Dual colour ramps based on pos/neg values

2011-05-10 Thread Tyler Hayes
My apologies for the late reply but I was out of town for a while. The solution I wound up using is below. Sorry about the text if it didn't wrap well. You should be able to pick out the code from the comments though. Thanks for all the help! Cheers, t. ## > Start hack ## ##

[R] Dual colour ramps based on pos/neg values

2011-04-21 Thread Tyler Hayes
Hi Everyone: I'm going a little nuts here and am hoping someone might have some ideas to help out. Here is my problem: I am using the calendarHeatMap function (http://blog.revolutionanalytics.com/2009/11/charting-time-series-as-calendar-heat-maps-in-r.html) to plot some values of percentages abov

[R] trouble opening connection 64bit R with win7 64bit

2010-10-27 Thread Hayes, Daniel
> > file.exists("C:\\Users\\me\\Documents\\My PhD\\Modelling\\R\\Scripts\\Functions\\functions 20jan10.r") [1] TRUE I suspect it something with windows user rights or file properties but am not sure what to do. Any help is appreciated. Thanks in advance, Daniel Hayes _

[R] documentation to upgrade R-package from 32 to 64bit

2010-09-01 Thread Hayes, Daniel
anks you in advance for you help, Daniel Hayes [[alternative HTML version deleted]] __ R-help@r-project.org 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] subset dataset using factor levels instead of factor names

2010-06-22 Thread Hayes, Rachel M
Hi All, I have a factor variable with 52 levels -with long, annoying names. I want to keep only rows with some variables. I can do this using this code: test1 <- subset(nih2009,ic_name %in% c('NATIONAL EYE INSTITUTE','Veterans Affairs')) dim(test1) [1] 2396 38 But this doesn't work: t1 <

[R] help sample from large dataset - misleading error?

2009-11-13 Thread Hayes, Rachel M
Hi All, I want to take a simple random sample from a large dataset, gly, but I'm getting an error message. Any help? dim(gly) [1] 112371 37 > s1 <- sample(gly,100) Error in `[.data.frame`(x, .Internal(sample(length(x), size, replace, : cannot take a sample larger than the popul

Re: [R] collumn error when exporting to Excel

2009-11-05 Thread Hayes, Daniel
No luck with: (col.names = NA and row.names = TRUE Will check the other responses and else try to install writeXLS Thanks for the help. Daniel -Original Message- From: Leandro Marino [mailto:lean...@cesgranrio.org.br] Sent: 05 November 2009 15:52 To: Hayes, Daniel; 'r-h...@li

Re: [R] collumn error when exporting to Excel

2009-11-05 Thread Hayes, Daniel
No luck with 'write.csv' either. Thanks for helping though. Cheers, Daniel -Original Message- From: jim holtman [mailto:jholt...@gmail.com] Sent: 05 November 2009 14:59 To: Hayes, Daniel Cc: r-h...@lists.r-project.org Subject: Re: [R] collumn error when exporting to Excel

Re: [R] collumn error when exporting to Excel

2009-11-05 Thread Hayes, Daniel
emails our not recognized. Sorry for the inconvenience and if there are any suggestions how to fix this that would be great. Cheers -Original Message- From: Robert Baer [mailto:rb...@atsu.edu] Sent: 05 November 2009 15:58 To: Hayes, Daniel; 'r-h...@lists.r-project.org' Subje

Re: [R] creating mulptiple new variables from one data.frame according to columns and rows in that frame

2009-11-04 Thread Hayes, Daniel
- From: jim holtman [mailto:jholt...@gmail.com] Sent: 04 November 2009 15:30 To: Hayes, Daniel Cc: r-h...@lists.r-project.org Subject: Re: [R] creating mulptiple new variables from one data.frame according to columns and rows in that frame My guess is that we are being affected by FAQ 7.31

Re: [R] creating mulptiple new variables from one data.frame according to columns and rows in that frame

2009-11-04 Thread Hayes, Daniel
Bolivia 10.48562 0.10653400 109 9. Bolivia 10.43279 0.10180158 133 11. Bolivia 10.33394 0.10160484 169 14. Bolivia 10.24878 0.09946659 193 16. Bolivia 10.20148 0.09694376 205 17. Bolivia 10.16589 0.09573946 $Brazil age country mu sigma 602 0.

[R] creating mulptiple new variables from one data.frame according to columns and rows in that frame

2009-11-03 Thread Hayes, Daniel
Dear R-helpers, I have a data.frame (bcpe.lat.m) containing 13 countries, ages 0-50yrs per month, and the corresponding mu&sigma (see below). *I would like to limit the age range to include all 12 months for the 1st 5 years and only whole years for all ages thereafter for each of the c

[R] rcs fits in design package

2009-09-30 Thread Hayes, Rachel M
_prw,3). I'm kind of new to using splines. Does the fact that observations are clustered at the ends make the spline fit questionable? Thanks, Rachel Hayes [[alternative HTML version deleted]] __ R-help@r-project.org mailing li

[R] Stratified data summaries

2009-07-09 Thread Hayes, Rachel M
Hi All, I'm trying to automate a data summary using summary or describe from the HMisc package. I want to stratify my data set by patient_type. I was hoping to do something like: Describe(myDataFrame ~ patient_type) I can create data subsets and run the describe function one at a time

[R] receiving "Error: cannot allocate vector of size 1.5 Gb"

2008-09-02 Thread Hayes, Daniel
or your help Dr. Daniel Hayes [[alternative HTML version deleted]] __ R-help@r-project.org 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 commen

[R] How can I use the rho value in the cor.test() summary?

2007-12-03 Thread Hayes
I want to give the "rho" value below to another variable.How ? > Spearman's rank correlation rho > > > > data: a[, 3] and a[, 2] > > S = 22, p-value = 0.001174 > > alternative hypothesis: true rho is not equal to 0 > > sample estimates: > > rho > > 0.867 -- View this message in contex