read_clean_output: Read and clean a simulation file produced by 'simulate_fl'

Description Usage Arguments Value

View source: R/read_clean_output.R

Description

Import simulations, removes simulations with NA and keep only given list of parameters.

Usage

1
read_clean_output(file, keep_param = NULL, two_env = F, ...)

Arguments

file

Name of the simulation file to import.

keep_param

Vector of names corresponding to the names of parameters to keep for the inference. i.e. the parameters varying in the simulations.

two_env

Logical. TRUE if teh sumstat correspond to two environments and FALSE if it correspond to one. Default = FALSE.

...

Options which will be passed to read.table.

Value

A list. The first element is a matrix of the simulation raw results (i.e. the fitness of the mutants). Each row correspond to one simulation. The second element is a matrix of the parameters (only the ones named in keep_param). Each row contains the parameters of the corresponding row of "simulation".


YoannAnciaux/dfeSingleMutationsAcrossEnvironmentsBankAndBolon documentation built on Oct. 31, 2019, 1:19 a.m.