[R] Interpolating hourly basis

MacQueen, Don macqueen1 at llnl.gov
Thu Nov 17 02:22:13 CET 2011


One option would be, after you have converted one of your date/time
variables (V2 I would assume) to POSIXct class, you can use the interp()
function in the akima package for linear interpolation between adjacent
time points.

-Don

-- 
Don MacQueen

Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062





On 11/16/11 5:56 AM, "abcdef ghijk" <linehunk at yahoo.com> wrote:

>I have a huge data set in the form of
>           V1           V2         V3   V4     V5  V6
>1     201005010000201005010000 1.68291.38 1  0
>2     201005010000201005010300 0.93335.10 1  0
>3     201005010000201005010600 2.25 57.38 1  0
>4     201005010000201005010900 0.43 13.76 1  0
>5     201005010000201005011200 0.74101.14 1  0
>
>I am interested in interpolating it on an hour basis(it's for avery 3
>hours). Data is also being updated after every six hours for next eight
>days. 
>Thanks in advance.
>	[[alternative HTML version deleted]]
>



More information about the R-help mailing list