methods-svd {ordr} | R Documentation |
Functionality for singular value decompositions
Description
These methods extract data from, and attribute new data to,
objects of class "svd_ord"
returned by svd_ord()
.
Usage
## S3 method for class 'svd_ord'
as_tbl_ord(x)
## S3 method for class 'svd_ord'
recover_rows(x)
## S3 method for class 'svd_ord'
recover_cols(x)
## S3 method for class 'svd_ord'
recover_inertia(x)
## S3 method for class 'svd_ord'
recover_coord(x)
## S3 method for class 'svd_ord'
recover_conference(x)
## S3 method for class 'svd_ord'
recover_aug_rows(x)
## S3 method for class 'svd_ord'
recover_aug_cols(x)
## S3 method for class 'svd_ord'
recover_aug_coord(x)
Arguments
x |
An ordination object. |
Value
The recovery generics recover_*()
return core model components, distribution of inertia,
supplementary elements, and intrinsic metadata; but they require methods for each model class to
tell them what these components are.
The generic as_tbl_ord()
returns its input wrapped in the 'tbl_ord'
class. Its methods determine what model classes it is allowed to wrap. It
then provides 'tbl_ord' methods with access to the recoverers and hence to
the model components.
See Also
Other methods for singular value decomposition-based techniques:
methods-cancor
,
methods-correspondence
,
methods-lda
,
methods-lra
,
methods-mca
,
methods-prcomp
,
methods-princomp
Other models from the base package:
methods-eigen
Examples
# matrix of U.S. personal expenditure data
class(USPersonalExpenditure)
print(USPersonalExpenditure)
# singular value decomposition into row and column coordinates
USPersonalExpenditure %>%
svd_ord() %>%
as_tbl_ord() %>%
print() -> spend_svd
# recover matrices of row and column coordinates
get_rows(spend_svd)
get_cols(spend_svd)
# augment with row and column names
augment_ord(spend_svd)
# initial matrix decomposition confers no inertia to coordinates
get_conference(spend_svd)