Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Extract.fasp

Extract Subset of Function Array


Description

Extract a subset of a function array (an object of class "fasp").

Usage

## S3 method for class 'fasp'
x[I, J, drop=TRUE,...]

Arguments

x

A function array. An object of class "fasp".

I

any valid expression for a subset of the row indices of the array.

J

any valid expression for a subset of the column indices of the array.

drop

Logical. When the selected subset consists of only one cell of the array, if drop=FALSE the result is still returned as a 1 * 1 array of functions (class "fasp") while if drop=TRUE it is returned as a function (class "fv").

...

Ignored.

Details

A function array can be regarded as a matrix whose entries are functions. See fasp.object for an explanation of function arrays.

This routine extracts a sub-array according to the usual conventions for matrix indexing.

Value

A function array (of class "fasp"). Exceptionally, if the array has only one cell, and if drop=TRUE, then the result is a function value table (class "fv").

Author(s)

Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Rolf Turner r.turner@auckland.ac.nz and Ege Rubak rubak@math.aau.dk

See Also

Examples

# Lansing woods data - multitype points with 6 types
 a <- alltypes(lansing, 'K')

 # extract first three marks only
 b <- a[1:3,1:3]
 if(interactive()) {plot(b)}
 # subset of array pertaining to hickories
 h <- a["hickory", ]
 if(interactive()) {plot(h)}

spatstat.core

Core Functionality of the 'spatstat' Family

v2.1-2
GPL (>= 2)
Authors
Adrian Baddeley [aut, cre], Rolf Turner [aut], Ege Rubak [aut], Kasper Klitgaard Berthelsen [ctb], Achmad Choiruddin [ctb], Jean-Francois Coeurjolly [ctb], Ottmar Cronie [ctb], Tilman Davies [ctb], Julian Gilbey [ctb], Yongtao Guan [ctb], Ute Hahn [ctb], Kassel Hingee [ctb], Abdollah Jalilian [ctb], Marie-Colette van Lieshout [ctb], Greg McSwiggan [ctb], Tuomas Rajala [ctb], Suman Rakshit [ctb], Dominic Schuhmacher [ctb], Rasmus Plenge Waagepetersen [ctb], Hangsheng Wang [ctb]
Initial release
2021-04-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.