Skip to contents

This function convertd longform tidy ESP indicator data to netcdf

Usage

esp_csv_to_nc(data, fname)

Arguments

data

A data frame containing ESP indicator data in long format. Must contain columns: INDICATOR_NAME, UNITS, DATA_VALUE, YEAR, and SUBMISSION_YEAR

fname

A character string specifying the file path where the .nc file will be saved

Value

.nc file saved at the specified filepath