Generate a template yaml file to detail metadata for attributes that are factors
write_factors.Rd
write_factors
creates a template as a yaml file for
supplying code definition metadata for factors in a tabular data object that
resides in the R environment.
Value
The name of the file generated is returned, and a template for providing code definition metadata as a yaml file with the file name of the R data object + "_factors.yaml" is created in the working directory.
Details
The yaml template generated by write_factors includes the field names of all fields defined as factors, and each level of the factor. The template supports the ability to provide a definition for each level. The yaml file is written with the name of the data object in R + "_factors". The create_dataTable function will search for this file when creating a EML dataTable entity.