Frequently, organizations already have study metadata stored
in Excel spreadsheets, and in the correct structure. This structure
is used commonly in the industry by other software.
The purpose of the write_metadata function is to create an
initial metadata template for studies in which you have no metadata.
This task will ensure that you have the proper metadata structure
to later create the define.xml.
By default, the function creates an unpopulated metadata spreadsheet.
If the demo parameter is set to TRUE, the function will create
the same spreadsheet populated with sample data. This sample data
can help you to understand how to populate the metadata for your study.
Note that this demo spreadsheet is populated correctly, and has no
conformance errors. Use this demo spreadsheet as a guide to fill
out your metadata.
The demo spreadsheet is
included in the defineR package for convenience.