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

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]>
LicenseGPL
Version0.1
Package repositoryView on GitHub
Installation Install the latest version of this package by entering the following in R:
install.packages("devtools")
library(devtools)
install_github("dahtah/vecpack")
dahtah/vecpack documentation built on May 12, 2017, 3:29 p.m.