The get_entity
function creates standard entities that will be easier to transform json.
See also
Other JSON Prep:
clean_field_names()
,
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(Group = 1, entity_id = 1, Value = 1:3, Variable = letters[1:3])
get_entity(df)
#> # A tibble: 1 × 3
#> a b c
#> <int> <int> <int>
#> 1 1 2 3