createCSV | R Documentation |
createCSV automates the creation of an upload-ready csv for the Echinacea Project's online counting database. This function now works for achene counts and x-rays. The function is set up to create 3 records for each letno (3 rounds of counting). The function randomizes the order of records, no need for pre-upload randomization
createCSV(
scansdf = scans,
harvYear,
priority = 50,
type = c("imageTool", "online", "xray")
)
scansdf |
is a data frame of scan filenames and letnos, scans (from function loadScans) by default |
harvYear |
is the year heads were harvested, this needs to be entered |
priority |
is the counting priority of the scans, 50 by default |
type |
the type of upload csv to make, imageTool has filepaths starting with "C:/", online has file paths starting with the online achene counter, and xray has file paths with the online x-ray counter |
returns out, an upload-ready data.frame
simply type in write.csv(out, "C:/assignmentYear.csv", row.names = FALSE to save)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.