impute_order_na: Fill in NA values in sequence

View source: R/taxon_rank_level.R

impute_order_naR Documentation

Fill in NA values in sequence

Description

Fill in the NA values in a ascending sequence based on nearby non-NA values. Used to guess the order values for unknown ranks based on the values of known ranks.

Usage

impute_order_na(order, inc = 1)

Arguments

order

An ascending sequences, possibly with NAs

inc

The increment size to use for values in NA blocks at the start and end of the sequence.


ropenscilabs/taxa documentation built on Feb. 23, 2024, 6:31 p.m.