Examples

# Example to check the input file format
library("FEWSR")

# Copy and paste the following code into the R console if you wish to see the input file format for the Lake plants.
openXL(file.path(system.file("extdata", "FEWS_BIG_Lake_plants_input.xlsx", package = "FEWSR")))
  # opens the workbook using the default spreadsheet application


# Copy and paste the following code into the R console if you wish to see the input file format for the Pond plants.
openXL(file.path(system.file("extdata", "FEWS_Pond_plants_input.xlsx", package = "FEWSR")))
  # opens the workbook using the default spreadsheet application


# Copy and paste the following code into the R console if you wish to see the input file format for the River plants.
openXL(file.path(system.file("extdata", "FEWS_River_plants_input.xlsx", package = "FEWSR")))
  # opens the workbook using the default spreadsheet application



# Examples to show different use cases
fewsr2(file.path(system.file("extdata", "FEWS_River_plants_input.xlsx", package = "FEWSR")), type = "river", output = "both")
# The sheet number is 1 (default) and the surface water is river


fewsr2(file.path(system.file("extdata", "FEWS_Pond_plants_input.xlsx", package = "FEWSR")), sheet = "FEWS pond only input", type = "pond", output = "xlsx")
# The sheet name is "FEWS pond only input" and the surface water is pond


fewsr2(file.path(system.file("extdata", "FEWS_BIG_Lake_plants_input.xlsx", package = "FEWSR")), sheet = 1, type = "lake", output = "csv")
# The sheet number is 1 and the surface water is lake

References



iembry-USGS/FEWSR documentation built on May 18, 2019, 2:33 a.m.