Re: [R] Aggregating daily rainfall raster data to bimontly data

2015-04-05 Thread Jim Lemon
Hi John, One way is to create an index variable that will divide your data into the appropriate intervals. There are a number of ways to do this. Say you want the two month version of bimonthly and you have a date variable (raindate) for each observation like 1982-01-01.

Re: [R] open xlsx file using read.xls function of gdata package

2015-04-05 Thread Keith S Weintraub
Will it work with .xlsm files? Best, KW You might try the readxl package - it's only available on github but it reads both xlsx and xls. All going well, it should be on its way to CRAN next week. Hadley On Friday, April 3, 2015, Luigi Marongiu marongiu.lu...@gmail.com wrote: Dear

Re: [R] Aggregating daily rainfall raster data to bimontly data

2015-04-05 Thread David Winsemius
On Apr 5, 2015, at 2:40 PM, John Wasige wrote: Thanks Jim! Do you have an idea on how I can go about getting bi-monthly (twice a month) results for the month with 28, 29, 30 and 31 daily observations? Thanks for your help raindate - seq.Date(as.Date(1982-01-01),

Re: [R] Aggregating daily rainfall raster data to bimontly data

2015-04-05 Thread John Wasige
Thanks Jim! Do you have an idea on how I can go about getting bi-monthly (twice a month) results for the month with 28, 29, 30 and 31 daily observations? Thanks for your help John. On Sun, Apr 5, 2015 at 11:25 PM, Jim Lemon drjimle...@gmail.com wrote: Hi John, One way is to create an index

Re: [R] species names on a RDA plot

2015-04-05 Thread Antonio Silva
Thanks for your attention Jim Following your idea of adding one more step to construct the diagram, I used text(spe2.rdaspe, row.names(spe2.rdaspe), pos=3, col=red,cex=0.8) and I could add species names. It seems that there's nothing we can do in the plot line. Have a nice week, best regards

Re: [R] Aggregating daily rainfall raster data to bimontly data

2015-04-05 Thread John Wasige
Many thanks everybody for your kind help. John​ On Mon, Apr 6, 2015 at 12:11 AM, David Winsemius dwinsem...@comcast.net wrote: On Apr 5, 2015, at 2:40 PM, John Wasige wrote: Thanks Jim! Do you have an idea on how I can go about getting bi-monthly (twice a month) results for the month

[R] ggplot: connect points with line (not in order)

2015-04-05 Thread Brian Smith
Hi, I am trying to connect points, but not in a different order than the default value in ggplot. For example: xx - sample(1:100,5) yy - sample(1:100,5) mydat - data.frame(xx,yy) print(mydat) ggplot(mydat,aes(xx,yy)) + geom_point() + geom_line() I want to connect the points as they

Re: [R] ggplot: connect points with line (not in order)

2015-04-05 Thread billy am
Will this do? ggplot(mydat,aes(xx,yy)) + geom_path() From : http://stackoverflow.com/questions/15706281/controlling-order-of-points-in-ggplot2-in-r -- | http://billyam.com || http://use-r.com ||

Re: [R] ggplot: connect points with line (not in order)

2015-04-05 Thread Brian Smith
thanks! On Sun, Apr 5, 2015 at 9:15 AM, billy am wickedpu...@gmail.com wrote: Will this do? ggplot(mydat,aes(xx,yy)) + geom_path() From : http://stackoverflow.com/questions/15706281/controlling-order-of-points-in-ggplot2-in-r

Re: [R] error MANOVA in R

2015-04-05 Thread Gian Maria Niccolò Benucci
Hi Peter, Thank you so much for your tips. Have a nice Easter. Gian Il giovedì 2 aprile 2015, peter dalgaard pda...@gmail.com ha scritto: On 30 Mar 2015, at 17:11 , Gian Maria Niccolò Benucci gian.benu...@gmail.com javascript:; wrote: Dear R-usrs, I am trying to perform a MANOVA on

[R] Aggregating daily rainfall raster data to bimontly data

2015-04-05 Thread John Wasige
Dear community, I have daily rainfall raster data for 30 years (1982_2011). I would like to aggregate daily to bimonthly raster data. Could somebody kindly help on how to go about it! Thanks for your help -- John [[alternative HTML version deleted]]

Re: [R] Aggregating daily rainfall raster data to bimontly data

2015-04-05 Thread John Kane
Someone might if they had any idea of what the data actually looked like and what you are trying to do. The 'bimonthly' for example, is ambiguous in English; do you mean every two months or twice a month? Have a look at https://github.com/hadley/devtools/wiki/Reproducibility and

[R] Aggregating daily rainfall raster data to bimontly ( twice a month) data

2015-04-05 Thread John Wasige
Dear community, I have daily rainfall raster data for 30 years (1982_2011). I would like to aggregate daily to bimonthly (twice a month) raster data. Could somebody kindly help on how to go about it! Thanks for your help JOHN Thanks Kane, bimonthly here means twice a month.

Re: [R] Aggregating daily rainfall raster data to bimontly data

2015-04-05 Thread John Wasige
Thanks Bert, The structure of the data is a raster stack with nraw=867, Ncol=995 Rgds John On Sun, Apr 5, 2015 at 6:39 PM, Bert Gunter gunter.ber...@gene.com wrote: See ?tapply However, as John said, without knowing the structure of your data, it is impossible to provide a guaranteed

[R] Trim and fill procedure

2015-04-05 Thread Carlijn Wibbelink
Hi all, I have a question concerning the trim and fill procedure in metafor. In STATA it is possible to obtain the values of the added estimated effect sizes. I was wondering if this is also possible in R and if so, how I can obtain the new data with the added values. I would really

Re: [R] Aggregating daily rainfall raster data to bimontly data

2015-04-05 Thread Bert Gunter
See ?tapply However, as John said, without knowing the structure of your data, it is impossible to provide a guaranteed recipe. For example, does the data structure contain date information? -- it would be difficult (but not impossible depending on data structure) to aggregate by calendar

Re: [R] Aggregating daily rainfall raster data to bimontly data

2015-04-05 Thread Jeff Newmiller
Please stop posting using HTML (as the Posting Guide warns you), and follow John Kane's advice. Your reply below is not helping us understand as well as you seem to think it should. --- Jeff Newmiller