Hi Steve,
It could be the case that you are trying to find values that are not in
the range of values you are providing.
For example,
x <- c(1,2,3,4,5)
y <- c(10,11,12,13,14)
xout <- c(0.01,0.02)
approx(x,y,xout,method="linear")
R's output:
$x
[1] 0.01 0.02
$y
[1] NA NA
If you want to see th
Steve Murray hotmail.com> writes:
>
>
> Thanks Duncan - a couple of extra points... I should have perhaps pointed
> out that the data are on a *regular*
> 'box' grid (with each value currently spaced at 1 degree intervals). Also,
> I'm looking for something
> fairly simple, like a bilinear i
again,
Steve
> Date: Mon, 1 Sep 2008 18:45:35 -0400
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> CC: r-help@r-project.org
> Subject: Re: [R] Interpolation Problems
>
> On 01/09/2008 6:17 PM, Steve Murray wrote:
>> Dear all,
>>
>> I'm trying to inte
On 01/09/2008 6:17 PM, Steve Murray wrote:
Dear all,
I'm trying to interpolate a dataset to give it twice as many values (I'm giving
the dataset a finer resolution by interpolating from 1 degree to 0.5 degrees)
to match that of a corresponding dataset.
I have the data in both a data frame for
4 matches
Mail list logo