Skip to content

Commit a0a29a6

Browse files
committed
x
1 parent 34d0403 commit a0a29a6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

man/approxNA.Rd renamed to man/approximate.Rd

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
\name{approxNA}
1+
\name{approximate}
22

33
\docType{methods}
44

5-
\alias{approxNA}
6-
\alias{approxNA,SpatRaster-method}
5+
\alias{approximate}
6+
\alias{approximate,SpatRaster-method}
77

88
\title{Estimate values for cell values that are \code{NA} by interpolating between layers}
99

1010
\description{
11-
approxNA uses the \code{stats} function \code{\link{approx}} to estimate values for cells that are \code{NA} by interpolation across layers. Layers are considered equidistant, unless argument \code{z} is used, or \code{time(x)} returns values that are not \code{NA}, in which case these values are used to determine distance between layers.
11+
approximate uses the \code{stats} function \code{\link{approx}} to estimate values for cells that are \code{NA} by interpolation across layers. Layers are considered equidistant, unless argument \code{z} is used, or \code{time(x)} returns values that are not \code{NA}, in which case these values are used to determine distance between layers.
1212

1313
For estimation based on neighboring cells see \code{\link{focal}}
1414
}
1515

1616
\usage{
17-
\S4method{approxNA}{SpatRaster}(x, method="linear", yleft, yright,
17+
\S4method{approximate}{SpatRaster}(x, method="linear", yleft, yright,
1818
rule=1, f=0, ties=mean, z=NULL, NArule=1,filename="", ...)
1919
}
2020

@@ -52,9 +52,9 @@ r2[5:15] <- NA
5252
r3[8:25] <- NA
5353
s <- c(r1,r2,r3,r4,r5,r6)
5454
s[1:5] <- NA
55-
x1 <- approxNA(s)
56-
x2 <- approxNA(s, rule=2)
57-
x3 <- approxNA(s, rule=2, z=c(1,2,3,5,14,15))
55+
x1 <- approximate(s)
56+
x2 <- approximate(s, rule=2)
57+
x3 <- approximate(s, rule=2, z=c(1,2,3,5,14,15))
5858

5959
}
6060

0 commit comments

Comments
 (0)