cgFieldCheck | R Documentation |
This function will take common garden measuring forms from a given year and output a field check data frame. This data frame will contain all "mismatched" action-statuses and will have 5 neighbor statuses on each side of the focal position. This function also takes recheck data frames, and will output all "mismatched" action-statuses from rechecks in the same format as the measuring form. The best way to use this is to make paper data sheets from the csv this function outputs.
cgFieldCheck(mf, yr, rf = FALSE, write.it = FALSE, write.path = NA)
mf |
path to the measure form for a given common garden experiment, generally in cgdata repo (e.g. "summer2019/p1MeasureData/2019MeasureExPt1_2019-08-27.txt") |
yr |
the year the data in the input file was recorded (e.g. 2019, as above) |
rf |
path to the recheck form for the same common garden experiment, if rechecks are done. If rechecks are not completed, this field should be FALSE (which is the default) (e.g. "/summer2019/p1MeasureData/2019p1Recheck_2019-10-03.txt") |
write.it |
logical: if TRUE, function will output a csv that will save to the folder specified in write.path. The csv will contain row-positions of mismatched action-statuses to field check (and 5 neighbors on each side). if FALSE, function will output R data frame objects. |
write.path |
path to the folder you want to output the write.it csv to |
use this function after measuring is finished for each common garden (1, 2, or all of 679). The function will pull out all mismatched action-statuses (e.g. action=Staple and status=Basal). Check all positions the function outputs, and then integrate the changes into the dataset before running cgRecheck and cgRemeasure. This will save a TON of time and improve data reliability. Also run this function and go into the plots when you finish stapling (p1 only) and rechecking. Once again, this will improve data reliability and will make your job easier in the future :).
## Not run: cgFieldCheck("summer2019/p2MeasureData/2019MeasureExPt2_2019-07-26.txt", 2019,
write.it = T, write.path = "summer2019/recheckFunctionTests")
## End(Not run)
## Not run: cgFieldCheck("summer2019/p1MeasureData/2019MeasureExPt1_2019-09-30WithStaplesAndCorrections.csv", 2019,
"summer2019/p1MeasureData/2019p1Recheck_2019-10-03.txt",
write.it = T, write.path = "summer2019/recheckFunctionTests")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.