Displaying 20 results from an estimated 9000 matches similar to: "Interpolation"
2011 Jan 11
1
Interpolate xts
Hello,
I have a xts object, I would like to fill the NA with linear
interpolated data. Can anyone please help.
> str(zz)
An ‘xts’ object from 2010-11-24 15:59:29 to 2010-11-24 16:00:00 containing:
Data: num [1:23401, 1] 312 312 312 312 312 ...
Indexed by objects of class: [POSIXct,POSIXt] TZ:
xts Attributes:
List of 2
$ src : chr "datafeed"
$ updated: POSIXct[1:1],
2011 Jan 07
1
POSIXct issue
Hello I have trouble getting my original datetime back see below. I hope I
am missing something. Please help.
> tt <- as.POSIXct("2011-01-07 07:49:13", tz="EST")
> tt
[1] "2011-01-07 07:49:13 EST"
> ttn <- as.numeric(tt)
> ttn
[1] 1294404553
> tt <- as.POSIXct(ttn,origin='1970-01-01',tz="EST")
> tt
[1] "2011-01-07
2011 Jan 13
1
Repeating value occurence
How can achieve this in R using seq, or rep function
c(-1,0,1,0,-1,0,1,0,-1,0)
The range value is between-1 and 1, and I want it such that there could be
n number of points between -1 and 1
Anyone? Please help Thanks
Rusty
[[alternative HTML version deleted]]
2005 Aug 27
1
ARIMA (seasonal) backcasting & interpolation
Thanks for everyone's help with zoo -- I think I've got my data set
ready. (The data consists of surface weather temperatures, from 2002
to 2005, one observation per hour. Some values are missing... i.e. NA)
I have three goals:
GOAL #1:Get the data in proper time series form, preserving frequency
information:
> w4.ts <- as.ts( w3.zoo, frequency=(1/3600) )
I hope that 1/3600
2009 Sep 25
2
synchronisation of time series data using interpolation
Readers,
I have data with different time stamps that I wish to plot (for example):
data set 1
time(hh:mm:ss),datum
01:00:00,500
01:00:15,600
01:00:30,750
01:00:45,720
01:01:00,700
01:01:15,725
01:01:30,640
01:01:45,710
data set 2
time,datum
01:00:12,20
01:01:01,55
01:01:55,22
The time interval in data set 1 does not change, but the time interval
in data set 2 does change, such that for a
2008 May 29
1
akima interpolation and triangulation question
Dear all;
First of all, this is probably a more conceptual question than a
R-related one, but still want to give it a try. When working with the
interpolation function "interp" from the package akima and the
triangulation function "tri.mesh" from package tripack I've got NA's
for the interpolation and "error" for the triangulation. The data is
arranged in a
2010 Jul 29
1
Linear Interpolation question
Hi R experts,
I have the following timeseries data:
#example data structure
a <- c(NA,1,NA,5,NA,NA,NA,10,NA,NA)
c <- c(1:10)
df <- data.frame(timestamp=a, sequence=c)
print(df)
where i would like to linearly interpolate between the points 1,5, and
10 in 'timestamp'. Original timestamps should not be modified. Here
the code I use to run the interpolation (so far):
# linear
2013 Sep 18
1
ENC paramater interpolation in ENC, and inline templates
I''m in the process of rolling out a new homegrown ENC (we''ve decided on
using an ENC over hiera; I know it''s not the way a lot of you are going,
but it''s right for us) and am running into some issues with variable
interpolation in ENC data.
To give a concrete example, I''m using modules to configure puppetdb,
puppet master, and puppet clients. So,
2009 Jun 21
1
Problems with bilinear interpolation of a grid
Dear all,
I'm having trouble interpolating a number of gridded datasets that I have. I'm quite new to R so any help/advice that can be offered would be much appreciated!
Firstly I'll describe my dataset. The data is a grid of the planet at 1 degree spatial resolution, with each grid cell containing a value describing a particular variable (e.g. population density) for coordinate
2001 May 22
1
2D interpolation function
As part of a project I am doing, I had to present a 2D table as a
surface. This was fairly straightforward (using persp), but I needed to
interpolate points to make it sort of pretty. This was done by using
quadratic interpolation between the existing points to smooth out the
surface a bit. As I couldn't find an R function that did this, I wrote
an admittedly nasty pair of functions that
2013 Jan 17
1
Help with interpolation
hi guys
I need to interpolate values for the zero coupon yield curve. Following data
is given
date days rate
1996 01
2008 Jul 10
4
Interpolation of data
Hello,
I have the data whcih are not balanced (several missing observations),
and one possibility is t use interpolation method
to get the information missing in this series from other series.
Does anybody know how I can program interpolation of
series1 (which ahs missing observations) and series 2-6,
for example.
Thanks a lot in advance,
Silke
2003 Oct 16
2
Interpolation of azimuth values
Hello
I will make an interpolation of data which represents azimuth direction
( angle from north in clockwise direction) values.
But there is a problem.
Say, for instance, while 1 and 359 indicate somewhat same direction,
interpolation puts values
in the range from 1 to 359. What can I do to solve the problem ?
Anything you offer ?
thanks in advance
Ahmet Temiz
General Directory of
2009 Jan 08
2
interpolation to abscissa
Readers,
I have looked at various documents hosted on the web site; I couldn't
find anything on interpolation. So I started r and accessed the help
(help.start()). (by the way is it possible to configure r to open help
in opera instead of firefox?) Initially I read the help for the akima
package but couldn't understand it. Next I tried the asplines package
help.
I tried to copy the
2000 Jul 27
1
Interpolation using a piecewise linear function in higher dimensions
Dear all,
I am just wondering if anybody has implemented a function that can give a
piecewise linear interpolation in more than 2 dimensions?
I have looked at the akima package, but I would rather like a piecewise
linear interpolation rather than a spline and while it did the job quite
satisfactory for 2 dimensions, I need to interpolate in at least three
dimensions. If anybody has implemented
2011 Apr 16
1
Applying interpolation within a convex hull
Hi there,
I have been using the Tps function (within the Fields package) for a while
now to interpolate different sedimentary units. Due to the method of
formation of the units I know that at some edges the thickness of the unit
decreases to zero. I was wondering if there was someway to specify that the
interpolation only occurs within the convex hull of the data, outside of
which the the values
2011 May 04
1
bivariate linear interpolation
Hi,
I have three matrices (X,Y,P) with the same dimension. The X,Y grid is
regular and I want to
perform linear interpolation to pick out certain points. In matlab
appropriate call is
something like
Pout=interp2(X,Y,P,Xout,Yout, method="linear")
where Xout and Yout are the locations where I want the Pout data
(typically a different grid).
(Scipy has this routine in
2002 Sep 09
1
Monotonic interpolation
Has anyone got a function for smooth monotonic interpolation of a
univariate function? I'm after something like the NAG function PCHIM
which does monotonic Hermite interpolation. Alternatively, montononic
cubic spline interpolation.
Please reply directly.
Rob Hyndman
___________________________________________________
Rob J Hyndman
Associate Professor & Director of Consulting
2011 May 23
2
Variable interpolation challenge
I''m having a problem with variable interpolation that I haven''t found a good
solution to. I want to use a variable as part of the name of a fact, but
the interpolation doesn''t work as expected. I''ve allowed for passing the
mac address into my define() but if it''s not provided I want to look it up
via facter.
if
2003 Jan 30
2
nearest neighbour interpolation
Dear Help List,
My name is Matt Oliver. I have been using R for about a year and find it very
helpful. However, I have a need for a function that I cannot find. I am not very
good at programming so I thought I would ask the group.
I have an irregular grid of data (x = Longitude, y = Latitude). Each pair of my x,y
has a categorical value. Obviously linear or any other numerically based