Re: [R] fields package question

2018-12-25 Thread M P
Actually, let's set it grid_new.l <- list(abcissa=c(-15.0,-14.5),ordinate=y) to avoid out of bounds On Tue, Dec 25, 2018 at 4:41 PM M P wrote: > Thanks, Eric, for looking into that. > The values are below and since I subset the new abcissa is smaller range > grid_new.l <- list(

Re: [R] fields package question

2018-12-25 Thread M P
atted emails are not passed > along. > > > > On Tue, Dec 25, 2018 at 4:13 AM M P wrote: > >> Hello, >> I used commands below to obtain a surface, can plot it and all looks as >> expected. >> How do I evaluate values at new point. I tried as below but that produ

[R] fields package question

2018-12-24 Thread M P
Hello, I used commands below to obtain a surface, can plot it and all looks as expected. How do I evaluate values at new point. I tried as below but that produces errors. Thanks for suggestions/help. x <- log(lambda) y <- rh z <- qext[,,2] grid.l <- list(abcissa=x,ordinate=y) xg <-

[R] an apply question

2013-01-18 Thread m p
Hello, It should be easu but I cannot figure out how to use apply function. I am trying to replace negative values in an array with these values + 24. Would appreciate help. Thanks, Mark shours - apply(fhours, function(x){if (x 0) x - x+24}) Error in match.fun(FUN) : argument FUN is missing,

[R] subsetting time series

2012-12-13 Thread m p
Hello, my series of dates look like [1] 2012-05-30 18:30:00 UTC 2012-05-30 19:30:00 UTC [3] 2012-05-30 20:30:00 UTC 2012-05-30 21:30:00 UTC [5] 2012-05-30 22:30:00 UTC 2012-05-30 23:30:00 UTC [7] 2012-05-31 00:30:00 UTC 2012-05-31 01:30:00 UTC [9] 2012-05-31 02:30:00 UTC 2012-05-31

Re: [R] subsetting time series

2012-12-13 Thread m p
Thats works perfectly, thanks a lot, Mark On Thu, Dec 13, 2012 at 11:34 AM, arun smartpink...@yahoo.com wrote: Hi, Try this: seq1-seq(from=as.POSIXct(2012-05-30 18:30:00,tz=UTC),to=as.POSIXct(2012-05-31 02:30:00,tz=UTC),by=1 hour) seq2-seq(from=as.POSIXct(2012-05-31

[R] ncdf - writing variable to a file

2012-08-21 Thread m p
Hello, I have a problem writing a variable to an existing file. Below is a part of my script and how it fails. I can't find create.var.ncdf in help Thanks for any help. Mark nc - open.ncdf(ncname, readunlim=FALSE, write=TRUE ) missing - 1.e+30 xdim - nc$dim[[west_east]] ydim -

[R] variable spatial correlation

2012-05-16 Thread m p
Hello, I used correlogram from spatial package to determine correlation scale for my data but just looking with bare eye it seems that the correlation scale varies over the domain. Can someone suggest what would the best way to handle that problem? Thanks, Mark [[alternative HTML version

[R] 1-d function fitting

2007-10-25 Thread m p
Hello, I'd like to check if my data can be well approximated with a function (1+x/L) exp(-x/L) and calculate the best value for L. Is there some package in R that would simplify that task? Thanks, Mark __ [[alternative HTML version