read_wth: Reads weather input data from a single DSSAT weather file...

View source: R/read_wth.R

read_wthR Documentation

Reads weather input data from a single DSSAT weather file (*.WTH)

Description

Reads weather input data from a single DSSAT weather file (*.WTH)

Usage

read_wth(file_name, col_types = NULL, col_names = NULL)

Arguments

file_name

a character vector of length one that contains the name of a single DSSAT output file

col_types

One of NULL, a cols() specification, or a string. See read_fwf or vignette("readr") for more details.

col_names

A character vector of column names; primarily helpful for cases where there are no white spaces between column names within the header line

Value

a tibble containing the data from the raw DSSAT file

Examples


# Extract file path for sample weather file
sample_wth <- system.file('extdata','SAMPLE.WTH',package='DSSAT')

read_wth(sample_wth)


DSSAT documentation built on June 24, 2024, 5:19 p.m.