HandleNACases: Prepare input sequences.

Description Usage Arguments Value Author(s) Examples

Description

This function takes a pollen sequence as reference (sequence.A), and a target pollen sequence (sequence.B), checks the integrity of the reference sequence, and tries to adapt the target sequence to the characteristics of the reference sequence: matching column names and number of columns, and no missing data. Missing data can be handled in two ways: 1) deleting rows with NA or empty cases; 2) replacing NA data with zeros.

Usage

1
2
HandleNACases(sequence = NULL, sequence.name = NULL,
  if.empty.cases = NULL, silent = NULL)

Arguments

sequence

A dataframe containing pollen data. This sequence will be compared with and adapted to the structure of sequence.A

sequence.name

A character string with the name of the sequence.

if.empty.cases

A character argument with two possible values "omit", or "zero". The default value is "omit", but it removes every row with at least one empty record. The option "zero" replaces NA data with zeros.

Value

The function returns the reformatted target sequence as a data frame.

Author(s)

Blas Benito <blasbenito@gmail.com>

Examples

1
data(InputDataExample)

BlasBenito/IgnexCompare documentation built on June 9, 2019, 2:53 a.m.