Comments (3)
y %>% dfs_idx(~ length(.x$goodstuff) > 0) %>%
purrr:::map_dfr(~ y[[.x]])
# Error in bind_rows_(x, .id) :
# Column `goodstuff` can't be converted from character to integer
from roomba.
example of issue with data:
toy_data <- jsonlite::fromJSON('
{
"stuff": {
"buried": {
"deep": [
{
"goodstuff": "here",
"name": "Bob Rudis",
"secret_power": 5,
"other_secret_power": []
},
{
"goodstuff": "here",
"name": "Amanda Dobbyn",
"secret_power": 4,
"more_nested_stuff": 4
}
],
"alsodeep": 2342423234,
"deeper": {
"foo": [
{
"goodstuff": 5,
"name": "barb",
"secret_power": []
},
{
"goodstuff": "here",
"name": "borris"
}
]
}
}
}
}', simplifyVector = FALSE)
y <- toy_data %>% replace_null()
y %>% dfs_idx(~ length(.x$goodstuff) > 0) %>%
purrr:::map_dfr(~ y[[.x]])
from roomba.
I just checked with the new roomba()
function - still get same error.
from roomba.
Related Issues (20)
- Function to return non-null names
- Change replace_null to replace using the correct type of NA
- Reddit data not working
- Try to keep types as they are; if we can't map as.character over the entire input
- Allow user to pass bare column names
- Update the readme with any and all
- Throw error / warning if user supplies name which doesn't exist in the data
- Fix the recycling issue in replace_null()
- Export replace_null()
- make shiny app plot not hardwired
- When keep = any, keep rows that are completely null and assign them NA in all cols
- Allow selection of included R package datasets in Shiny app
- ability to rename columns? HOT 3
- Working across different levels of nesting? HOT 7
- every time I read a Json I get internal error warning on R_decompress1 HOT 1
- Move hexsticker up to the level of the package name in README HOT 1
- Depending on roomba HOT 2
- error when installing roomba HOT 5
- Transfer to personal account HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from roomba.