inbo / esas

R package to access and process ESAS data
Other
0 stars 0 forks source link

Create `read_esas()` function #2

Open peterdesmet opened 2 months ago

peterdesmet commented 2 months ago

Create a function to read the 4 ESAS tables:

# PSEUDO CODE

@return dataframe
read_esas <- function(directory)
  if (observations.csv missing) {
    cli::cli_abort(
      "{.file observations.csv} not found.",
      class = "esas_error_observations_not_found"
    )
 }
 # repeat error for other tables

  df <- campaigns %>%
    left_join() %>%
    left_join() %>%
  df
}