read_prospect: Reads in csv files as exported by Prospect

View source: R/read_prospect.R

read_prospectR Documentation

Reads in csv files as exported by Prospect

Description

Takes a .csv file exported from Prospect and reads it in to R along with the factor labels from the lookups.csv file produced by Prospect. When using this function you must first read the lookups.csv file into R.

Usage

read_prospect(file, dictionary=lookups, convert.date=TRUE, ...)

Arguments

file

The file to be read in

dictionary

The file in which the lookups reside, default is lookups

convert.date

Convert fields ending in ⁠_dt⁠ or ⁠_date⁠ to date format

...

arguments to be passed to read.csv

Value

A data frame formatted as required


EstherHerbert/Useful.functions documentation built on Jan. 31, 2025, 10:41 a.m.