Skip to content
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

Create a json_nested function to identify which documents contain nested arrays #84

Open
jeremystan opened this issue Sep 8, 2016 · 0 comments

Comments

@jeremystan
Copy link
Collaborator

Should create a new column, "nested.array", which identifies which rows have nested arrays.

Should be somewhat similar to this, but not get tripped up on strictly nested objects. Goal is to find the structures that cannot be simply expanded using spread_all.

companies %>% gather_object %>% json_types %>% json_complexity %>% filter(complexity > 1) %>% count(name, type)

#> Source: local data frame [16 x 3]
#> Groups: name [?]
#> 
#>              name   type     n
#>             <chr> <fctr> <int>
#> 1     acquisition object   149
#> 2    acquisitions  array    84
#> 3    competitions  array   221
#> 4  external_links  array   214
#> 5  funding_rounds  array   322
#> ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant