Learn R Programming

kergp (version 0.5.7)

shapeSlot: Extracts the Slots of a Structure

Description

Extract the slot of a structure.

Usage

shapeSlot(object, slotName = "par", type = "all", as = "vector")

Value

A vector, list or matrix containing the extraction.

Arguments

object

An object to extract from, typically a covariance kernel.

slotName

Name of the slot to be extracted.

type

Type of slot to be extracted. Can be either a type of parameter, "var" or "all".

as

Type of result wanted. Can be "vector", "list" or "matrix".