Learn R Programming

sarsop (version 0.6.16)

meta_from_log: meta from log

Description

load metadata from a log file

Usage

meta_from_log(
  parameters,
  log_dir = ".",
  metafile = paste0(log_dir, "/meta.csv")
)

Value

a data.frame with the rows of the matching metadata.

Arguments

parameters

a data.frame with the desired parameter values as given in metafile

log_dir

path to log directory

metafile

path to metafile index, assumed to be meta.csv in log_dir

Examples

Run this code
 # takes > 5s

source(system.file("examples/fisheries-ex.R", package = "sarsop"))
log = tempfile()
alpha <- sarsop(transition, observation, reward, discount, precision = 10,
                log_dir = log)


Run the code above in your browser using DataLab