unsass: Unstructuring assignments

Description Usage Arguments Author(s) See Also Examples

Description

unsass assigns multiple objects in its argument rhs (right-hand side) to multiple objects (names) chained in its argument lhs (left-hand-side).

This is a helper function to simplify the use of the package. The right-hand side can be a function that returns multiple objects and the left-hand side must be a formula with objects (names) chained by ~. Assignment works via lhs %=% rhs.

Usage

1
unsass(lhs, rhs)

Arguments

lhs

A formula chaining multiple objects (names) together by ~. These are the objects (names) the right-hand side should be assigned to.

rhs

A list of objects that should be assigned to the left-hand side lhs.

Author(s)

Barry Rowlingson (January, 2013)

See Also

Examples

1
2
3
4
f_model <- model(K=2, dist= 'poisson', par=list(lambda=c(0.17, 0.12))) 
f_data <- simulate(f_model) 
mcmc <- mcmc() 
(f_data~f_model~mcmc) %=% mcmcstart(f_data, f_model, mcmc)

simonsays1980/finmix documentation built on Dec. 23, 2021, 2:25 a.m.