-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support new field type list
#179
Labels
Comments
I'm interested in this field type for representing multiselect items (although it will have to wait until the In the meantime, I'd vote for the latter approach (convert the cell to a vector using For example, the csv:
with schema fields: [
{
"name": "row_id",
"type": "integer"
},
{
"name": "field1",
"type": "list",
"delimiter": ",",
"itemType": "string"
}
] would become: library(tidyverse)
tibble(
row_id = 1:3,
field1 = list(
c("a", "b", "c"),
c("d", "e"),
c("f")
)
)
#> # A tibble: 3 × 2
#> row_id field1
#> <int> <list>
#> 1 1 <chr [3]>
#> 2 2 <chr [2]>
#> 3 3 <chr [1]> Created on 2024-06-07 with reprex v2.0.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CHANGELOG: https://datapackage.org/overview/changelog/#list-field-type-new
delimiter
to a vector.delimited
arrays #173The text was updated successfully, but these errors were encountered: