search for: tmin

Displaying 20 results from an estimated 26 matches for "tmin".

Did you mean: min
2004 Feb 17
4
importing ascii grids (for gstat)
Hello, Is there anyone who could give me an example of how to import an ascii grid (i.e. ArcGIS exported raster) into R. I want to use it with gstat but don't know the appropriate import routine. Thanks very much for your help. Regards, femke Femke Reitsma Graduate Student (ABD) Geography Department 2181 LeFrak Hall University of Maryland College Park, MD 20742 Phone: 301-405-4121
2009 Oct 26
1
fit an exponential curve
Dear useRs, I have the following plot: pos <- c(27/44, 11/32, 8/40, 4/42, 3/40, 4/40, 2/40) tmin <- c(15.8, 12.6, 10.5, 2.4, 5.2, 8.5, 7.9) plot(tmin, pos) I would like to fit an exponential curve to it. How could I be able to do this? Thanks in advance, Rafael. ____________________________________________________________________________________ [[elided Yahoo spam]] [[alterna...
2005 Jan 31
2
coercing a list to a data frame, lists in foreloops
...only way I know to do this is unsing a foreloop, but this won't work on a list. I've tried to convert the list to a data frame, but that won't happen, either. I want to fill rows in this table: > newtest[10:15,] yrmos yearmo snow.sum snow.mean snow.dep.mean prcp.sum prcp.mean tmin.min 10 195410 NA NA NA NA NA NA NA 11 195411 NA NA NA NA NA NA NA 12 195412 NA NA NA NA NA NA NA 13 195501 NA NA NA NA NA...
2012 Mar 19
3
Issue with asin()
...common in applied agronomy, that aims to determine the degree-days necessary for a given individual to reach a given growth stade. The algorithm (and context) is explained here: http://www.oardc.ohio-state.edu/gdd/glossary.htm , and so I implemented my function in R as follows: DD <- function(Tmin, Tmax, Tseuil, meanT, method = "DDsin") ### function that calculates the degree-days based on ### minimum and maximum recorded temperatures and the ### minimal threshold temperature (lower growth temperature) { ### method arcsin if(method == "DDsin"){ cond1 <- (Tmax <...
2016 Apr 20
1
Use multiple cores on Linux
..., "year","month", "week") setkeyv(temp_hist, mykey) setkeyv(humid_hist, mykey) # hist<- merge(temp_hist, humid_hist, by=mykey) # hist$X.x <- NULL hist$X.y <- NULL # # Max hist_max <- hist hist_max$FIPS <- hist_max$year <- hist_max$month <- hist_max$tmin <- hist_max$tmean <- hist_max$hmin <- hist_max$hmean <- NULL # # Adding Factors hist_max$citycode <- rep(101,nrow(hist_max)) hist_max$year <- rep(2010,nrow(hist_max)) hist_max$lnincome <- rep(10.262,nrow(hist_max)) # # Predictions pred_hist_max <- predict.gam(gam_max_count_w...
2007 Oct 25
0
Error message from nlmer
Hi, I have R 2.6.0 with updated lme4 and Matrix packages, and I am trying to fit a nonlinear multilevel model. I get the following error message: Error in nlmer(f ~ grModel(x, w, Tmin, Tmax, Topt, kopt, m) ~ kopt | flat, : gradient attribute of evaluated model must be a numeric matrix and I wonder what this may indicate. The nonlinear model I try to fit is as follows: > grModel function(x,w,Tmin,Tmax,Topt,kopt,m)((x-Tmin)*(x-Tmax))/((x-Tmin)*(x-Tmax)-(x-Topt)^2)*kopt*w...
2018 Jun 19
3
Paquete dismo, cálculo coeficiente de variación
Estimados erreros, Estoy intentando entender como calcula el paquete dismo ( https://cran.r-project.org/web/packages/dismo/index.html) un coeficiente de variación. Os pongo un ejemplo: tmin <- c(10,12,14,16,18,20,22,21,19,17,15,12) # temperatura mínima media mensual de un año tmax <- tmin + 5 # temperatura máxima media mensual de un año prec <- c(0,2,10,30,80,160,80,20,40,60,20,0) #precipitación media mensual de un año biovars(prec, tmin, tmax) #este comando calcula una serie...
2011 Jun 17
0
Inconsistent results from var.get.nc in RNetCDF
...1209 527 489 407 505 899 1252 1885 2193 2707 2220 2040 1498 1040 689 594 941 729 1374 2016 2556 2475 2193 1841 1316 1010 476 [61] 202 646 1266 1357 1860 2451 2530 2355 2010 1519 1210 228 173 600 1037 1316 1530 2389 2358 2303 2052 1583 The same occurs in the identically structured tmin file, but at 36 instead of 82: > var.get.nc(p8m.tmin,'tmin', start=c(lon_val, lat_val, stval), count=c(1,1,36)) produces Error: Invalid argument But after repeating the command with 30, 31, etc >var.get.nc(p8m.tmin,'tmin', start=c(lon_val, lat_val, stval), count=c(1,1...
2018 Jun 19
2
Paquete dismo, cálculo coeficiente de variación
.../06/2018 a las 11:43, Jaume Tormo escribi?: > > Estimados erreros, > > > > Estoy intentando entender como calcula el paquete dismo ( > > https://cran.r-project.org/web/packages/dismo/index.html) un coeficiente > > de > > variaci?n. Os pongo un ejemplo: > > tmin <- c(10,12,14,16,18,20,22,21,19,17,15,12) # temperatura m?nima media > > mensual de un a?o > > tmax <- tmin + 5 # temperatura m?xima media mensual de un a?o > > prec <- c(0,2,10,30,80,160,80,20,40,60,20,0) #precipitaci?n media mensual > > de un a?o > > biovars...
2018 Mar 25
3
Take average of previous weeks
...-02-28", "1970-03-07"), class = "factor"), value = c(-15.035, -20.478, -22.245, -23.576, -8.84099999999995, -18.497, -13.892, -18.974, -15.919, -13.576)), .Names = c("year", "citycode", "month", "week", "date", "tmin"), row.names = c(NA, 10L), class = "data.frame") [[alternative HTML version deleted]]
2009 Jul 12
1
variance explained by each predictor in GAM
Hi, I am using mgcv:gam and have developed a model with 5 smoothed predictors and one factor. gam1 <- gam(log.sp~ s(Spr.precip,bs="ts") + s(Win.precip,bs="ts") + s( Spr.Tmin,bs="ts") + s(P.sum.Tmin,bs="ts") + s( Win.Tmax,bs="ts") +factor(site),data=dat3) The total deviance explained = 70.4%. I would like to extract the variance explained by each predictor. Is there a straightforward way to do this? I have tried dropping a term and r...
2008 Oct 08
1
Error in spdep: system is computationally singular
...-dnearneigh(coords1,0,20,longlat=TRUE) ** I build a neighbours list with spatial weights** nb20.w<-nb2listw(nb20, glist=NULL, style="W", zero.policy=TRUE) **I run a glm** glm1<-glm(matriz$sp~poly(matriz$iso,3)+poly(matriz$tmax,3)+poly(matriz$mdr,3)+poly(matriz$twq,3)+poly(matriz$tmin,3)+poly(matriz$pdq,3)+poly(matriz$trng,3),data=matriz, subset=matriz$casos1>0, family=binomial) glm.scope<-list("var1"=~1+iso+poly(iso,2)+poly(iso,3),"var2"=~1+tmax+poly(tmax,2)+poly(tmax,3),"var3"=~1+mdr+poly(mdr,2)+poly(mdr,3),"var4"=~1+twq+poly(twq,2...
2012 Aug 27
1
How to average time series data around regular intervals
Hi, I'm pretty new to R and have run into a task which although I'm certain is within R's capabilities, falls outside of mine. :-) Consider the following data set: 2012-07-22 12:12:00, 21 2012-07-22 12:15:00, 22 2012-07-22 12:18:00, 24 2012-07-22 12:39:00, 21 2012-07-22 12:45:00, 25 2012-07-22 12:49:00, 26 2012-07-22 12:53:00, 20 2012-07-22 13:00:00, 18 2012-07-22 13:06:00, 22 My
2005 Jan 25
1
chron: parsing dates into a data frame using a forloop
...data frame with one column of dates, one of years, one of months, one of a unique combination of year and month, and one of days, but R seems to have some problems with this. My initial data frame looks like this (ignore the NAs in the other fields): > mans[1:10,] date loc snow.new prcp tmin snow.dep tmax 1 11/01/54 2 NA NA NA NA NA 2 11/02/54 2 NA NA NA NA NA 3 11/03/54 2 NA NA NA NA NA 4 11/04/54 2 NA NA NA NA NA 5 11/05/54 2 NA NA NA NA NA 6 11/06/54 2 NA NA NA...
2013 Jan 09
1
Need an advise for bayesian estimate
...ows: 1. What is advantage using bayes estimate? Is it better for small samples? 2. How to resolve different estimates depending on the format of response data, and the prior specs (Ex: prior.df)? 3.Should we use interval estimate rather than point estimate for BG? Two-Column format: cppm Tmin lnC lnT Death Number 1 1850 240 7.52294 5.48064 5 5 2 1637 240 7.40062 5.48064 4 5 3 1443 240 7.27448 5.48064 1 5 4 1021 240 6.92854 5.48064...
2005 Jan 26
1
summarizing daily time-series date by month
...with one column of dates, one of years, one of months, one of a unique : combination of year and month, and one of days, but R seems to have some : problems with this. My initial data frame looks like this (ignore the NAs in : the other fields): : : > mans[1:10,] : date loc snow.new prcp tmin snow.dep tmax : 1 11/01/54 2 NA NA NA NA NA : 2 11/02/54 2 NA NA NA NA NA : 3 11/03/54 2 NA NA NA NA NA : 4 11/04/54 2 NA NA NA NA NA : 5 11/05/54 2 NA NA NA NA NA : 6 11/06/54 2 NA N...
2017 Aug 28
3
Extracting subset from netCDF file using lat/lon and converting into .csv in R
I have a series of nertCDF files containing global data for a particular variable, e.g. tmin/tmax/precipiation/windspeed/relative humuidity/radiation etc. I get the following information when using *nc_open* function in R: datafile: https://www.dropbox.com/s/xpo7zklcmtm3g5r/gfdl_preci.nc?dl=0 File gfdl_preci.nc (NC_FORMAT_NETCDF4_CLASSIC): 1 variables (excluding dimension variables):...
2008 Dec 03
1
how to handle irregularly spaced data as timeseries
...with DATE on the x axis. I am just getting my feet wet with R, so I'm struggling a bit to follow the help() pages. Can anyone point me in the proper direction? Thank you in advance. Here is a piece of the dataframe: > cloq.worldclim.HADCM3.A2a DATE YEAR MONTH DAY DOY TMAX TMIN PAR PRECIP 1 15-Jan-2000 2000 1 15 16 -7.2 -19.7 334.99 2.5 2 15-Feb-2000 2000 2 15 46 -3.5 -16.8 471.48 1.7 3 15-Mar-2000 2000 3 15 75 2.7 -9.4 636.96 4.1 4 15-Apr-2000 2000 4 15 106 11.3 -2.1 726.60 5.6 5 15-May-2000 2000 5 15 136 18.9 3.3 767....
2011 May 20
2
Variability plot in R
Is there a package in R that can do a variability plot? A variability plot is a kind of categorized dot plot. (If there is a lot of data in each category, box plots are used rather than dot plots.) Usually, the categories are factor level combinations. All the dot plots appear in the same window; below the x-axis a hierarchy of factors shows which dot plot corresponds to which factor-level
2018 Mar 25
0
Take average of previous weeks
...quot;1970-03-07"), class = "factor"), > value = c(-15.035, -20.478, -22.245, -23.576, -8.84099999999995, > -18.497, -13.892, -18.974, -15.919, -13.576)), .Names = c("year", > "citycode", "month", "week", "date", "tmin"), row.names = c(NA, > 10L), class = "data.frame") > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r...