Learn R Programming

SticsRFiles (version 1.7.0)

get_climate_txt: Read STICS input meteorology file

Description

Read the meteorology input for STICS ("climat.txt")

Usage

get_climate_txt(workspace, file_name = "climat.txt", preserve = TRUE)

Value

A data.frame of the input meteorological variables used as input for the STICS model.

Arguments

workspace

Path of the workspace containing the STICS climate file to read

file_name

The meteorology file name (default to climat.txt).

preserve

Logical, TRUE`` for keeping the STICS columns related to date calculation (year, month, day, julian), or only the Date column as a POSIXctotherwise. Default toTRUE`.

Examples

Run this code
path <- get_examples_path(file_type = "txt")
meteo_data <- get_climate_txt(path)

Run the code above in your browser using DataLab