calcofi: Get California Cooperative Oceanic Fisheries Investigations...

View source: R/calcofi.R

calcofiR Documentation

Get California Cooperative Oceanic Fisheries Investigations (CALCOFI) data.

Description

FIXME: need to support other data sets in CALCOFI

Usage

calcofi(dataset = "hydro_cast", path = "~/.ots/calcofi", overwrite = TRUE)

Arguments

dataset

A dataset code name, one of hydro, macrozoo, or X

path

A path to store the files, Default: ~/.ots/kelp

overwrite

(logical) To overwrite the path to store files in or not, Default: TRUE.

Examples

## Not run: 
# hydro cast data
(res <- calcofi('hydro_cast'))

# hydro bottle data
(res <- calcofi('hydro_bottle'))

library('dplyr')
res$data %>%
 tbl_df %>%
 select(-cruz_sta) %>%
 group_by(year) %>%
 summarise(avg_wind_spd = mean(wind_spd, na.rm = TRUE)) %>%
 arrange(desc(avg_wind_spd)) %>%
 head

## End(Not run)

ropensci/ots documentation built on Sept. 12, 2022, 2:01 p.m.