remove_wt_fitness: Removes lines with NA.

Description Usage Arguments Value

View source: R/read_clean_output.R

Description

Removes the first value of each simulations if it is the wild type. These values are considered as wild type if they are all identical.

Usage

1
remove_wt_fitness(sumstat, two_env = F)

Arguments

sumstat

A matrix of real numbers. Matrix of summary statistics with each row containing the raw fitness of a simulation.

two_env

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

Value

The same matrix as sumstat minus the first column (and the middle column if two envs) if all the values are identical.


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