sub-fmx-ANY-ANY-ANY-method function

Subset of Components in fmx Object

Subset of Components in fmx Object

Taking subset of components in fmx object

## S4 method for signature 'fmx,ANY,ANY,ANY' x[i]

Arguments

  • x: fmx object
  • i: integer or logical vector , the row indices of components to be chosen, see [

Returns

An fmx object consisting of a subset of components. information about the observations (e.g. slots @data and @data.name), will be lost.

Details

Using definitions as S3 method dispatch [.fmx won't work for fmx objects.

Examples

(d = fmx('norm', mean = c(1, 4, 7), w = c(1, 1, 1))) d[1:2]
  • Maintainer: Tingting Zhan
  • License: GPL-2
  • Last published: 2025-03-15

Useful links