Learn R Programming

BMEmapping (version 1.2.2)

bme_map: Create BMEmapping object

Description

Function that creates BMEmapping objects; objects that hold all the data information necessary for BME interpolation.

Usage

bme_map(ch, cs, zh, a, b)

Value

A list containing the input arguments ch, cs, zh, a, and b, with class "BMEmapping".

Arguments

ch

A two-column matrix of coordinates for hard data locations.

cs

A two-column matrix of coordinates for soft data locations.

zh

A numeric vector of observed values at the hard data locations.

a

A numeric vector of lower bounds for soft interval data.

b

A numeric vector of upper bounds for soft interval data.

Examples

Run this code
ch <- matrix(c(1, 2, 3, 4), ncol = 2)
cs <- matrix(c(5, 6, 7, 8), ncol = 2)
zh <- c(10, 20)
a <- c(8, 9)
b <- c(12, 14)
obj <- bme_map(ch, cs, zh, a, b)
class(obj)  # "BMEmapping"

Run the code above in your browser using DataLab