Open vmichalowski opened 6 years ago
Hi @vmichalowski, here are some comments:
Data Cleaning
0
and 1
would be better than 1
and 2
because it better captures the binary attribute of the variable sex. dplyr join()
functions. Features of the APP
sliderInput()
.radioButtons()
.uiOutput()
in order for it to be a dynamic input element.Ideas for the unsuccessful features:
Name == input$NameInput
to Name %in% input$NameInput
in server.R. Try this and see if it works.Overall, good work! Everything is organized. README is very informative and the reflection is thorough. Good try with a new dataset as well.
Yidie
Hey @vmichalowski,
Dear @vmichalowski,
Sorry for the late review, I have been sick with a cold recently and somehow, that one slipped through.
That being said, I applaud your effort to work with a new dataset, I think it's a great initiative !! In my personal opinion, I believe that you probably learned a lot more by trying something different and encountering some unexpected challenges, although it is not clearly measurable, that is a very rich learning experience !!
Good job, your app fulfill all the requirements:
ui.R
and a server.R
You also explored these additional features:
DT::dataTableOutput()
to render a searchable table !tabsetPanel()
to make two panels (plot and table)radioButtons()
for user input for sex, which is then used to filter the names available in the dropdown menu.Your homework fulfill all the requirements, but I thought I should also provide some helpful comments and therefore, here are some little tips you might find helpful for your learning.
suppressMessages(suppressWarnings(library(shiny)))
C:/Users/Victoria/Desktop/STAT 545A/STAT545 Homework/STAT545-hw-Michalowski-Victoria
and therefore, if you change working directory for the app folder, you should be able to get away with setwd("hw08 - building shiny apps/")
.write_rds(baby_namesLong, "baby_namesLong.csv")
and write_csv(baby_namesLong, "baby_namesLong.csv")
, but only the latter option is the correct use. If you want to save an rds table to preserve reordering the factors (e.g. if you want to order the names according to the count instead of alphabetically), you would use write_rds(baby_namesLong, "baby_namesLong.rds")
ui.R
and a server.R
, you don't have to put the ui <-
and server <-
portions, you can start directly with fluidPage(
and function(input, output) {
respectively. ui.R
, you could add something like:
tags$p("Data Source: Ministry of Health - British Columbia Vital Statistics Agency, most popular names over the past 100 years for:",
tags$a("boys", href = "https://catalogue.data.gov.bc.ca/dataset/most-popular-boys-names-for-the-past-100-years"), "and for" , tags$a("girls", href = "https://catalogue.data.gov.bc.ca/dataset/most-popular-girl-names-for-the-past-100-years"))
read_csv()
or read.table()
www
folder inside your Shiny App folder? If you did complete that step, did you ensure that the code (img(src = "myimage.jgp", width = "100%")
) was inside the ui.R
and not the server.R
file?Warm regards,
My Linh Thibodeau
@vincenzocoia @gvdr @ksedivyhaley @JoeyBernhardt @mynamedaike @pgonzaleze @derekcho
Here's a link to me README.md file, in which you will find all the links you need to navigate my homework 8.