methods-svd | R Documentation |
These methods extract data from, and attribute new data to,
objects of class "svd_ord"
returned by svd_ord()
.
## 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)
x |
An ordination object. |
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.
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
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.