Skip to contents

Removes unknown fish lengths. Returns an arrow dataset.

Usage

remove_unknown_lengths(data, univariate)

Arguments

data

An arrow dataset of fish data. See open_fish()

univariate

(logical) Will these data be used for univariate analyses (univariate=TRUE)? Or multi-species analyses (univariate=FALSE)? If univariate, when a Length_NA_flag=="Unknown length" record is found, all records of that taxa from that sample are removed. In effect, this is transforming those records into missing data. If univariate=FALSE, when a Length_NA_flag=="Unknown length" record is found, the entire sample is removed and no 0s are filled in, since accurate community data cannot be confirmed for that sample.

Value

data_known An arrow dataset with only known lenghts