Comments (5)
@carehu My "non-fancy" solution was download manually the files, put them in a folder and then read the data from this new folder in order to follow the example in the book.
Thank you! For products & population data I did like you explained and is working. But for the injuries data it still doesn't work. I have used the R.utils package to unzip the file and if I open the unzipped file in notepad it doesn't look like what is in the book. For now I think I will just skip the examples in this chapter. Thanks.
library(R.utils)
gunzip("neiss/injuries.tsv.gz", remove=FALSE)
from mastering-shiny.
For some reason, when I download the data using the function and then read it, the data looks so weird.
I have to download manually
from mastering-shiny.
For some reason, when I download the data using the function and then read it, the data looks so weird.
I have to download manually
I have the same issue
from mastering-shiny.
I have
For some reason, when I download the data using the function and then read it, the data looks so weird.
I have to download manuallyI have the same issue
I have the same issue. Did you find a solution? when I run the code the data doesn't look like what is the book
This is what I get (my folder path is different but I think that shouldn't be an issue)
This is what is in the book
injuries <- vroom::vroom("neiss/injuries.tsv.gz")
injuries
#> # A tibble: 255,064 × 10
#> trmt_date age sex race body_part diag locat…¹ prod_…² weight narra…³
#>
#> 1 2017-01-01 71 male white Upper Trunk Contus… Other … 1807 77.7 71YOM …
#> 2 2017-01-01 16 male white Lower Arm Burns,… Home 676 77.7 16YOM …
#> 3 2017-01-01 58 male white Upper Trunk Contus… Home 649 77.7 58 YOM…
#> 4 2017-01-01 21 male white Lower Trunk Strain… Home 4076 77.7 21 YOM…
#> 5 2017-01-01 54 male white Head Inter … Other … 1807 77.7 54 YOM…
#> 6 2017-01-01 21 male white Hand Fractu… Home 1884 77.7 21 YOM…
#> # … with 255,058 more rows, and abbreviated variable names ¹location,
#> # ²prod_code, ³narrative
from mastering-shiny.
@carehu My "non-fancy" solution was download manually the files, put them in a folder and then read the data from this new folder in order to follow the example in the book.
from mastering-shiny.
Related Issues (20)
- 'Welcome' section outdated HOT 1
- Broken link to Neiss dataset HOT 5
- Link to Shiny cheatsheet at 1.7 incorrect HOT 1
- File organisation: not much info
- Needs database and async coverage
- Icon warnings in chapter 2 HOT 1
- Chapter 7.3 - images not displayed when code ran HOT 1
- neiss download path in basic-case-study.Rmd broken HOT 2
- URL for neiss data in chapter 5 HOT 1
- Issue in the second example of section 6.5.2. Shiny themes
- The link of cheat sheet is broken. HOT 1
- Suggested Shiny version difference: 1.5.0 vs 1.6.0 HOT 1
- Chapter 4 - Wrong URL to download data HOT 4
- Chapter 9 - app not downloading
- Chapter 18.3 Suggestion for additional note to explain concept HOT 1
- Chapter 3.3.6 Excercises function signature seems off
- Chapter 1.5: unclear/no use of verbatimTextOutput() and tableOutput() while it's mentioned
- Error Reading NEISS Files HOT 3
- 10.3.2 Example and `isolate()`
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 mastering-shiny.