Clean Field Names
Value
object with names in snakecase::to_lower_camel_case
format
See also
Other JSON Prep:
get_entity()
,
prep_affiliation()
,
prep_array_objects()
,
prep_atomic()
,
prep_creators()
,
prep_data()
,
prep_descriptions()
,
prep_for_json()
,
prep_from_metadata_template()
,
prep_fundingReferences()
,
prep_identifier()
,
prep_language()
,
prep_methodology()
,
prep_methods()
,
prep_nameIdentifiers()
,
prep_object()
,
prep_publicationYear()
,
prep_relatedIdentifiers()
,
prep_rights()
,
prep_subjects()
,
prep_titles()
Examples
df <- data.frame("Sample ID" = 1:10, "Name" = "Fred", "Host Identification" = "Pinus strobus")
clean_field_names(df)
#> sampleID name hostIdentification
#> 1 1 Fred Pinus strobus
#> 2 2 Fred Pinus strobus
#> 3 3 Fred Pinus strobus
#> 4 4 Fred Pinus strobus
#> 5 5 Fred Pinus strobus
#> 6 6 Fred Pinus strobus
#> 7 7 Fred Pinus strobus
#> 8 8 Fred Pinus strobus
#> 9 9 Fred Pinus strobus
#> 10 10 Fred Pinus strobus