dahtah/vecpack: Helps Turn Objects and Lists into Vectors, to Facilitate Interaction with Optimisers and Samplers

Functions like optim(par,f) require "par" to be a vector and "f" to be a function of a vector. Often you'll want to optimise a cost function with several arguments, for example a scalar, a vector and a matrix, and it's more natural to define f = function(scalar,vector,matrix) instead of packing everything into a single vector. vecpack does the packing and unpacking for you.

Getting started

Package details

AuthorSimon Barthelme <[email protected]>
MaintainerSimon Barthelme <[email protected]>
Package repositoryView on GitHub
Installation Install the latest version of this package by entering the following in R:
dahtah/vecpack documentation built on May 12, 2017, 3:29 p.m.