loocv_2: Perform leave-one-out cross-validation and spatial...

Description Usage Arguments

View source: R/loocv_2.R

Description

Sean K. Rohan <sean.rohan@noaa.gov> Last update: February 28, 2019 Spatial interpolation with interpolation method selection based on leave-one-out cross validation

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
loocv_2(
  dat,
  var.col,
  lat.col,
  lon.col,
  in.proj = "+proj=longlat +datum=NAD83",
  interp.proj = "+init=epsg:3338 +datum=NAD83 +units=m",
  scale.vars = FALSE,
  center = TRUE,
  scale = TRUE,
  nm = Inf,
  pre = NA,
  ...
)

Arguments

dat

Data frame that contains latitude, longitude, and a variable to be interpolated.

var.col

Name of the variable column that is to be interpolated

lat.col

Name of the latitude column

lon.col

Name of the longitude column

in.proj

Projection for the input data

interp.proj

Projection for the interpolation/output

scale.vars

Should variable be scaled?

center

Passed to scale if scale.vars == TRUE

scale

Passed to scale if scale.vars == TRUE

nm

Maximum number of neighboring stations to use for interpolation.

pre

Prefix for name of the output file. Default (NA) uses variable name from var.col


sean-rohan/TLUtilities documentation built on Sept. 30, 2021, 2:34 a.m.