
Convert two columns in a data frame to a 'YAML' sequece of keyed values
Source:R/yamlify_cols_to_keyedvalues.R
yamlify_cols_to_keyedvalues.RdConvert two columns in a data frame to a 'YAML' sequece of keyed values
Examples
cat(
rock::yamlify_cols_to_keyedvalues(
mtcars[1:2, ]
)
);
#> '21': 6.0
#> '21': 6.0