Reorders the factor/loadings pairs in a flash object.

flash_factors_reorder(flash, kset)

Arguments

flash

A flash or flash_fit object.

kset

A vector of integers specifying the new order of the factor/loadings pairs. All existing factors must be included in kset; to drop factors, use flash_factors_remove.

Value

The flash object from argument flash, with the factors reordered according to argument kset.