Displaying 20 results from an estimated 6000 matches similar to: "time series"
2007 May 24
6
Sum per hour
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
2007 May 08
3
plot time series
[This email is either empty or too large to be displayed at this time]
2007 Jun 06
1
spgrass6 and aggregation (bis)
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 contained inside the MASK area ?
Could this be the problem ?
Thanks,
Jessica
2008 Feb 12
3
regular expression for na.strings / read.table
Dear all,
I am working with a csv file.
Some data of the file are not valid and they are marked with a star '*'.
For example : *789.
I have attached with this email a example file (test.txt) that looks like
the data I have to work with.
I see 2 possibilities ..thast I cannot manage anyway in R:
1-first & easiest solution:
Read the data with read.csv in R, and define as na strings
2006 Sep 27
1
exponential fitting
Hi,
I would like to fit some experimental points by a exponential function.
I ignore the parameters of this exponential and what I would like is to
ask R to calculate the best fitting curve an the associated parameters (as
the linear model function (lm) does for linear models).
Is it possible ?
Do anyone have an idea about how to do that ?
Thanks by advance
Jessica Gervais
[[alternative
2006 Sep 27
1
panel.curve
Hi,
I am trying to fit experimental points by exponemtial curve
my data are stored into a matrix data
the first column is the geographical point (a number = data[,1] ) ( I
would like to plot several graphes at the same time)
the second column is the time of measurement (x in the plot)
the third column is a speed (y in the plot)
if we assume the point are folowing this exponential behaviour
2006 Oct 19
1
extract arguments from a list
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
2006 Oct 04
1
strip function
Hi,
I would like to asign titles into strip of a panel of curves designed
thanks to a xyplot function (lattice package)
I ve tried the "strip" function, ...
here is my code
I would like to write in the strip of each panel conditionning varialbe
(here, it is data[,1])
xyplot (data[,3] ~ data[,2] | data[,1] , strip.default (which.given=1,
which.panel = c(1:15), var.name= c
2006 Jul 27
1
transformation matrice of vector into array
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
4 List,6 List,6 List,6 List,6 List,6 List,6 List,6
i would like to make the sum on the matrix of
2010 May 18
2
Function that is giving me a headache- any help appreciated (automatic read )
note: whole function is below- I am sure I am doing something silly.
when I use it like USGS(input="precipitation") it is choking on the
precip.1 <- subset(DF, precipitation!="NA")
b <- ddply(precip.1$precipitation, .(precip.1$gauge_name), cumsum)
DF.precip <- precip.1
DF.precip$precipitation <- b$.data
part, but runs fine outside of the function:
days=7
2006 Oct 03
1
postcript file / xyplot function [Broadcast]
This is FAQ 7.22. Lattice functions produce graphic objects, which are not
displayed by default. If you print your graph, you should be fine. Also,
take a look at the documentation for panel.xyplot. Using type = c("p", "r")
should make things simpler.
Regards,
Matt Wiener
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at
2010 Jun 06
2
Color scale graphic
Hello
Recently, I've been dealing with a seemingly simple problem. I have a table
with two columns filled with values from a test I made (say, amount of
precipitation and Months measured). Now, instead of plotting a typical
linear graphic with precipitation on the y-axis and the months in the
x-axys, I would like to "convert" the values of precipitation in a color
gradient,
2013 Feb 23
1
Extract, sum and Loop in R
Hi all,
I have gone through some basics of R in eclipse environment. What I need to
work is more than basic level so I could not find out the solution by
myself. could anyone help me ?
My case,
I have climate data (precipitation) in nc format with single layer for each
time interval in a day. That means for January 1, 2013, I have 8 separate
files each containing 3 hrs cumulative precipitation
2011 Jun 07
1
count length of continues elements in a vector
I am performing a precipitation analysis. data is in the form of daily
precipitation amounts, e.g.
x<- c(4,5,3,0,0,0,2,4,6,4,0,0,0,2,2,0,3,4,1,0,...)
I would like to find the length of the "storm", length of storm would be
defined as the number of days with continues precipitation. in this case the
returned vector would be:
(3,4,2,3,...)
I would also like the amount of
2009 Aug 18
2
value of nth percentile
Dear All,
I have to get the value of say 90th percentile of precipitation time series.. The series is of daily precipitation value of 96 years, I have to to get 90the percentile value of daily precipitation each year. If you know the R code or command for this please let me know.
I would appreciate your early response.
Thanking you,
Sincerely,
Ajay.
2008 Dec 11
2
Principal Component Analysis - Selecting components? + right choice?
Dear R gurus,
I have some climatic data for a region of the world. They are monthly averages
1950 -2000 of precipitation (12 months), minimum temperature (12 months),
maximum temperature (12 months). I have scaled them to 2 km x 2km cells, and
I have around 75,000 cells.
I need to feed them into a statistical model as co-variates, to use them to
predict a response variable.
The climatic
2010 Jan 20
2
Plot frame border to start at zero?
Hello,
I am creating plots of hourly precipitation and accumulated
precipitation (on different axis, see attached image). I was wondering
how can I have the plot frame (black border) start at zero, it looks
like it is plotted less than zero?
The code I use to create the png files is below:
CairoPNG(PNG_file,width=1000, height=600, pointsize=14, bg="white")
opar <-
2010 Oct 19
1
Problems with a specific calculate.
Hello friends of R,
My name is Toni, i'm 25 and I'm working on the Meteorological Investigation team from Balearic Islands.
I had contact to you because I have a problem:
I done a file for every day since 1912 about precipitation. That file has the following structure:
> str(Ast)
Loading required package: sp
Formal class 'SpatialPixelsDataFrame' [package "sp"]
2012 Mar 07
2
Problems with generalized linear model (glm) coefficients.
Hello to everyone.
I´m writing you because I´m feeling a bit frustrated with my work.
My work consists in finding the relation between the amount of fires and
the weather, so, my response variable is the amount of fires in a fire
season and the explanatory variables are the temperature, the amount of
precipitation and the some others…. my problem is this; I keep getting the
wrong sign in the
2009 Oct 06
1
ggplot2 applying a function based on facet
Look at the bottom of the message for my question
#here is a little function that I wrote
USGS <- function(input="discharge", days=7){
library(chron)
library(gsubfn)
#021973269 is the Waynesboro Gauge on the Savannah River Proper (SRS)
#02102908 is the Flat Creek Gauge (ftbrfcms)
#02133500 is the Drowning Creek (ftbrbmcm)
#02341800 is the Upatoi Creek Near Columbus (ftbn)
#02342500 is