Learn R Programming

SpatialExtremes (version 1.1-1)

print: Printing objects of class ``pspline''

Description

A method for printing object of class ``pspline''.

Usage

## S3 method for class 'pspline':
print(x, \dots)

Arguments

x
An object of class ``pspline''. Most often, x is the output of the rbpspline function.
...
Other options to be passed to the print function.

Value

  • Print several information on screen.

Examples

Run this code
n <- 200
x <- runif(n)
fun <- function(x) sin(3 * pi * x)
y <- fun(x) + rnorm(n, 0, sqrt(0.4))
knots <- quantile(x, prob = 1:31 / 32)
fitted <- rbpspline(y, x, knots = knots, degree = 3)
fitted

Run the code above in your browser using DataLab