tourr (version 1.1.0)

freeze: Freeze and thaw matrices

Description

Some terminology: * frozen variables: the variables that have fixed values * warm variables: the remaining variables that vary freely

Usage

freeze(input, frozen)

thaw(input, frozen)

Arguments

Details

A frozen matrix specifies which variables to fix in a projection matrix. Warm variables should be missing (NA) while frozen variables should be set to their fixed values.

Examples

Run this code
frozen <- matrix(NA, nrow = 4, ncol = 2)
frozen[3, ] <- .5

input <- basis_random(4, 2)
freeze(input, frozen)
thaw(input, frozen)
freeze(basis_random(4, 2), frozen)

Run the code above in your browser using DataLab