leafpacs_convert_ea: Convert EA data to standard input

Description Usage Arguments Value Examples

View source: R/leafpacs-convert-ea.R

Description

Convert EA data to standard input

Usage

1

Arguments

data

Data frame of macrophyte taxa and cover values from EA bulk download.

Value

Data frame

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# Load data
library(dplyr)
indices <- utils::read.csv(system.file("extdat",
                                       "MACP_OPEN_DATA_METRICS.csv",
                                       package = "leafpacs"
))

predictors <- utils::read.csv(system.file("extdat",
                                          "MACP_OPEN_DATA_SITE.csv",
                                          package = "leafpacs"
))
# Tidy data
data <- dplyr::inner_join(indices, predictors, by = "SITE_ID")
data <- dplyr::select(data, -.data$REPLICATE_CODE)
data <- data %>% dplyr::filter(complete.cases(data))
data <- leafpacs_convert_ea(data)

aquaMetrics/leafpacs documentation built on Feb. 5, 2022, 9:10 a.m.