PrepareSequences: 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) interpolation of empty data using the average or weighted average of contiguous cases.

Usage

1
2
3
PrepareSequences(sequence.A = NULL, sequence.A.name = NULL,
  sequence.B = NULL, sequence.B.name = NULL, if.empty.cases = NULL,
  transformation = NULL, silent = NULL)

Arguments

sequence.A

A dataframe containing pollen counts or percentages. This sequence will be used as reference. It will be checked for empty cases.

sequence.A.name

A character string with the name of the sequence.

sequence.B

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

sequence.B.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.

transformation

"none", "percentage", "proportion", "hellinger"

silent

Boolean, set to TRUE to hide all messages, and set to FALSE otherwise.

Value

A list with four slots:

Author(s)

Blas Benito <blasbenito@gmail.com>

Examples

1
data(InputDataExample)

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