Description Usage Arguments Details Examples
View source: R/write_xdb_funs.R
This function writes the planting management arguments after write_xdb_rotation has been run. See http://salusmodel.glg.msu.edu/salus.ddb.xml for more information about SALUS parameter options. This function should be followed with additional write_xdb_m* (rotation managements), and write_xdb_bottomMatter functions to complete the Experiment file. Includes an option to close the rotation compoment if this is the last management specified.
1 2 | write_xdb_mPlanting(outFile, CropMod, SpeciesID, cultivar, Year, DOY, Ppop,
RowSpc, SDepth, closeComponent = "N")
|
outFile |
Full file path for an existing .xdb.xml to appended to, created with write_xdb_topMatter |
CropMod |
Crop model to be used. C = complex, S = simple. Intermediate I still under development |
SpeciesID |
Species ID |
Year |
Year of planting - if needed -planting on Reported date; XXXX |
DOY |
day of year of planting; only needed if planting management is 'R' or 'Y'. Valid range: 1-366 |
Ppop |
Plant population at seeding; plants m^-2 |
RowSpc |
Row spacing, cm |
SDepth |
planting depth, cm |
closeComponent |
'Y' or 'N' . Should the rotation component be closed? defaults to 'N' |
CultivarID |
cultivar ID, only needed for complex crop model |
All other SALUS planting parameters are set currently as default.
1 2 3 4 5 6 | # file path to existing .xdb.xml file created by write_xdb_topMatter
fileOut <- 'C:/Users/deinesji/1PhdJill/test.xdb.xml'
# append rotation component parameters to .xdb.xml; numeric parameters can be character or numeric
write_xdb_mPlanting(outFile = fileOut, CropMod = 'C', SpeciesID = 'WH', CultivarID = 'P25R40',
Year = 2006, DOY = 276, Ppop = 494.21, RowSpc = 19.05)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.