View source: R/write_phenocam.r
write_phenocam | R Documentation |
Writes a nested data structure of class phenocamr to file, reconstructing the original data structure from included headers and data components.
write_phenocam(df = NULL, out_dir = tempdir())
df |
a nested data structure of class phenocamr |
out_dir |
output directory where to store data |
writes PhenoCam data structure to file, retains proper header info and inserts a processing time stamp.
## 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.paste(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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.