create_wcdirs: Create folders in which to save environmental arrays

View source: R/create_wcdirs.R

create_wcdirsR Documentation

Create folders in which to save environmental arrays

Description

This function creates a set of folders in the specified directory in which environmental arrays (one file for each day) can be stored.

Usage

create_wcdirs(dir = getwd(), vars = "temp")

Arguments

dir

A string specifying the directory in which to create a folder for each environmental variable.

vars

A character vector specifying the names of the folders to create in dir. Folders that already exist will not be overwritten; in this case, the function simply returns a warning.

Author(s)

Edward Lavender

Examples


## Not run: 
# Define folders for several variables in the working directory:
create_wcdirs(dir = getwd(), vars = c("temp", "salinity", "tidal_elevation", "short_wave"))

## End(Not run)


edwardlavender/fvcom.tbx documentation built on Nov. 26, 2022, 10:28 p.m.