fill.ranges: Fills in missing values in the ranges of taxa
Description
Given a matrix or object of type strat.column with missing values (coded as NA), fill.ranges replaces the missing values that are between first and last occurrences of each taxon (column) with zeros.
Usage
fill.ranges(x, out = 'internals', ...)
Arguments
x
an object of class strat.column or a numerical matrix
out
'internals' returns an index to the counts that are internal to ranges, 'min' replaces these internals with the minimum non-zero counts in each taxon, 'pa' returns a presence/absence matrix with ranges filled
...
not currently used.
Value
fill ranges returns the type of output that it was given as input to x: either a strat.column or a numeric matrix.
Details
Any missing values (NAs) are converted to zeros before filling ranges.