Learn R Programming

splash (version 1.0.2)

read_csv: Read CSV file

Description

Reads all three daily input variables (sf, tair, and pn) for a single year from a CSV file that includes a header.

Usage

read_csv(fname, y = -1)

Value

List with the following properties:

$file_name

File name.

$sf

Sunshine fraction.

$tair

Air temperature.

$pn

Precipitation.

$num_lines

Number of data points.

$year

Year of data.

Arguments

fname

String, file name.

y

Numeric, year.