[R] spgrass6 and aggregation

2007-06-06 Thread jessica . gervais
Dear all, I am exporting grass map into R thanks to the very useful spgrass6 package. library(spgrass6) # I have 3 map I am working with a MASK map of a specific area. # 1) a landuse map landuse-readRAST6(landuse_mapname_in_grass) # 2) a catchment map which divide the area in several

[R] spgrass6 and aggregation (bis)

2007-06-06 Thread jessica . gervais
Dear all, I have some additionale question concerning the spgrass6 package. * When you set a region in GRASS, does the readGRASS6 function in R only load data contained in the zoomed region or the whole map ? * When you have a MASK map in grass, does the readGRASS6 function in R only load data

[R] time serie generation

2007-06-01 Thread jessica . gervais
Dear all, I would like to generate a regular time serie, i.e. a list of dates and time for each our of the period 2002-2004. the time format should be 2002-01-01 12:00:00 (year-month-day hour:min:sec) so the list should contain all hours of the period 2002-2004 2002-01-01 00:00:00 2002-01-01

Re: [R] Sum per hour

2007-05-29 Thread jessica . gervais
Thank you, I have try your proposition. Seems to be the right way... but I still have an error message. Here is the code I have executing: time-c(2000-10-03 14:00:00,2000-10-03 14:10:00,2000-10-03 14:20:00,2000-10-03 15:30:00,2000-10-03 16:40:00,2000-10-03 16:50:00,2000-10-03

[R] aggregation of a zoo object

2007-05-29 Thread jessica . gervais
Dear all, I am trying to execute the following example: time-c(2000-10-03 14:00:00,2000-10-03 14:10:00,2000-10-03 14:20:00,2000-10-03 15:30:00,2000-10-03 16:40:00,2000-10-03 16:50:00,2000-10-03 17:00:00,2000-10-03 17:10:00,2000-10-03 17:20:00,2000-10-03 18:30:00,2000-10-04 14:00:00,2000-10-04

[R] Sum per hour

2007-05-24 Thread jessica . gervais
Dear all, I have a list of precipitation record and a list of time I would like to sum them up per hour, or per day. Does such a function exist ? example: time-c(2000-10-03 14:00:00,2000-10-03 14:10:00,2000-10-03 14:20:00,2000-10-03 15:30:00,2000-10-03 16:40:00,2000-10-03 16:50:00,2000-10-03

[R] time series

2007-05-18 Thread jessica . gervais
Dear all, I am working with a data file which is the record of precipitation measurement normaly done every 10 minutes. I would like to check if there are missing times in my data file. Is there a function existing able to check for that in R ? Thanks by advance, Jessica

[R] conversion into capital letter

2007-05-15 Thread jessica . gervais
Dear all, I would need a function which convert small letter into capital letter (at least the first letter of a character variable). Does such a function exist in R ? Thanks by advance Jessica __ R-help@stat.math.ethz.ch mailing list

[R] plot time series

2007-05-08 Thread jessica . gervais
__ 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] plot time series

2007-05-08 Thread jessica . gervais
-as.POSIXct(round(range(tt),hours)) axis.POSIXct(1,tt,at=seq(r[1],r[2],by=hour),format=%Y-%m-%d %H:%M) If you have better solution, I would be happy to know them, Thanks in advance, Jessica -Jessica Gervais/CRTE/TUDOR wrote: - To: R-help@stat.math.ethz.ch From: Jessica Gervais/CRTE/TUDOR

Re: [R] plot time series

2007-05-08 Thread jessica . gervais
Dear all, I actually would like to improve the label orientation on the x-axis (turn them to 45 degrees) I tried the par(las=2) ... but doesn't work... Do anyone knows how to do ? Jessica __ R-help@stat.math.ethz.ch mailing list

[R] extract arguments from a list

2006-10-19 Thread jessica . gervais
Hi, I would like to know how to extract the arguments from a list : For example, I have a list of charchacter x x- c(Bentazone,Atrazine,Epoxiconazol,Metolachlor,Epoxiconazol,Atrazine desethyl,Fenpropimorph,Epoxiconazol,Metolachlor,Simazine,Atrazine desethyl,Epoxiconazol,Atrazine

[R] postcript file / xyplot function

2006-10-03 Thread jessica . gervais
],panel=function(x,y){panel.xyplot(x,y) COEFF-coef(lm(log(y)~x)) panel.curve(exp(COEFF[1]+COEFF[2]*x)) dev.off() Do anyone know how to use the postscript function with a xyplot function ? Thanks by advance Jessica Gervais [[alternative HTML version deleted

[R] panel.curve

2006-09-27 Thread jessica . gervais
now what goes wrong and how to correct that Maybe I am wrong in the use of the pannel.curve function Do anyone know something about that ? Thanks by advance Jessica Gervais [[alternative HTML version deleted]] __ R-help

[R] transformation matrice of vector into array

2006-07-27 Thread Jessica Gervais
Hi, I need some help I have a matrix M(m,n) in which each element is a vector V of lenght 6 1 2 3 4 5 6 7 1 List,6 List,6 List,6 List,6 List,6 List,6 List,6 2 List,6 List,6 List,6 List,6 List,6 List,6 List,6 3 List,6 List,6 List,6 List,6 List,6 List,6 List,6