You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tidyr::unnest_wider trips over its own feet when trying to unnest a key, here photos_turtle, where all elements (all four possible photos) are NULL in the first list item.
Should ruODK maybe parse the form schema, unnest each existing column explicitly, and cast it into an appropriate type? This would take the tidyr::unnest_wider magic out of the picture entirely.
Each form should have a first submission with completely filled in fields, which serve as tent poles to help tidyr::unnest_wider do its job. Who knew parsing structured data was that messy, huh.
florianm
changed the title
tidyr::unnest_wider casting error when unnesting form group
tidyr::unnest_wider casting error when unnesting group with all NULL in first submission
Nov 28, 2019
Problem
tidyr::unnest_wider
trips over its own feet when trying to unnest a key, herephotos_turtle
, where all elements (all four possible photos) are NULL in the first list item.Should ruODK maybe parse the form schema, unnest each existing column explicitly, and cast it into an appropriate type? This would take the tidyr::unnest_wider magic out of the picture entirely.
Reproducible example
The offending item is the first list element containing a nested list containing all NULLs.
The same error exists with other objects where the first record contains NULL values.
Error
Solution
Each form should have a first submission with completely filled in fields, which serve as tent poles to help
tidyr::unnest_wider
do its job. Who knew parsing structured data was that messy, huh.Session Info
The text was updated successfully, but these errors were encountered: