Skip to contents

Get a list of years for a given species in a DisMAP dataset

Usage

dm_get_dataset_layer_years(dataset_code, layer)

Arguments

dataset_code

The DisMAP dataset code (e.g., "AI", "EBS", "GOA"), per dm_datasets$dataset_code

layer

The layer in the dataset, typically the scientific name of the species or "Species Richness", per dm_get_dataset_layers(dataset_code)

Value

A vector of years available for the layer in the dataset

Examples

# show list of available years for Summer Flounder in Northeast US Spring
dm_get_dataset_layer_years("NEUS_SPR", "Paralichthys dentatus")
#>  [1] 1974 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989
#> [16] 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004
#> [31] 2005 2006 2007 2008 2009 2010 2011 2012 2013 2015 2016 2017 2018 2019 2021
#> [46] 2022