Learn R Programming

FRK (version 2.3.1)

nbasis: Number of basis functions

Description

Retrieve the number of basis functions from Basis or SRE object.

Usage

nbasis(.Object)

# S4 method for Basis_obj nbasis(.Object)

# S4 method for SRE nbasis(.Object)

Arguments

.Object

object of class Basis or SRE

See Also

auto_basis for automatically constructing basis functions.

Examples

Run this code
library(sp)
data(meuse)
coordinates(meuse) = ~x+y # change into an sp object
G <- auto_basis(manifold = plane(),
                data=meuse,
                nres = 2,
                regular=1,
                type = "Gaussian")
print(nbasis(G))

Run the code above in your browser using DataLab