najsaqib / lfsdataviewer Goto Github PK
View Code? Open in Web Editor NEWLFS Data Visualization. Link for R-Shiny app:
Home Page: https://najsaqib.shinyapps.io/LFSApp/
License: Apache License 2.0
LFS Data Visualization. Link for R-Shiny app:
Home Page: https://najsaqib.shinyapps.io/LFSApp/
License: Apache License 2.0
Need to add stuff so that all parts of the document that rely on CANSIM tables can be viewed in the app.
In the current set-up, what is effectively going on is that once the data is imported, the character variable regarding the date is turned into an explicit date variable through:
df$Date <- as.Date(as.yearmon(df$t, format="%Y/%m"))
Once all the operations are done that depend on there being an explicit date variable (i.e. creating a new variable for each observation that contains the value 1 month, or 12 month ago), the date variable is being turned back into character through this:
# Round, and then suppress scientific notation
df <- format(df, big.mark=",", scientific=FALSE, TRIM=TRUE)
This allows us to display statements by using the following code in the Shiny app:
paste0("Employment for men increased by: ", df %>%
filter(Date == input$date) %>%
filter(i==input$region) %>%
select(EmpMen))
However, if the fields are not turned back into character, we get the following error message when trying to execute the above code:
Adding missing grouping variables:
i
Need to figure out why that is so that we know whether to fix this issue, or continue to work around it by converting the data frame to character before feeding into the Shiny app.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.