read_phenocam {phenocamr} | R Documentation |
Read PhenoCam time series data
Description
Reads PhenoCam data into a nested list, preserving header data and critical file name information.
Usage
read_phenocam(filename)
Arguments
filename |
a PhenoCam data file |
Value
A nested data structure including site meta-data, the full header and the data as a 'data.frame()'.
Examples
## Not run:
# download demo data (do not smooth)
download_phenocam(site = "harvard$",
veg_type = "DB",
roi_id = "1000",
frequency = "3",
smooth = FALSE)
# read the phenocamo data file
df = read_phenocam(file.path(tempdir(),"harvard_DB_1000_3day.csv"))
# print data structure
print(summary(df))
# write the phenocamo data file
write_phenocam(df, out_dir = tempdir())
## End(Not run)
[Package phenocamr version 1.1.5 Index]