Closed utterances-bot closed 3 years ago
Comment written by Shadrach Akindele on April 06, 2020 05:19:24: Hi Antoine, I tried building the dashboard for Nigeria, following your procedure, but it didn't run. I got the following error message for the chunk on lines 32 to 51: Error: object 'confirmed' not found I then tried to run the code you used for Belgium but I got the following error message on line 395: Error in eval(expr, data, expr_env) : object 'China' not found Please help.
Comment written by Antoine Soetewey on April 06, 2020 08:43:14: Dear Shadrach, Here is the code for Nigeria: https://github.com/AntoineSoetewey/coronavirus_dashboard/blob/master/coronavirus-dashboard-nigeria.Rmd. Hope this helps. Regards, Antoine
Comment written by Shadrach Akindele on April 06, 2020 15:53:59:
Hi Antoine, thanks for the great job you're doing. I attempted to run the code you sent for Nigeria, but I got the following error message on Line 19:
Error in update_datasets() : could not find function "update_datasets"
I commented the line to allow the code to continue running. I got another error message when it attempted to run the chunk from Line 31 to Line 48:
Error: object 'confirmed' not found
Kindly help to resolve the problem. Regards.
Comment written by Antoine Soetewey on April 06, 2020 17:27:08:
You can disregard the update_datasets()
function for now, you will need to to update the dataset but at a later stage.
Are you sure the {coronavirus}
package is properly installed and loaded? To check this, do you see the dataset when you run View(coronavirus)
?
{coronavirus}
package. type
for the country you are trying to build the dashboard? Let me know if this helps.
Comment written by Shadrach Akindele on April 06, 2020 05:19:24: Hi Antoine, I tried building the dashboard for Nigeria, following your procedure, but it didn't run. I got the following error message for the chunk on lines 32 to 51: Error: object 'confirmed' not found I then tried to run the code you used for Belgium but I got the following error message on line 395: Error in eval(expr, data, expr_env) : object 'China' not found Please help.
Comment written by Antoine Soetewey on April 06, 2020 08:43:14: Dear Shadrach, Here is the code for Nigeria: https://github.com/AntoineSoetewey/coronavirus_dashboard/blob/master/coronavirus-dashboard-nigeria.Rmd. Hope this helps. Regards, Antoine
Comment written by Shadrach Akindele on April 06, 2020 15:53:59: Hi Antoine, thanks for the great job you're doing. I attempted to run the code you sent for Nigeria, but I got the following error message on Line 19: Error in update_datasets() : could not find function "update_datasets" I commented the line to allow the code to continue running. I got another error message when it attempted to run the chunk from Line 31 to Line 48: Error: object 'confirmed' not found Kindly help to resolve the problem. Regards.
Comment written by Antoine Soetewey on April 06, 2020 17:27:08:
You can disregard the
update_datasets()
function for now, you will need to to update the dataset but at a later stage.Are you sure the
{coronavirus}
package is properly installed and loaded? To check this, do you see the dataset when you runView(coronavirus)
?
- If you don't see it, it means the package has not been installed and loaded properly. For some unknown reasons, sometimes when installing packages from Github it fails to install some of the dependencies packages. One way to solve it is to install separately those packages and then reinstall the {coronavirus} package from Github. Alternatively, you can also dismiss the updates for the dependencies packages when installing the
{coronavirus}
package.- If you see the dataset, can you see any confirmed cases in the variable
type
for the country you are trying to build the dashboard?Let me know if this helps.
Comment written by Shadrach Akindele on April 06, 2020 21:13:12:
Hi Antoine, thanks for your help. I checked the coronavirus dataset and didn't find anything on Nigeria there. The dataset has 7 columns and 1507 records. Could this be the correct dataset?
Comment written by Shadrach Akindele on April 06, 2020 05:19:24: Hi Antoine, I tried building the dashboard for Nigeria, following your procedure, but it didn't run. I got the following error message for the chunk on lines 32 to 51: Error: object 'confirmed' not found I then tried to run the code you used for Belgium but I got the following error message on line 395: Error in eval(expr, data, expr_env) : object 'China' not found Please help.
Comment written by Antoine Soetewey on April 06, 2020 08:43:14: Dear Shadrach, Here is the code for Nigeria: https://github.com/AntoineSoetewey/coronavirus_dashboard/blob/master/coronavirus-dashboard-nigeria.Rmd. Hope this helps. Regards, Antoine
Comment written by Shadrach Akindele on April 06, 2020 15:53:59: Hi Antoine, thanks for the great job you're doing. I attempted to run the code you sent for Nigeria, but I got the following error message on Line 19: Error in update_datasets() : could not find function "update_datasets" I commented the line to allow the code to continue running. I got another error message when it attempted to run the chunk from Line 31 to Line 48: Error: object 'confirmed' not found Kindly help to resolve the problem. Regards.
Comment written by Antoine Soetewey on April 06, 2020 17:27:08: You can disregard the
update_datasets()
function for now, you will need to to update the dataset but at a later stage. Are you sure the{coronavirus}
package is properly installed and loaded? To check this, do you see the dataset when you runView(coronavirus)
?
- If you don't see it, it means the package has not been installed and loaded properly. For some unknown reasons, sometimes when installing packages from Github it fails to install some of the dependencies packages. One way to solve it is to install separately those packages and then reinstall the {coronavirus} package from Github. Alternatively, you can also dismiss the updates for the dependencies packages when installing the
{coronavirus}
package.- If you see the dataset, can you see any confirmed cases in the variable
type
for the country you are trying to build the dashboard?Let me know if this helps.
Comment written by Shadrach Akindele on April 06, 2020 21:13:12:
Hi Antoine, thanks for your help. I checked the coronavirus dataset and didn't find anything on Nigeria there. The dataset has 7 columns and 1507 records. Could this be the correct dataset?
Comment written by Antoine Soetewey on April 07, 2020 08:44:21:
As you can see from the screenshot, there are 228 rows and 7 columns for Nigeria. Run View(subset(coronavirus, Country.Region == "Nigeria"))
to see it.
Comment written by Shadrach Akindele on April 06, 2020 05:19:24: Hi Antoine, I tried building the dashboard for Nigeria, following your procedure, but it didn't run. I got the following error message for the chunk on lines 32 to 51: Error: object 'confirmed' not found I then tried to run the code you used for Belgium but I got the following error message on line 395: Error in eval(expr, data, expr_env) : object 'China' not found Please help.
Comment written by Antoine Soetewey on April 06, 2020 08:43:14: Dear Shadrach, Here is the code for Nigeria: https://github.com/AntoineSoetewey/coronavirus_dashboard/blob/master/coronavirus-dashboard-nigeria.Rmd. Hope this helps. Regards, Antoine
Comment written by Shadrach Akindele on April 06, 2020 15:53:59: Hi Antoine, thanks for the great job you're doing. I attempted to run the code you sent for Nigeria, but I got the following error message on Line 19: Error in update_datasets() : could not find function "update_datasets" I commented the line to allow the code to continue running. I got another error message when it attempted to run the chunk from Line 31 to Line 48: Error: object 'confirmed' not found Kindly help to resolve the problem. Regards.
Comment written by Antoine Soetewey on April 06, 2020 17:27:08: You can disregard the
update_datasets()
function for now, you will need to to update the dataset but at a later stage. Are you sure the{coronavirus}
package is properly installed and loaded? To check this, do you see the dataset when you runView(coronavirus)
?
- If you don't see it, it means the package has not been installed and loaded properly. For some unknown reasons, sometimes when installing packages from Github it fails to install some of the dependencies packages. One way to solve it is to install separately those packages and then reinstall the {coronavirus} package from Github. Alternatively, you can also dismiss the updates for the dependencies packages when installing the
{coronavirus}
package.- If you see the dataset, can you see any confirmed cases in the variable
type
for the country you are trying to build the dashboard?Let me know if this helps.
Comment written by Shadrach Akindele on April 06, 2020 21:13:12: Hi Antoine, thanks for your help. I checked the coronavirus dataset and didn't find anything on Nigeria there. The dataset has 7 columns and 1507 records. Could this be the correct dataset?
Comment written by Antoine Soetewey on April 07, 2020 08:44:21:
As you can see from the screenshot, there are 228 rows and 7 columns for Nigeria. Run
View(subset(coronavirus, Country.Region == "Nigeria"))
to see it.
Comment written by Shadrach Akindele on April 07, 2020 22:08:27:
Thanks again. I have no Nigerian dataset in the coronavirus dataset. Can you please link me with the correct coronavirus dataset?
The result I have is:
Comment written by Shadrach Akindele on April 06, 2020 05:19:24: Hi Antoine, I tried building the dashboard for Nigeria, following your procedure, but it didn't run. I got the following error message for the chunk on lines 32 to 51: Error: object 'confirmed' not found I then tried to run the code you used for Belgium but I got the following error message on line 395: Error in eval(expr, data, expr_env) : object 'China' not found Please help.
Comment written by Antoine Soetewey on April 06, 2020 08:43:14: Dear Shadrach, Here is the code for Nigeria: https://github.com/AntoineSoetewey/coronavirus_dashboard/blob/master/coronavirus-dashboard-nigeria.Rmd. Hope this helps. Regards, Antoine
Comment written by Shadrach Akindele on April 06, 2020 15:53:59: Hi Antoine, thanks for the great job you're doing. I attempted to run the code you sent for Nigeria, but I got the following error message on Line 19: Error in update_datasets() : could not find function "update_datasets" I commented the line to allow the code to continue running. I got another error message when it attempted to run the chunk from Line 31 to Line 48: Error: object 'confirmed' not found Kindly help to resolve the problem. Regards.
Comment written by Antoine Soetewey on April 06, 2020 17:27:08: You can disregard the
update_datasets()
function for now, you will need to to update the dataset but at a later stage. Are you sure the{coronavirus}
package is properly installed and loaded? To check this, do you see the dataset when you runView(coronavirus)
?
- If you don't see it, it means the package has not been installed and loaded properly. For some unknown reasons, sometimes when installing packages from Github it fails to install some of the dependencies packages. One way to solve it is to install separately those packages and then reinstall the {coronavirus} package from Github. Alternatively, you can also dismiss the updates for the dependencies packages when installing the
{coronavirus}
package.- If you see the dataset, can you see any confirmed cases in the variable
type
for the country you are trying to build the dashboard?Let me know if this helps.
Comment written by Shadrach Akindele on April 06, 2020 21:13:12: Hi Antoine, thanks for your help. I checked the coronavirus dataset and didn't find anything on Nigeria there. The dataset has 7 columns and 1507 records. Could this be the correct dataset?
Comment written by Antoine Soetewey on April 07, 2020 08:44:21: As you can see from the screenshot, there are 228 rows and 7 columns for Nigeria. Run
View(subset(coronavirus, Country.Region == "Nigeria"))
to see it.Comment written by Shadrach Akindele on April 07, 2020 22:08:27:
Thanks again. I have no Nigerian dataset in the coronavirus dataset. Can you please link me with the correct coronavirus dataset?
The result I have is:
Comment written by Shadrach Akindele on April 07, 2020 22:31:21:
Hi Anotoine, thanks very much. I've resolved the problem by reloading the coronavirus dataset by reinstalling the package using
devtools::install_github("RamiKrispin/coronavirus", force = TRUE)
I'm very grateful!
Comment written by Shadrach Akindele on April 06, 2020 05:19:24: Hi Antoine, I tried building the dashboard for Nigeria, following your procedure, but it didn't run. I got the following error message for the chunk on lines 32 to 51: Error: object 'confirmed' not found I then tried to run the code you used for Belgium but I got the following error message on line 395: Error in eval(expr, data, expr_env) : object 'China' not found Please help.
Comment written by Antoine Soetewey on April 06, 2020 08:43:14: Dear Shadrach, Here is the code for Nigeria: https://github.com/AntoineSoetewey/coronavirus_dashboard/blob/master/coronavirus-dashboard-nigeria.Rmd. Hope this helps. Regards, Antoine
Comment written by Shadrach Akindele on April 06, 2020 15:53:59: Hi Antoine, thanks for the great job you're doing. I attempted to run the code you sent for Nigeria, but I got the following error message on Line 19: Error in update_datasets() : could not find function "update_datasets" I commented the line to allow the code to continue running. I got another error message when it attempted to run the chunk from Line 31 to Line 48: Error: object 'confirmed' not found Kindly help to resolve the problem. Regards.
Comment written by Antoine Soetewey on April 06, 2020 17:27:08: You can disregard the
update_datasets()
function for now, you will need to to update the dataset but at a later stage. Are you sure the{coronavirus}
package is properly installed and loaded? To check this, do you see the dataset when you runView(coronavirus)
?
- If you don't see it, it means the package has not been installed and loaded properly. For some unknown reasons, sometimes when installing packages from Github it fails to install some of the dependencies packages. One way to solve it is to install separately those packages and then reinstall the {coronavirus} package from Github. Alternatively, you can also dismiss the updates for the dependencies packages when installing the
{coronavirus}
package.- If you see the dataset, can you see any confirmed cases in the variable
type
for the country you are trying to build the dashboard?Let me know if this helps.
Comment written by Shadrach Akindele on April 06, 2020 21:13:12: Hi Antoine, thanks for your help. I checked the coronavirus dataset and didn't find anything on Nigeria there. The dataset has 7 columns and 1507 records. Could this be the correct dataset?
Comment written by Antoine Soetewey on April 07, 2020 08:44:21: As you can see from the screenshot, there are 228 rows and 7 columns for Nigeria. Run
View(subset(coronavirus, Country.Region == "Nigeria"))
to see it.Comment written by Shadrach Akindele on April 07, 2020 22:08:27: Thanks again. I have no Nigerian dataset in the coronavirus dataset. Can you please link me with the correct coronavirus dataset? The result I have is:
Comment written by Shadrach Akindele on April 07, 2020 22:31:21:
Hi Anotoine, thanks very much. I've resolved the problem by reloading the coronavirus dataset by reinstalling the package using
devtools::install_github("RamiKrispin/coronavirus", force = TRUE)
I'm very grateful!
Comment written by Antoine Soetewey on April 07, 2020 22:42:12:
You're welcome. Glad you fixed it!
Comment written by José Moniz Fernandes on April 11, 2020 13:52:39:
Hi Antoine,
I adapted your code for Cabo Verde, but I had this error. Any Ideas? Thanks a lot!
Comment written by José Moniz Fernandes on April 11, 2020 13:52:39:
Hi Antoine,
I adapted your code for Cabo Verde, but I had this error. Any Ideas? Thanks a lot!
Comment written by Antoine Soetewey on April 12, 2020 09:23:59:
Dear José,
Here is the code you should use for Cabo Verde: https://github.com/AntoineSoetewey/coronavirus_dashboard/blob/master/coronavirus-dashboard-cabo-verde.Rmd
Your error is because Cabo Verde needs to be surrounded by double backticks, see this line of code: https://github.com/AntoineSoetewey/coronavirus_dashboard/blob/master/coronavirus-dashboard-cabo-verde.Rmd#L230
Hope this helps. Regards, Antoine
Comment written by José Moniz Fernandes on April 11, 2020 13:52:39: Hi Antoine, I adapted your code for Cabo Verde, but I had this error. Any Ideas? Thanks a lot!
Comment written by Antoine Soetewey on April 12, 2020 09:23:59:
Dear José,
Here is the code you should use for Cabo Verde: https://github.com/AntoineSoetewey/coronavirus_dashboard/blob/master/coronavirus-dashboard-cabo-verde.Rmd
Your error is because Cabo Verde needs to be surrounded by double backticks, see this line of code: https://github.com/AntoineSoetewey/coronavirus_dashboard/blob/master/coronavirus-dashboard-cabo-verde.Rmd#L230
Hope this helps. Regards, Antoine
Comment written by José Moniz Fernandes on April 13, 2020 22:22:05:
Dear Antoine,
Thanks for your mail. It's not possible view Maps. https://rpubs.com/Josefer/598683
Comment written by José Moniz Fernandes on April 11, 2020 13:52:39: Hi Antoine, I adapted your code for Cabo Verde, but I had this error. Any Ideas? Thanks a lot!
Comment written by Antoine Soetewey on April 12, 2020 09:23:59: Dear José, Here is the code you should use for Cabo Verde: https://github.com/AntoineSoetewey/coronavirus_dashboard/blob/master/coronavirus-dashboard-cabo-verde.Rmd Your error is because Cabo Verde needs to be surrounded by double backticks, see this line of code: https://github.com/AntoineSoetewey/coronavirus_dashboard/blob/master/coronavirus-dashboard-cabo-verde.Rmd#L230 Hope this helps. Regards, Antoine
Comment written by José Moniz Fernandes on April 13, 2020 22:22:05:
Dear Antoine,
Thanks for your mail. It's not possible view Maps. https://rpubs.com/Josefer/598683
Comment written by Antoine Soetewey on April 13, 2020 22:35:11:
I'm not sure I understand your problem as I see the map in your dashboard. Can you describe your problem in more detail?
Comment written by immunOMS on April 27, 2020 06:09:18:
I wonder why I have the following error:
Comment written by immunOMS on April 27, 2020 06:09:18:
I wonder why I have the following error:
Comment written by Antoine Soetewey on April 27, 2020 06:11:52:
Did you run install.packages("covid19italy")
before running library(covid19italy)
?
Comment written by immunOMS on April 27, 2020 06:09:18: I wonder why I have the following error:
Comment written by Antoine Soetewey on April 27, 2020 06:11:52:
Did you run
install.packages("covid19italy")
before runninglibrary(covid19italy)
?
Comment written by immunOMS on April 27, 2020 06:57:05:
I want to get a dashboard for Peru, not for Italy
Comment written by immunOMS on April 27, 2020 06:09:18: I wonder why I have the following error:
Comment written by Antoine Soetewey on April 27, 2020 06:11:52: Did you run
install.packages("covid19italy")
before runninglibrary(covid19italy)
?Comment written by immunOMS on April 27, 2020 06:57:05:
I want to get a dashboard for Peru, not for Italy
Comment written by Antoine Soetewey on April 27, 2020 07:13:39:
Then you should use the {coronavirus}
package instead of the {covid19italy}
package.
Here is the code for Peru: https://github.com/AntoineSoetewey/coronavirus_dashboard/blob/master/coronavirus-dashboard-peru.Rmd
Comment written by immunOMS on April 27, 2020 06:09:18: I wonder why I have the following error:
Comment written by Antoine Soetewey on April 27, 2020 06:11:52: Did you run
install.packages("covid19italy")
before runninglibrary(covid19italy)
?Comment written by immunOMS on April 27, 2020 06:57:05: I want to get a dashboard for Peru, not for Italy
Comment written by Antoine Soetewey on April 27, 2020 07:13:39:
Then you should use the
{coronavirus}
package instead of the{covid19italy}
package.Here is the code for Peru: https://github.com/AntoineSoetewey/coronavirus_dashboard/blob/master/coronavirus-dashboard-peru.Rmd
Comment written by immunOMS on April 27, 2020 07:24:15:
Thank you, but I got this {r setup, include=FALSE} #------------------ Packages ------------------ library(flexdashboard) # install.packages("devtools") # devtools::install_github("RamiKrispin/coronavirus", force = TRUE) library(coronavirus) data(coronavirus) # update_datasets() # View(coronavirus) # max(coronavirus$date) %>%
<- magrittr::%>%
#------------------ Parameters ------------------ # Set colors # https://www.w3.org/TR/css-c... confirmed_color <- "purple" active_color <- "#1f77b4" recovered_color <- "forestgreen" death_color <- "red" #------------------ Data ------------------ df <- coronavirus %>% # dplyr::filter(date == max(date)) %>% dplyr::filter(Country.Region == "Peru") %>% dplyr::group_by(Country.Region, type) %>% dplyr::summarise(total = sum(cases)) %>% tidyr::pivot_wider( names_from = type, values_from = total ) %>% # dplyr::mutate(unrecovered = confirmed - ifelse(is.na(recovered), 0, recovered) - ifelse(is.na(death), 0, death)) %>% dplyr::mutate(unrecovered = confirmed - ifelse(is.na(death), 0, death)) %>% dplyr::arrange(-confirmed) %>% dplyr::ungroup() %>% dplyr::mutate(country = dplyr::if_else(Country.Region == "United Arab Emirates", "UAE", Country.Region)) %>% dplyr::mutate(country = dplyr::if_else(country == "Mainland China", "China", country)) %>% dplyr::mutate(country = dplyr::if_else(country == "North Macedonia", "N.Macedonia", country)) %>% dplyr::mutate(country = trimws(country)) %>% dplyr::mutate(country = factor(country, levels = country)) df_daily <- coronavirus %>% dplyr::filter(Country.Region == "Peru") %>% dplyr::group_by(date, type) %>% dplyr::summarise(total = sum(cases, na.rm = TRUE)) %>% tidyr::pivot_wider( names_from = type, values_from = total ) %>% dplyr::arrange(date) %>% dplyr::ungroup() %>% #dplyr::mutate(active = confirmed - death - recovered) %>% dplyr::mutate(active = confirmed - death) %>% dplyr::mutate( confirmed_cum = cumsum(confirmed), death_cum = cumsum(death), # recovered_cum = cumsum(recovered), active_cum = cumsum(active) ) df1 <- coronavirus %>% dplyr::filter(date == max(date)) and that https://cran.rstudio.com/bi... Installing package into ‘C:/Users/Obert/Documents/R/win-library/3.6’ (as ‘lib’ is unspecified) Warning in install.packages : package ‘RamiKrispin/coronavirus’ is not available (for R version 3.6.1)
Comment written by immunOMS on April 27, 2020 06:09:18: I wonder why I have the following error:
Comment written by Antoine Soetewey on April 27, 2020 06:11:52: Did you run
install.packages("covid19italy")
before runninglibrary(covid19italy)
?Comment written by immunOMS on April 27, 2020 06:57:05: I want to get a dashboard for Peru, not for Italy
Comment written by Antoine Soetewey on April 27, 2020 07:13:39: Then you should use the
{coronavirus}
package instead of the{covid19italy}
package. Here is the code for Peru: https://github.com/AntoineSoetewey/coronavirus_dashboard/blob/master/coronavirus-dashboard-peru.RmdComment written by immunOMS on April 27, 2020 07:24:15:
Thank you, but I got this {r setup, include=FALSE} #------------------ Packages ------------------ library(flexdashboard) # install.packages("devtools") # devtools::install_github("RamiKrispin/coronavirus", force = TRUE) library(coronavirus) data(coronavirus) # update_datasets() # View(coronavirus) # max(coronavirus$date)
%>%
<- magrittr::%>%
#------------------ Parameters ------------------ # Set colors # https://www.w3.org/TR/css-c... confirmed_color <- "purple" active_color <- "#1f77b4" recovered_color <- "forestgreen" death_color <- "red" #------------------ Data ------------------ df <- coronavirus %>% # dplyr::filter(date == max(date)) %>% dplyr::filter(Country.Region == "Peru") %>% dplyr::group_by(Country.Region, type) %>% dplyr::summarise(total = sum(cases)) %>% tidyr::pivot_wider( names_from = type, values_from = total ) %>% # dplyr::mutate(unrecovered = confirmed - ifelse(is.na(recovered), 0, recovered) - ifelse(is.na(death), 0, death)) %>% dplyr::mutate(unrecovered = confirmed - ifelse(is.na(death), 0, death)) %>% dplyr::arrange(-confirmed) %>% dplyr::ungroup() %>% dplyr::mutate(country = dplyr::if_else(Country.Region == "United Arab Emirates", "UAE", Country.Region)) %>% dplyr::mutate(country = dplyr::if_else(country == "Mainland China", "China", country)) %>% dplyr::mutate(country = dplyr::if_else(country == "North Macedonia", "N.Macedonia", country)) %>% dplyr::mutate(country = trimws(country)) %>% dplyr::mutate(country = factor(country, levels = country)) df_daily <- coronavirus %>% dplyr::filter(Country.Region == "Peru") %>% dplyr::group_by(date, type) %>% dplyr::summarise(total = sum(cases, na.rm = TRUE)) %>% tidyr::pivot_wider( names_from = type, values_from = total ) %>% dplyr::arrange(date) %>% dplyr::ungroup() %>% #dplyr::mutate(active = confirmed - death - recovered) %>% dplyr::mutate(active = confirmed - death) %>% dplyr::mutate( confirmed_cum = cumsum(confirmed), death_cum = cumsum(death), # recovered_cum = cumsum(recovered), active_cum = cumsum(active) ) df1 <- coronavirus %>% dplyr::filter(date == max(date)) and that https://cran.rstudio.com/bi... Installing package into ‘C:/Users/Obert/Documents/R/win-library/3.6’ (as ‘lib’ is unspecified) Warning in install.packages : package ‘RamiKrispin/coronavirus’ is not available (for R version 3.6.1)
Comment written by Antoine Soetewey on April 27, 2020 08:00:07:
Did you install the package with devtools::install_github("RamiKrispin/coronavirus", force = TRUE)
?
Comment written by immunOMS on April 27, 2020 06:09:18: I wonder why I have the following error:
Comment written by Antoine Soetewey on April 27, 2020 06:11:52: Did you run
install.packages("covid19italy")
before runninglibrary(covid19italy)
?Comment written by immunOMS on April 27, 2020 06:57:05: I want to get a dashboard for Peru, not for Italy
Comment written by Antoine Soetewey on April 27, 2020 07:13:39: Then you should use the
{coronavirus}
package instead of the{covid19italy}
package. Here is the code for Peru: https://github.com/AntoineSoetewey/coronavirus_dashboard/blob/master/coronavirus-dashboard-peru.RmdComment written by immunOMS on April 27, 2020 07:24:15: Thank you, but I got this {r setup, include=FALSE} #------------------ Packages ------------------ library(flexdashboard) # install.packages("devtools") # devtools::install_github("RamiKrispin/coronavirus", force = TRUE) library(coronavirus) data(coronavirus) # update_datasets() # View(coronavirus) # max(coronavirus$date)
%>%
<- magrittr::%>%
#------------------ Parameters ------------------ # Set colors # https://www.w3.org/TR/css-c... confirmed_color <- "purple" active_color <- "#1f77b4" recovered_color <- "forestgreen" death_color <- "red" #------------------ Data ------------------ df <- coronavirus %>% # dplyr::filter(date == max(date)) %>% dplyr::filter(Country.Region == "Peru") %>% dplyr::group_by(Country.Region, type) %>% dplyr::summarise(total = sum(cases)) %>% tidyr::pivot_wider( names_from = type, values_from = total ) %>% # dplyr::mutate(unrecovered = confirmed - ifelse(is.na(recovered), 0, recovered) - ifelse(is.na(death), 0, death)) %>% dplyr::mutate(unrecovered = confirmed - ifelse(is.na(death), 0, death)) %>% dplyr::arrange(-confirmed) %>% dplyr::ungroup() %>% dplyr::mutate(country = dplyr::if_else(Country.Region == "United Arab Emirates", "UAE", Country.Region)) %>% dplyr::mutate(country = dplyr::if_else(country == "Mainland China", "China", country)) %>% dplyr::mutate(country = dplyr::if_else(country == "North Macedonia", "N.Macedonia", country)) %>% dplyr::mutate(country = trimws(country)) %>% dplyr::mutate(country = factor(country, levels = country)) df_daily <- coronavirus %>% dplyr::filter(Country.Region == "Peru") %>% dplyr::group_by(date, type) %>% dplyr::summarise(total = sum(cases, na.rm = TRUE)) %>% tidyr::pivot_wider( names_from = type, values_from = total ) %>% dplyr::arrange(date) %>% dplyr::ungroup() %>% #dplyr::mutate(active = confirmed - death - recovered) %>% dplyr::mutate(active = confirmed - death) %>% dplyr::mutate( confirmed_cum = cumsum(confirmed), death_cum = cumsum(death), # recovered_cum = cumsum(recovered), active_cum = cumsum(active) ) df1 <- coronavirus %>% dplyr::filter(date == max(date)) and that https://cran.rstudio.com/bi... Installing package into ‘C:/Users/Obert/Documents/R/win-library/3.6’ (as ‘lib’ is unspecified) Warning in install.packages : package ‘RamiKrispin/coronavirus’ is not available (for R version 3.6.1)Comment written by Antoine Soetewey on April 27, 2020 08:00:07:
Did you install the package with
devtools::install_github("RamiKrispin/coronavirus", force = TRUE)
?
Comment written by immunOMS on April 27, 2020 09:09:12:
It is weird, I think it is a version problem? Or so?
Comment written by immunOMS on April 27, 2020 06:09:18: I wonder why I have the following error:
Comment written by Antoine Soetewey on April 27, 2020 06:11:52: Did you run
install.packages("covid19italy")
before runninglibrary(covid19italy)
?Comment written by immunOMS on April 27, 2020 06:57:05: I want to get a dashboard for Peru, not for Italy
Comment written by Antoine Soetewey on April 27, 2020 07:13:39: Then you should use the
{coronavirus}
package instead of the{covid19italy}
package. Here is the code for Peru: https://github.com/AntoineSoetewey/coronavirus_dashboard/blob/master/coronavirus-dashboard-peru.RmdComment written by immunOMS on April 27, 2020 07:24:15: Thank you, but I got this {r setup, include=FALSE} #------------------ Packages ------------------ library(flexdashboard) # install.packages("devtools") # devtools::install_github("RamiKrispin/coronavirus", force = TRUE) library(coronavirus) data(coronavirus) # update_datasets() # View(coronavirus) # max(coronavirus$date)
%>%
<- magrittr::%>%
#------------------ Parameters ------------------ # Set colors # https://www.w3.org/TR/css-c... confirmed_color <- "purple" active_color <- "#1f77b4" recovered_color <- "forestgreen" death_color <- "red" #------------------ Data ------------------ df <- coronavirus %>% # dplyr::filter(date == max(date)) %>% dplyr::filter(Country.Region == "Peru") %>% dplyr::group_by(Country.Region, type) %>% dplyr::summarise(total = sum(cases)) %>% tidyr::pivot_wider( names_from = type, values_from = total ) %>% # dplyr::mutate(unrecovered = confirmed - ifelse(is.na(recovered), 0, recovered) - ifelse(is.na(death), 0, death)) %>% dplyr::mutate(unrecovered = confirmed - ifelse(is.na(death), 0, death)) %>% dplyr::arrange(-confirmed) %>% dplyr::ungroup() %>% dplyr::mutate(country = dplyr::if_else(Country.Region == "United Arab Emirates", "UAE", Country.Region)) %>% dplyr::mutate(country = dplyr::if_else(country == "Mainland China", "China", country)) %>% dplyr::mutate(country = dplyr::if_else(country == "North Macedonia", "N.Macedonia", country)) %>% dplyr::mutate(country = trimws(country)) %>% dplyr::mutate(country = factor(country, levels = country)) df_daily <- coronavirus %>% dplyr::filter(Country.Region == "Peru") %>% dplyr::group_by(date, type) %>% dplyr::summarise(total = sum(cases, na.rm = TRUE)) %>% tidyr::pivot_wider( names_from = type, values_from = total ) %>% dplyr::arrange(date) %>% dplyr::ungroup() %>% #dplyr::mutate(active = confirmed - death - recovered) %>% dplyr::mutate(active = confirmed - death) %>% dplyr::mutate( confirmed_cum = cumsum(confirmed), death_cum = cumsum(death), # recovered_cum = cumsum(recovered), active_cum = cumsum(active) ) df1 <- coronavirus %>% dplyr::filter(date == max(date)) and that https://cran.rstudio.com/bi... Installing package into ‘C:/Users/Obert/Documents/R/win-library/3.6’ (as ‘lib’ is unspecified) Warning in install.packages : package ‘RamiKrispin/coronavirus’ is not available (for R version 3.6.1)Comment written by Antoine Soetewey on April 27, 2020 08:00:07: Did you install the package with
devtools::install_github("RamiKrispin/coronavirus", force = TRUE)
?Comment written by immunOMS on April 27, 2020 09:09:12:
It is weird, I think it is a version problem? Or so?
Comment written by Antoine Soetewey on April 27, 2020 13:35:22:
Do you see the dataset saved in the environment pane? if yes, check that you have confirmed cases in the dataset.
Comment written by immunOMS on April 27, 2020 06:09:18: I wonder why I have the following error:
Comment written by Antoine Soetewey on April 27, 2020 06:11:52: Did you run
install.packages("covid19italy")
before runninglibrary(covid19italy)
?Comment written by immunOMS on April 27, 2020 06:57:05: I want to get a dashboard for Peru, not for Italy
Comment written by Antoine Soetewey on April 27, 2020 07:13:39: Then you should use the
{coronavirus}
package instead of the{covid19italy}
package. Here is the code for Peru: https://github.com/AntoineSoetewey/coronavirus_dashboard/blob/master/coronavirus-dashboard-peru.RmdComment written by immunOMS on April 27, 2020 07:24:15: Thank you, but I got this {r setup, include=FALSE} #------------------ Packages ------------------ library(flexdashboard) # install.packages("devtools") # devtools::install_github("RamiKrispin/coronavirus", force = TRUE) library(coronavirus) data(coronavirus) # update_datasets() # View(coronavirus) # max(coronavirus$date)
%>%
<- magrittr::%>%
#------------------ Parameters ------------------ # Set colors # https://www.w3.org/TR/css-c... confirmed_color <- "purple" active_color <- "#1f77b4" recovered_color <- "forestgreen" death_color <- "red" #------------------ Data ------------------ df <- coronavirus %>% # dplyr::filter(date == max(date)) %>% dplyr::filter(Country.Region == "Peru") %>% dplyr::group_by(Country.Region, type) %>% dplyr::summarise(total = sum(cases)) %>% tidyr::pivot_wider( names_from = type, values_from = total ) %>% # dplyr::mutate(unrecovered = confirmed - ifelse(is.na(recovered), 0, recovered) - ifelse(is.na(death), 0, death)) %>% dplyr::mutate(unrecovered = confirmed - ifelse(is.na(death), 0, death)) %>% dplyr::arrange(-confirmed) %>% dplyr::ungroup() %>% dplyr::mutate(country = dplyr::if_else(Country.Region == "United Arab Emirates", "UAE", Country.Region)) %>% dplyr::mutate(country = dplyr::if_else(country == "Mainland China", "China", country)) %>% dplyr::mutate(country = dplyr::if_else(country == "North Macedonia", "N.Macedonia", country)) %>% dplyr::mutate(country = trimws(country)) %>% dplyr::mutate(country = factor(country, levels = country)) df_daily <- coronavirus %>% dplyr::filter(Country.Region == "Peru") %>% dplyr::group_by(date, type) %>% dplyr::summarise(total = sum(cases, na.rm = TRUE)) %>% tidyr::pivot_wider( names_from = type, values_from = total ) %>% dplyr::arrange(date) %>% dplyr::ungroup() %>% #dplyr::mutate(active = confirmed - death - recovered) %>% dplyr::mutate(active = confirmed - death) %>% dplyr::mutate( confirmed_cum = cumsum(confirmed), death_cum = cumsum(death), # recovered_cum = cumsum(recovered), active_cum = cumsum(active) ) df1 <- coronavirus %>% dplyr::filter(date == max(date)) and that https://cran.rstudio.com/bi... Installing package into ‘C:/Users/Obert/Documents/R/win-library/3.6’ (as ‘lib’ is unspecified) Warning in install.packages : package ‘RamiKrispin/coronavirus’ is not available (for R version 3.6.1)Comment written by Antoine Soetewey on April 27, 2020 08:00:07: Did you install the package with
devtools::install_github("RamiKrispin/coronavirus", force = TRUE)
?Comment written by immunOMS on April 27, 2020 09:09:12: It is weird, I think it is a version problem? Or so?
Comment written by Antoine Soetewey on April 27, 2020 13:35:22:
Do you see the dataset saved in the environment pane? if yes, check that you have confirmed cases in the dataset.
Comment written by immunOMS on April 28, 2020 02:25:26:
which datasets?
Comment written by immunOMS on April 27, 2020 06:09:18: I wonder why I have the following error:
Comment written by Antoine Soetewey on April 27, 2020 06:11:52: Did you run
install.packages("covid19italy")
before runninglibrary(covid19italy)
?Comment written by immunOMS on April 27, 2020 06:57:05: I want to get a dashboard for Peru, not for Italy
Comment written by Antoine Soetewey on April 27, 2020 07:13:39: Then you should use the
{coronavirus}
package instead of the{covid19italy}
package. Here is the code for Peru: https://github.com/AntoineSoetewey/coronavirus_dashboard/blob/master/coronavirus-dashboard-peru.RmdComment written by immunOMS on April 27, 2020 07:24:15: Thank you, but I got this {r setup, include=FALSE} #------------------ Packages ------------------ library(flexdashboard) # install.packages("devtools") # devtools::install_github("RamiKrispin/coronavirus", force = TRUE) library(coronavirus) data(coronavirus) # update_datasets() # View(coronavirus) # max(coronavirus$date)
%>%
<- magrittr::%>%
#------------------ Parameters ------------------ # Set colors # https://www.w3.org/TR/css-c... confirmed_color <- "purple" active_color <- "#1f77b4" recovered_color <- "forestgreen" death_color <- "red" #------------------ Data ------------------ df <- coronavirus %>% # dplyr::filter(date == max(date)) %>% dplyr::filter(Country.Region == "Peru") %>% dplyr::group_by(Country.Region, type) %>% dplyr::summarise(total = sum(cases)) %>% tidyr::pivot_wider( names_from = type, values_from = total ) %>% # dplyr::mutate(unrecovered = confirmed - ifelse(is.na(recovered), 0, recovered) - ifelse(is.na(death), 0, death)) %>% dplyr::mutate(unrecovered = confirmed - ifelse(is.na(death), 0, death)) %>% dplyr::arrange(-confirmed) %>% dplyr::ungroup() %>% dplyr::mutate(country = dplyr::if_else(Country.Region == "United Arab Emirates", "UAE", Country.Region)) %>% dplyr::mutate(country = dplyr::if_else(country == "Mainland China", "China", country)) %>% dplyr::mutate(country = dplyr::if_else(country == "North Macedonia", "N.Macedonia", country)) %>% dplyr::mutate(country = trimws(country)) %>% dplyr::mutate(country = factor(country, levels = country)) df_daily <- coronavirus %>% dplyr::filter(Country.Region == "Peru") %>% dplyr::group_by(date, type) %>% dplyr::summarise(total = sum(cases, na.rm = TRUE)) %>% tidyr::pivot_wider( names_from = type, values_from = total ) %>% dplyr::arrange(date) %>% dplyr::ungroup() %>% #dplyr::mutate(active = confirmed - death - recovered) %>% dplyr::mutate(active = confirmed - death) %>% dplyr::mutate( confirmed_cum = cumsum(confirmed), death_cum = cumsum(death), # recovered_cum = cumsum(recovered), active_cum = cumsum(active) ) df1 <- coronavirus %>% dplyr::filter(date == max(date)) and that https://cran.rstudio.com/bi... Installing package into ‘C:/Users/Obert/Documents/R/win-library/3.6’ (as ‘lib’ is unspecified) Warning in install.packages : package ‘RamiKrispin/coronavirus’ is not available (for R version 3.6.1)Comment written by Antoine Soetewey on April 27, 2020 08:00:07: Did you install the package with
devtools::install_github("RamiKrispin/coronavirus", force = TRUE)
?Comment written by immunOMS on April 27, 2020 09:09:12: It is weird, I think it is a version problem? Or so?
Comment written by Antoine Soetewey on April 27, 2020 13:35:22: Do you see the dataset saved in the environment pane? if yes, check that you have confirmed cases in the dataset.
Comment written by immunOMS on April 28, 2020 02:25:26:
which datasets?
Comment written by Antoine Soetewey on April 28, 2020 06:45:59:
The coronavirus dataset from the {coronavirus}
package. After installing the package, you need to load the package and the dataset with: library(coronavirus) data(coronavirus)
Comment written by immunOMS on April 27, 2020 06:09:18: I wonder why I have the following error:
Comment written by Antoine Soetewey on April 27, 2020 06:11:52: Did you run
install.packages("covid19italy")
before runninglibrary(covid19italy)
?Comment written by immunOMS on April 27, 2020 06:57:05: I want to get a dashboard for Peru, not for Italy
Comment written by Antoine Soetewey on April 27, 2020 07:13:39: Then you should use the
{coronavirus}
package instead of the{covid19italy}
package. Here is the code for Peru: https://github.com/AntoineSoetewey/coronavirus_dashboard/blob/master/coronavirus-dashboard-peru.RmdComment written by immunOMS on April 27, 2020 07:24:15: Thank you, but I got this {r setup, include=FALSE} #------------------ Packages ------------------ library(flexdashboard) # install.packages("devtools") # devtools::install_github("RamiKrispin/coronavirus", force = TRUE) library(coronavirus) data(coronavirus) # update_datasets() # View(coronavirus) # max(coronavirus$date)
%>%
<- magrittr::%>%
#------------------ Parameters ------------------ # Set colors # https://www.w3.org/TR/css-c... confirmed_color <- "purple" active_color <- "#1f77b4" recovered_color <- "forestgreen" death_color <- "red" #------------------ Data ------------------ df <- coronavirus %>% # dplyr::filter(date == max(date)) %>% dplyr::filter(Country.Region == "Peru") %>% dplyr::group_by(Country.Region, type) %>% dplyr::summarise(total = sum(cases)) %>% tidyr::pivot_wider( names_from = type, values_from = total ) %>% # dplyr::mutate(unrecovered = confirmed - ifelse(is.na(recovered), 0, recovered) - ifelse(is.na(death), 0, death)) %>% dplyr::mutate(unrecovered = confirmed - ifelse(is.na(death), 0, death)) %>% dplyr::arrange(-confirmed) %>% dplyr::ungroup() %>% dplyr::mutate(country = dplyr::if_else(Country.Region == "United Arab Emirates", "UAE", Country.Region)) %>% dplyr::mutate(country = dplyr::if_else(country == "Mainland China", "China", country)) %>% dplyr::mutate(country = dplyr::if_else(country == "North Macedonia", "N.Macedonia", country)) %>% dplyr::mutate(country = trimws(country)) %>% dplyr::mutate(country = factor(country, levels = country)) df_daily <- coronavirus %>% dplyr::filter(Country.Region == "Peru") %>% dplyr::group_by(date, type) %>% dplyr::summarise(total = sum(cases, na.rm = TRUE)) %>% tidyr::pivot_wider( names_from = type, values_from = total ) %>% dplyr::arrange(date) %>% dplyr::ungroup() %>% #dplyr::mutate(active = confirmed - death - recovered) %>% dplyr::mutate(active = confirmed - death) %>% dplyr::mutate( confirmed_cum = cumsum(confirmed), death_cum = cumsum(death), # recovered_cum = cumsum(recovered), active_cum = cumsum(active) ) df1 <- coronavirus %>% dplyr::filter(date == max(date)) and that https://cran.rstudio.com/bi... Installing package into ‘C:/Users/Obert/Documents/R/win-library/3.6’ (as ‘lib’ is unspecified) Warning in install.packages : package ‘RamiKrispin/coronavirus’ is not available (for R version 3.6.1)Comment written by Antoine Soetewey on April 27, 2020 08:00:07: Did you install the package with
devtools::install_github("RamiKrispin/coronavirus", force = TRUE)
?Comment written by immunOMS on April 27, 2020 09:09:12: It is weird, I think it is a version problem? Or so?
Comment written by Antoine Soetewey on April 27, 2020 13:35:22: Do you see the dataset saved in the environment pane? if yes, check that you have confirmed cases in the dataset.
Comment written by immunOMS on April 28, 2020 02:25:26: which datasets?
Comment written by Antoine Soetewey on April 28, 2020 06:45:59:
The coronavirus dataset from the
{coronavirus}
package. After installing the package, you need to load the package and the dataset with:library(coronavirus) data(coronavirus)
Comment written by immunOMS on April 28, 2020 20:33:13:
how am I supposed to do so please?
Comment written by immunOMS on April 27, 2020 06:09:18: I wonder why I have the following error:
Comment written by Antoine Soetewey on April 27, 2020 06:11:52: Did you run
install.packages("covid19italy")
before runninglibrary(covid19italy)
?Comment written by immunOMS on April 27, 2020 06:57:05: I want to get a dashboard for Peru, not for Italy
Comment written by Antoine Soetewey on April 27, 2020 07:13:39: Then you should use the
{coronavirus}
package instead of the{covid19italy}
package. Here is the code for Peru: https://github.com/AntoineSoetewey/coronavirus_dashboard/blob/master/coronavirus-dashboard-peru.RmdComment written by immunOMS on April 27, 2020 07:24:15: Thank you, but I got this {r setup, include=FALSE} #------------------ Packages ------------------ library(flexdashboard) # install.packages("devtools") # devtools::install_github("RamiKrispin/coronavirus", force = TRUE) library(coronavirus) data(coronavirus) # update_datasets() # View(coronavirus) # max(coronavirus$date)
%>%
<- magrittr::%>%
#------------------ Parameters ------------------ # Set colors # https://www.w3.org/TR/css-c... confirmed_color <- "purple" active_color <- "#1f77b4" recovered_color <- "forestgreen" death_color <- "red" #------------------ Data ------------------ df <- coronavirus %>% # dplyr::filter(date == max(date)) %>% dplyr::filter(Country.Region == "Peru") %>% dplyr::group_by(Country.Region, type) %>% dplyr::summarise(total = sum(cases)) %>% tidyr::pivot_wider( names_from = type, values_from = total ) %>% # dplyr::mutate(unrecovered = confirmed - ifelse(is.na(recovered), 0, recovered) - ifelse(is.na(death), 0, death)) %>% dplyr::mutate(unrecovered = confirmed - ifelse(is.na(death), 0, death)) %>% dplyr::arrange(-confirmed) %>% dplyr::ungroup() %>% dplyr::mutate(country = dplyr::if_else(Country.Region == "United Arab Emirates", "UAE", Country.Region)) %>% dplyr::mutate(country = dplyr::if_else(country == "Mainland China", "China", country)) %>% dplyr::mutate(country = dplyr::if_else(country == "North Macedonia", "N.Macedonia", country)) %>% dplyr::mutate(country = trimws(country)) %>% dplyr::mutate(country = factor(country, levels = country)) df_daily <- coronavirus %>% dplyr::filter(Country.Region == "Peru") %>% dplyr::group_by(date, type) %>% dplyr::summarise(total = sum(cases, na.rm = TRUE)) %>% tidyr::pivot_wider( names_from = type, values_from = total ) %>% dplyr::arrange(date) %>% dplyr::ungroup() %>% #dplyr::mutate(active = confirmed - death - recovered) %>% dplyr::mutate(active = confirmed - death) %>% dplyr::mutate( confirmed_cum = cumsum(confirmed), death_cum = cumsum(death), # recovered_cum = cumsum(recovered), active_cum = cumsum(active) ) df1 <- coronavirus %>% dplyr::filter(date == max(date)) and that https://cran.rstudio.com/bi... Installing package into ‘C:/Users/Obert/Documents/R/win-library/3.6’ (as ‘lib’ is unspecified) Warning in install.packages : package ‘RamiKrispin/coronavirus’ is not available (for R version 3.6.1)Comment written by Antoine Soetewey on April 27, 2020 08:00:07: Did you install the package with
devtools::install_github("RamiKrispin/coronavirus", force = TRUE)
?Comment written by immunOMS on April 27, 2020 09:09:12: It is weird, I think it is a version problem? Or so?
Comment written by Antoine Soetewey on April 27, 2020 13:35:22: Do you see the dataset saved in the environment pane? if yes, check that you have confirmed cases in the dataset.
Comment written by immunOMS on April 28, 2020 02:25:26: which datasets?
Comment written by Antoine Soetewey on April 28, 2020 06:45:59: The coronavirus dataset from the
{coronavirus}
package. After installing the package, you need to load the package and the dataset with:library(coronavirus) data(coronavirus)
Comment written by immunOMS on April 28, 2020 20:33:13:
how am I supposed to do so please?
Comment written by immunOMS on April 28, 2020 20:41:47:
https://cran.rstudio.com/bin/windows/Rtools/
Installing packages into C:/Users/Obert/Documents/R/win-library/3.6 (as lib is unspecified) Warning in install.packages : packages RamiKrispin/coronavirus‚ force = TRUE are not available (for R version 3.6.1)
install.packages("RamiKrispin/coronavirus") WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding: https://cran.rstudio.com/bin/windows/Rtools/
Installing package into C:/Users/Obert/Documents/R/win-library/3.6 (as lib is unspecified) Warning in install.packages : package RamiKrispin/coronavirus is not available (for R version 3.6.1)
Comment written by immunOMS on April 27, 2020 06:09:18: I wonder why I have the following error:
Comment written by Antoine Soetewey on April 27, 2020 06:11:52: Did you run
install.packages("covid19italy")
before runninglibrary(covid19italy)
?Comment written by immunOMS on April 27, 2020 06:57:05: I want to get a dashboard for Peru, not for Italy
Comment written by Antoine Soetewey on April 27, 2020 07:13:39: Then you should use the
{coronavirus}
package instead of the{covid19italy}
package. Here is the code for Peru: https://github.com/AntoineSoetewey/coronavirus_dashboard/blob/master/coronavirus-dashboard-peru.RmdComment written by immunOMS on April 27, 2020 07:24:15: Thank you, but I got this {r setup, include=FALSE} #------------------ Packages ------------------ library(flexdashboard) # install.packages("devtools") # devtools::install_github("RamiKrispin/coronavirus", force = TRUE) library(coronavirus) data(coronavirus) # update_datasets() # View(coronavirus) # max(coronavirus$date)
%>%
<- magrittr::%>%
#------------------ Parameters ------------------ # Set colors # https://www.w3.org/TR/css-c... confirmed_color <- "purple" active_color <- "#1f77b4" recovered_color <- "forestgreen" death_color <- "red" #------------------ Data ------------------ df <- coronavirus %>% # dplyr::filter(date == max(date)) %>% dplyr::filter(Country.Region == "Peru") %>% dplyr::group_by(Country.Region, type) %>% dplyr::summarise(total = sum(cases)) %>% tidyr::pivot_wider( names_from = type, values_from = total ) %>% # dplyr::mutate(unrecovered = confirmed - ifelse(is.na(recovered), 0, recovered) - ifelse(is.na(death), 0, death)) %>% dplyr::mutate(unrecovered = confirmed - ifelse(is.na(death), 0, death)) %>% dplyr::arrange(-confirmed) %>% dplyr::ungroup() %>% dplyr::mutate(country = dplyr::if_else(Country.Region == "United Arab Emirates", "UAE", Country.Region)) %>% dplyr::mutate(country = dplyr::if_else(country == "Mainland China", "China", country)) %>% dplyr::mutate(country = dplyr::if_else(country == "North Macedonia", "N.Macedonia", country)) %>% dplyr::mutate(country = trimws(country)) %>% dplyr::mutate(country = factor(country, levels = country)) df_daily <- coronavirus %>% dplyr::filter(Country.Region == "Peru") %>% dplyr::group_by(date, type) %>% dplyr::summarise(total = sum(cases, na.rm = TRUE)) %>% tidyr::pivot_wider( names_from = type, values_from = total ) %>% dplyr::arrange(date) %>% dplyr::ungroup() %>% #dplyr::mutate(active = confirmed - death - recovered) %>% dplyr::mutate(active = confirmed - death) %>% dplyr::mutate( confirmed_cum = cumsum(confirmed), death_cum = cumsum(death), # recovered_cum = cumsum(recovered), active_cum = cumsum(active) ) df1 <- coronavirus %>% dplyr::filter(date == max(date)) and that https://cran.rstudio.com/bi... Installing package into ‘C:/Users/Obert/Documents/R/win-library/3.6’ (as ‘lib’ is unspecified) Warning in install.packages : package ‘RamiKrispin/coronavirus’ is not available (for R version 3.6.1)Comment written by Antoine Soetewey on April 27, 2020 08:00:07: Did you install the package with
devtools::install_github("RamiKrispin/coronavirus", force = TRUE)
?Comment written by immunOMS on April 27, 2020 09:09:12: It is weird, I think it is a version problem? Or so?
Comment written by Antoine Soetewey on April 27, 2020 13:35:22: Do you see the dataset saved in the environment pane? if yes, check that you have confirmed cases in the dataset.
Comment written by immunOMS on April 28, 2020 02:25:26: which datasets?
Comment written by Antoine Soetewey on April 28, 2020 06:45:59: The coronavirus dataset from the
{coronavirus}
package. After installing the package, you need to load the package and the dataset with:library(coronavirus) data(coronavirus)
Comment written by immunOMS on April 28, 2020 20:33:13: how am I supposed to do so please?
Comment written by immunOMS on April 28, 2020 20:41:47:
https://cran.rstudio.com/bin/windows/Rtools/
Installing packages into C:/Users/Obert/Documents/R/win-library/3.6 (as lib is unspecified) Warning in install.packages : packages RamiKrispin/coronavirus‚ force = TRUE are not available (for R version 3.6.1) install.packages("RamiKrispin/coronavirus") WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding: https://cran.rstudio.com/bin/windows/Rtools/ Installing package into C:/Users/Obert/Documents/R/win-library/3.6 (as lib is unspecified) Warning in install.packages : package RamiKrispin/coronavirus is not available (for R version 3.6.1)
Comment written by Antoine Soetewey on April 28, 2020 21:16:23:
How did you install the package ?
install.packages("RamiKrispin/coronavirus")
is not correct. See my previous comment on how to install the package. If it still doesn't work, update R and RStudio and install the last version of Rtools.
Comment written by Jean claude GBADA on May 04, 2020 17:27:55:
Salut cher coach,
J'ai réussi à créer le tableau de bord propre à mon pays. Merci infiniment pour les orientations utiles. Cependant, je voudrais savoir savoir comment se fait la mise à jour de la base de données des pays si l'on voudrait travailler en intégrant les dernières données, pour le nombre de cas celle des dernières semaines.
Comment written by Jean claude GBADA on May 04, 2020 17:27:55:
Salut cher coach,
J'ai réussi à créer le tableau de bord propre à mon pays. Merci infiniment pour les orientations utiles. Cependant, je voudrais savoir savoir comment se fait la mise à jour de la base de données des pays si l'on voudrait travailler en intégrant les dernières données, pour le nombre de cas celle des dernières semaines.
Comment written by Antoine Soetewey on May 04, 2020 17:31:43:
La réponse se trouve dans cette section.
Comment written by Niek Houtman on May 04, 2020 18:43:19:
How to create your own Coronavirus dashboard
If you want to build your own dashboard specific to a country, follow these steps:
1 Open the dashboard here
2 See the entire code via the button "Source code" located in the top right corner of the dashboard, or see the code on GitHub. Copy that code.
3 Open a new R Markdown file (.Rmd), type any title and author (they will be replaced in the next step anyway), select HTML as the output format and click on OK
Nr 3 is the thing I cannot manage. I tried it with the program Typora, but it failed. Already thanks for your answer.
Comment written by Niek Houtman on May 04, 2020 18:43:19:
How to create your own Coronavirus dashboard
If you want to build your own dashboard specific to a country, follow these steps:
1 Open the dashboard here 2 See the entire code via the button "Source code" located in the top right corner of the dashboard, or see the code on GitHub. Copy that code. 3 Open a new R Markdown file (.Rmd), type any title and author (they will be replaced in the next step anyway), select HTML as the output format and click on OK
Nr 3 is the thing I cannot manage. I tried it with the program Typora, but it failed. Already thanks for your answer.
Comment written by Antoine Soetewey on May 05, 2020 05:34:27:
Dear Niek,
To open a new R Markdown file, open RStudio then click on File > New File > R Markdown. If you still struggle, I invite you to read this tutorial on how to get started in R Markdown.
Hope this helps.
Best,
Antoine
Comment written by Jean claude GBADA on May 04, 2020 17:27:55: Salut cher coach, J'ai réussi à créer le tableau de bord propre à mon pays. Merci infiniment pour les orientations utiles. Cependant, je voudrais savoir savoir comment se fait la mise à jour de la base de données des pays si l'on voudrait travailler en intégrant les dernières données, pour le nombre de cas celle des dernières semaines.
Comment written by Antoine Soetewey on May 04, 2020 17:31:43:
La réponse se trouve dans cette section.
Comment written by Jean claude GBADA on May 05, 2020 08:38:10:
Infiniment merci coach.
Comment written by Niek Houtman on May 04, 2020 18:43:19: How to create your own Coronavirus dashboard If you want to build your own dashboard specific to a country, follow these steps: 1 Open the dashboard here 2 See the entire code via the button "Source code" located in the top right corner of the dashboard, or see the code on GitHub. Copy that code. 3 Open a new R Markdown file (.Rmd), type any title and author (they will be replaced in the next step anyway), select HTML as the output format and click on OK Nr 3 is the thing I cannot manage. I tried it with the program Typora, but it failed. Already thanks for your answer.
Comment written by Antoine Soetewey on May 05, 2020 05:34:27:
Dear Niek,
To open a new R Markdown file, open RStudio then click on File > New File > R Markdown. If you still struggle, I invite you to read this tutorial on how to get started in R Markdown.
Hope this helps.
Best, Antoine
Comment written by Niek Houtman on May 05, 2020 18:07:54:
Hello Antoine,
Thanks very much. I am gonna do it.
Gr.
Niek H.
Comment written by Niek Houtman on May 04, 2020 18:43:19: How to create your own Coronavirus dashboard If you want to build your own dashboard specific to a country, follow these steps: 1 Open the dashboard here 2 See the entire code via the button "Source code" located in the top right corner of the dashboard, or see the code on GitHub. Copy that code. 3 Open a new R Markdown file (.Rmd), type any title and author (they will be replaced in the next step anyway), select HTML as the output format and click on OK Nr 3 is the thing I cannot manage. I tried it with the program Typora, but it failed. Already thanks for your answer.
Comment written by Antoine Soetewey on May 05, 2020 05:34:27: Dear Niek, To open a new R Markdown file, open RStudio then click on File > New File > R Markdown. If you still struggle, I invite you to read this tutorial on how to get started in R Markdown. Hope this helps. Best, Antoine
Comment written by Niek Houtman on May 05, 2020 18:07:54:
Hello Antoine,
Thanks very much. I am gonna do it.
Gr. Niek H.
Comment written by Niek Houtman on May 06, 2020 18:14:10:
HI Antoine,
I have a problem. After installing R and Rstudio, and opening a new Markdown file from Rstudio, I got the following message:
Required package versions could not be found: caTools 1.14 is not available Check that getOption("repos") refers to a CRAN repository that contains the needed package versions.
I checked and output is this:
getOption("repos")
CRAN
"@CRAN@"
I do not know how to make this working.
Please help.
Gr. Niek Houtman
Comment written by Niek Houtman on May 04, 2020 18:43:19: How to create your own Coronavirus dashboard If you want to build your own dashboard specific to a country, follow these steps: 1 Open the dashboard here 2 See the entire code via the button "Source code" located in the top right corner of the dashboard, or see the code on GitHub. Copy that code. 3 Open a new R Markdown file (.Rmd), type any title and author (they will be replaced in the next step anyway), select HTML as the output format and click on OK Nr 3 is the thing I cannot manage. I tried it with the program Typora, but it failed. Already thanks for your answer.
Comment written by Antoine Soetewey on May 05, 2020 05:34:27: Dear Niek, To open a new R Markdown file, open RStudio then click on File > New File > R Markdown. If you still struggle, I invite you to read this tutorial on how to get started in R Markdown. Hope this helps. Best, Antoine
Comment written by Niek Houtman on May 05, 2020 18:07:54: Hello Antoine, Thanks very much. I am gonna do it. Gr. Niek H.
Comment written by Niek Houtman on May 06, 2020 18:14:10:
HI Antoine,
I have a problem. After installing R and Rstudio, and opening a new Markdown file from Rstudio, I got the following message:
Required package versions could not be found: caTools 1.14 is not available Check that getOption("repos") refers to a CRAN repository that contains the needed package versions.
I checked and output is this: getOption("repos") CRAN "@cran@"
I do not know how to make this working.
Please help. Gr. Niek Houtman
Comment written by Antoine Soetewey on May 07, 2020 15:59:14:
Dear Niek,
It looks like you do not have the required package to use R Markdown. Try running the following command:
install.packages("caTools")
and then opening the R Markdown file.
Make sure to have an internet connection and no firewall blocking RStudio's access to internet.
Hope this helps.
Best,
Antoine
Comment written by prem panigrahi on May 09, 2020 07:29:58:
Hi Antoine
I am from India, when i am running your code it is showing
"Error in ifelse(is.na(death), 0, death) : object 'death' not found".
Also when I am running
"devtools::install_github("RamiKrispin/coronavirus", force = TRUE)"
it is showing
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : namespace rlang 0.4.2 is already loaded, but >= 0.4.3 is required.
Comment written by prem panigrahi on May 09, 2020 07:29:58:
Hi Antoine
I am from India, when i am running your code it is showing
"Error in ifelse(is.na(death), 0, death) : object 'death' not found".
Also when I am running
"devtools::install_github("RamiKrispin/coronavirus", force = TRUE)"
it is showing
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : namespace rlang 0.4.2 is already loaded, but >= 0.4.3 is required.
Comment written by Antoine Soetewey on May 09, 2020 08:43:17:
Try again after having installed the rlang package:
install.packages('rlang')
Best,
Antoine
Comment written by prem panigrahi on May 09, 2020 07:29:58: Hi Antoine I am from India, when i am running your code it is showing "Error in ifelse(is.na(death), 0, death) : object 'death' not found". Also when I am running "devtools::install_github("RamiKrispin/coronavirus", force = TRUE)" it is showing Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : namespace rlang 0.4.2 is already loaded, but >= 0.4.3 is required.
Comment written by Antoine Soetewey on May 09, 2020 08:43:17:
Try again after having installed the rlang package:
install.packages('rlang')
Best, Antoine
Comment written by prem panigrahi on May 09, 2020 09:17:24:
Thank you Antoine, after installing the rlang package first problem was solved, but the second problem "Error in ifelse(is.na(death), 0, death) : object 'death' not found" problem coming again and again.
Comment written by prem panigrahi on May 09, 2020 07:29:58: Hi Antoine I am from India, when i am running your code it is showing "Error in ifelse(is.na(death), 0, death) : object 'death' not found". Also when I am running "devtools::install_github("RamiKrispin/coronavirus", force = TRUE)" it is showing Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : namespace rlang 0.4.2 is already loaded, but >= 0.4.3 is required.
Comment written by Antoine Soetewey on May 09, 2020 08:43:17: Try again after having installed the rlang package:
install.packages('rlang')
Best, AntoineComment written by prem panigrahi on May 09, 2020 09:17:24:
Thank you Antoine, after installing the rlang package first problem was solved, but the second problem "Error in ifelse(is.na(death), 0, death) : object 'death' not found" problem coming again and again.
Comment written by Antoine Soetewey on May 09, 2020 16:59:25:
Are you sure you properly installed the coronavirus package?
devtools::install_github("RamiKrispin/coronavirus")
Check the dataset coronavirus with:
data(coronavirus)
View(coronavirus)
To see if you have any death cases in the dataset.
Comment written by prem panigrahi on May 09, 2020 07:29:58: Hi Antoine I am from India, when i am running your code it is showing "Error in ifelse(is.na(death), 0, death) : object 'death' not found". Also when I am running "devtools::install_github("RamiKrispin/coronavirus", force = TRUE)" it is showing Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : namespace rlang 0.4.2 is already loaded, but >= 0.4.3 is required.
Comment written by Antoine Soetewey on May 09, 2020 08:43:17: Try again after having installed the rlang package:
install.packages('rlang')
Best, AntoineComment written by prem panigrahi on May 09, 2020 09:17:24: Thank you Antoine, after installing the rlang package first problem was solved, but the second problem "Error in ifelse(is.na(death), 0, death) : object 'death' not found" problem coming again and again.
Comment written by Antoine Soetewey on May 09, 2020 16:59:25:
Are you sure you properly installed the coronavirus package?
devtools::install_github("RamiKrispin/coronavirus")
Check the dataset coronavirus with:
data(coronavirus)
View(coronavirus)
To see if you have any death cases in the dataset.
Comment written by prem panigrahi on May 10, 2020 14:49:31:
The dataset not showing any death cases even after updating the dataset.
Comment written by prem panigrahi on May 09, 2020 07:29:58: Hi Antoine I am from India, when i am running your code it is showing "Error in ifelse(is.na(death), 0, death) : object 'death' not found". Also when I am running "devtools::install_github("RamiKrispin/coronavirus", force = TRUE)" it is showing Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : namespace rlang 0.4.2 is already loaded, but >= 0.4.3 is required.
Comment written by Antoine Soetewey on May 09, 2020 08:43:17: Try again after having installed the rlang package:
install.packages('rlang')
Best, AntoineComment written by prem panigrahi on May 09, 2020 09:17:24: Thank you Antoine, after installing the rlang package first problem was solved, but the second problem "Error in ifelse(is.na(death), 0, death) : object 'death' not found" problem coming again and again.
Comment written by Antoine Soetewey on May 09, 2020 16:59:25: Are you sure you properly installed the coronavirus package?
devtools::install_github("RamiKrispin/coronavirus")
Check the dataset coronavirus with:data(coronavirus)
View(coronavirus)
To see if you have any death cases in the dataset.Comment written by prem panigrahi on May 10, 2020 14:49:31:
The dataset not showing any death cases even after updating the dataset.
Comment written by Antoine Soetewey on May 10, 2020 15:53:04:
For which country you are trying to build the dashboard?
Comment written by prem panigrahi on May 09, 2020 07:29:58: Hi Antoine I am from India, when i am running your code it is showing "Error in ifelse(is.na(death), 0, death) : object 'death' not found". Also when I am running "devtools::install_github("RamiKrispin/coronavirus", force = TRUE)" it is showing Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : namespace rlang 0.4.2 is already loaded, but >= 0.4.3 is required.
Comment written by Antoine Soetewey on May 09, 2020 08:43:17: Try again after having installed the rlang package:
install.packages('rlang')
Best, AntoineComment written by prem panigrahi on May 09, 2020 09:17:24: Thank you Antoine, after installing the rlang package first problem was solved, but the second problem "Error in ifelse(is.na(death), 0, death) : object 'death' not found" problem coming again and again.
Comment written by Antoine Soetewey on May 09, 2020 16:59:25: Are you sure you properly installed the coronavirus package?
devtools::install_github("RamiKrispin/coronavirus")
Check the dataset coronavirus with:data(coronavirus)
View(coronavirus)
To see if you have any death cases in the dataset.Comment written by prem panigrahi on May 10, 2020 14:49:31: The dataset not showing any death cases even after updating the dataset.
Comment written by Antoine Soetewey on May 10, 2020 15:53:04:
For which country you are trying to build the dashboard?
Comment written by prem panigrahi on May 11, 2020 06:18:07:
I am trying to build dashboard for India
Comment written by prem panigrahi on May 09, 2020 07:29:58: Hi Antoine I am from India, when i am running your code it is showing "Error in ifelse(is.na(death), 0, death) : object 'death' not found". Also when I am running "devtools::install_github("RamiKrispin/coronavirus", force = TRUE)" it is showing Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : namespace rlang 0.4.2 is already loaded, but >= 0.4.3 is required.
Comment written by Antoine Soetewey on May 09, 2020 08:43:17: Try again after having installed the rlang package:
install.packages('rlang')
Best, AntoineComment written by prem panigrahi on May 09, 2020 09:17:24: Thank you Antoine, after installing the rlang package first problem was solved, but the second problem "Error in ifelse(is.na(death), 0, death) : object 'death' not found" problem coming again and again.
Comment written by Antoine Soetewey on May 09, 2020 16:59:25: Are you sure you properly installed the coronavirus package?
devtools::install_github("RamiKrispin/coronavirus")
Check the dataset coronavirus with:data(coronavirus)
View(coronavirus)
To see if you have any death cases in the dataset.Comment written by prem panigrahi on May 10, 2020 14:49:31: The dataset not showing any death cases even after updating the dataset.
Comment written by Antoine Soetewey on May 10, 2020 15:53:04: For which country you are trying to build the dashboard?
Comment written by prem panigrahi on May 11, 2020 06:18:07:
I am trying to build dashboard for India
Comment written by Antoine Soetewey on May 11, 2020 06:33:53:
Here is the code for India: https://github.com/AntoineSoetewey/coronavirus_dashboard/blob/master/coronavirus-dashboard-india.Rmd.
I just checked, and there are the death cases in the dataset:
When installing the package, if R asks you whether you would like to update other packages, type "3" for none.
Comment written by prem panigrahi on May 09, 2020 07:29:58: Hi Antoine I am from India, when i am running your code it is showing "Error in ifelse(is.na(death), 0, death) : object 'death' not found". Also when I am running "devtools::install_github("RamiKrispin/coronavirus", force = TRUE)" it is showing Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : namespace rlang 0.4.2 is already loaded, but >= 0.4.3 is required.
Comment written by Antoine Soetewey on May 09, 2020 08:43:17: Try again after having installed the rlang package:
install.packages('rlang')
Best, AntoineComment written by prem panigrahi on May 09, 2020 09:17:24: Thank you Antoine, after installing the rlang package first problem was solved, but the second problem "Error in ifelse(is.na(death), 0, death) : object 'death' not found" problem coming again and again.
Comment written by Antoine Soetewey on May 09, 2020 16:59:25: Are you sure you properly installed the coronavirus package?
devtools::install_github("RamiKrispin/coronavirus")
Check the dataset coronavirus with:data(coronavirus)
View(coronavirus)
To see if you have any death cases in the dataset.Comment written by prem panigrahi on May 10, 2020 14:49:31: The dataset not showing any death cases even after updating the dataset.
Comment written by Antoine Soetewey on May 10, 2020 15:53:04: For which country you are trying to build the dashboard?
Comment written by prem panigrahi on May 11, 2020 06:18:07: I am trying to build dashboard for India
Comment written by Antoine Soetewey on May 11, 2020 06:33:53:
Here is the code for India: https://github.com/AntoineSoetewey/coronavirus_dashboard/blob/master/coronavirus-dashboard-india.Rmd.
I just checked, and there are the death cases in the dataset:
When installing the package, if R asks you whether you would like to update other packages, type "3" for none.
Comment written by prem panigrahi on May 11, 2020 11:19:30:
Now its working. Thanks a lot Antoine for your valuable time and also best wishes for your effort.
Stay safe and healthy.
Comment written by Niek Houtman on May 04, 2020 18:43:19: How to create your own Coronavirus dashboard If you want to build your own dashboard specific to a country, follow these steps: 1 Open the dashboard here 2 See the entire code via the button "Source code" located in the top right corner of the dashboard, or see the code on GitHub. Copy that code. 3 Open a new R Markdown file (.Rmd), type any title and author (they will be replaced in the next step anyway), select HTML as the output format and click on OK Nr 3 is the thing I cannot manage. I tried it with the program Typora, but it failed. Already thanks for your answer.
Comment written by Antoine Soetewey on May 05, 2020 05:34:27: Dear Niek, To open a new R Markdown file, open RStudio then click on File > New File > R Markdown. If you still struggle, I invite you to read this tutorial on how to get started in R Markdown. Hope this helps. Best, Antoine
Comment written by Niek Houtman on May 05, 2020 18:07:54: Hello Antoine, Thanks very much. I am gonna do it. Gr. Niek H.
Comment written by Niek Houtman on May 06, 2020 18:14:10: HI Antoine, I have a problem. After installing R and Rstudio, and opening a new Markdown file from Rstudio, I got the following message: Required package versions could not be found: caTools 1.14 is not available Check that getOption("repos") refers to a CRAN repository that contains the needed package versions. I checked and output is this: getOption("repos") CRAN "@cran@" I do not know how to make this working. Please help. Gr. Niek Houtman
Comment written by Antoine Soetewey on May 07, 2020 15:59:14:
Dear Niek,
It looks like you do not have the required package to use R Markdown. Try running the following command:
install.packages("caTools")
and then opening the R Markdown file.
Make sure to have an internet connection and no firewall blocking RStudio's access to internet.
Hope this helps.
Best, Antoine
Comment written by Niek Houtman on May 12, 2020 13:05:18:
Hi Antoine,
Thanks for your answer, however it helps not yet.
I get the next message:
sessionInfo()
R version 3.2.3 (2015-12-10)
Platform: i686-pc-linux-gnu (32-bit)
Running under: Linux Mint 18.1
locale: [1] LC_CTYPE=nl_NL.UTF-8 LC_NUMERIC=C [3] LC_TIME=nl_NL.UTF-8 LC_COLLATE=nl_NL.UTF-8 [5] LC_MONETARY=nl_NL.UTF-8 LC_MESSAGES=nl_NL.UTF-8 [7] LC_PAPER=nl_NL.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=nl_NL.UTF-8 LC_IDENTIFICATION=C
attached base packages: [1] stats graphics grDevices utils datasets methods base > install.packages("caTools") Installing package into /home/nhoutman/R/i686-pc-linux-gnu-library/3.2 (as lib is unspecified)
Please select a CRAN mirror for use in this session
Warning message: package caTools is not available (for R version 3.2.3) >
So I do not know , what to do next.
Gr.
Niek Houtman
Comment written by Niek Houtman on May 04, 2020 18:43:19: How to create your own Coronavirus dashboard If you want to build your own dashboard specific to a country, follow these steps: 1 Open the dashboard here 2 See the entire code via the button "Source code" located in the top right corner of the dashboard, or see the code on GitHub. Copy that code. 3 Open a new R Markdown file (.Rmd), type any title and author (they will be replaced in the next step anyway), select HTML as the output format and click on OK Nr 3 is the thing I cannot manage. I tried it with the program Typora, but it failed. Already thanks for your answer.
Comment written by Antoine Soetewey on May 05, 2020 05:34:27: Dear Niek, To open a new R Markdown file, open RStudio then click on File > New File > R Markdown. If you still struggle, I invite you to read this tutorial on how to get started in R Markdown. Hope this helps. Best, Antoine
Comment written by Niek Houtman on May 05, 2020 18:07:54: Hello Antoine, Thanks very much. I am gonna do it. Gr. Niek H.
Comment written by Niek Houtman on May 06, 2020 18:14:10: HI Antoine, I have a problem. After installing R and Rstudio, and opening a new Markdown file from Rstudio, I got the following message: Required package versions could not be found: caTools 1.14 is not available Check that getOption("repos") refers to a CRAN repository that contains the needed package versions. I checked and output is this: getOption("repos") CRAN "@cran@" I do not know how to make this working. Please help. Gr. Niek Houtman
Comment written by Antoine Soetewey on May 07, 2020 15:59:14: Dear Niek, It looks like you do not have the required package to use R Markdown. Try running the following command:
install.packages("caTools")
and then opening the R Markdown file. Make sure to have an internet connection and no firewall blocking RStudio's access to internet. Hope this helps. Best, AntoineComment written by Niek Houtman on May 12, 2020 13:05:18:
Hi Antoine,
Thanks for your answer, however it helps not yet.
I get the next message: sessionInfo() R version 3.2.3 (2015-12-10) Platform: i686-pc-linux-gnu (32-bit) Running under: Linux Mint 18.1 locale: [1] LC_CTYPE=nl_NL.UTF-8 LC_NUMERIC=C [3] LC_TIME=nl_NL.UTF-8 LC_COLLATE=nl_NL.UTF-8 [5] LC_MONETARY=nl_NL.UTF-8 LC_MESSAGES=nl_NL.UTF-8 [7] LC_PAPER=nl_NL.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=nl_NL.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base > install.packages("caTools") Installing package into /home/nhoutman/R/i686-pc-linux-gnu-library/3.2 (as lib is unspecified)
Please select a CRAN mirror for use in this session Warning message: package caTools is not available (for R version 3.2.3) >
So I do not know , what to do next.
Gr. Niek Houtman
Comment written by Antoine Soetewey on May 12, 2020 13:14:57:
Do you have the last version of R and RStudio? Your error seems to be something more general than this specific dashboard. Try creating a very basic R Markdown document to see if it compiles correctly and let me know.
Comment written by Niek Houtman on May 04, 2020 18:43:19: How to create your own Coronavirus dashboard If you want to build your own dashboard specific to a country, follow these steps: 1 Open the dashboard here 2 See the entire code via the button "Source code" located in the top right corner of the dashboard, or see the code on GitHub. Copy that code. 3 Open a new R Markdown file (.Rmd), type any title and author (they will be replaced in the next step anyway), select HTML as the output format and click on OK Nr 3 is the thing I cannot manage. I tried it with the program Typora, but it failed. Already thanks for your answer.
Comment written by Antoine Soetewey on May 05, 2020 05:34:27: Dear Niek, To open a new R Markdown file, open RStudio then click on File > New File > R Markdown. If you still struggle, I invite you to read this tutorial on how to get started in R Markdown. Hope this helps. Best, Antoine
Comment written by Niek Houtman on May 05, 2020 18:07:54: Hello Antoine, Thanks very much. I am gonna do it. Gr. Niek H.
Comment written by Niek Houtman on May 06, 2020 18:14:10: HI Antoine, I have a problem. After installing R and Rstudio, and opening a new Markdown file from Rstudio, I got the following message: Required package versions could not be found: caTools 1.14 is not available Check that getOption("repos") refers to a CRAN repository that contains the needed package versions. I checked and output is this: getOption("repos") CRAN "@cran@" I do not know how to make this working. Please help. Gr. Niek Houtman
Comment written by Antoine Soetewey on May 07, 2020 15:59:14: Dear Niek, It looks like you do not have the required package to use R Markdown. Try running the following command:
install.packages("caTools")
and then opening the R Markdown file. Make sure to have an internet connection and no firewall blocking RStudio's access to internet. Hope this helps. Best, AntoineComment written by Niek Houtman on May 12, 2020 13:05:18: Hi Antoine, Thanks for your answer, however it helps not yet. I get the next message: sessionInfo() R version 3.2.3 (2015-12-10) Platform: i686-pc-linux-gnu (32-bit) Running under: Linux Mint 18.1 locale: [1] LC_CTYPE=nl_NL.UTF-8 LC_NUMERIC=C [3] LC_TIME=nl_NL.UTF-8 LC_COLLATE=nl_NL.UTF-8 [5] LC_MONETARY=nl_NL.UTF-8 LC_MESSAGES=nl_NL.UTF-8 [7] LC_PAPER=nl_NL.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=nl_NL.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base > install.packages("caTools") Installing package into /home/nhoutman/R/i686-pc-linux-gnu-library/3.2 (as lib is unspecified) Please select a CRAN mirror for use in this session Warning message: package caTools is not available (for R version 3.2.3) > So I do not know , what to do next. Gr. Niek Houtman
Comment written by Antoine Soetewey on May 12, 2020 13:14:57:
Do you have the last version of R and RStudio? Your error seems to be something more general than this specific dashboard. Try creating a very basic R Markdown document to see if it compiles correctly and let me know.
Comment written by Niek Houtman on May 12, 2020 13:37:24:
Hi Antoine,
I do not know what the versions are fort Mint 18.1 and whitch pacake of CAtools match. I cannot create anything at this moment in Rstudio.
Maybe you can tell me how to delete R and Rstudio.
And after that from scratch a description a new installation with the newest versions? Thanks vm for your answer(s).
Gr. NIek
Comment written by Niek Houtman on May 04, 2020 18:43:19: How to create your own Coronavirus dashboard If you want to build your own dashboard specific to a country, follow these steps: 1 Open the dashboard here 2 See the entire code via the button "Source code" located in the top right corner of the dashboard, or see the code on GitHub. Copy that code. 3 Open a new R Markdown file (.Rmd), type any title and author (they will be replaced in the next step anyway), select HTML as the output format and click on OK Nr 3 is the thing I cannot manage. I tried it with the program Typora, but it failed. Already thanks for your answer.
Comment written by Antoine Soetewey on May 05, 2020 05:34:27: Dear Niek, To open a new R Markdown file, open RStudio then click on File > New File > R Markdown. If you still struggle, I invite you to read this tutorial on how to get started in R Markdown. Hope this helps. Best, Antoine
Comment written by Niek Houtman on May 05, 2020 18:07:54: Hello Antoine, Thanks very much. I am gonna do it. Gr. Niek H.
Comment written by Niek Houtman on May 06, 2020 18:14:10: HI Antoine, I have a problem. After installing R and Rstudio, and opening a new Markdown file from Rstudio, I got the following message: Required package versions could not be found: caTools 1.14 is not available Check that getOption("repos") refers to a CRAN repository that contains the needed package versions. I checked and output is this: getOption("repos") CRAN "@cran@" I do not know how to make this working. Please help. Gr. Niek Houtman
Comment written by Antoine Soetewey on May 07, 2020 15:59:14: Dear Niek, It looks like you do not have the required package to use R Markdown. Try running the following command:
install.packages("caTools")
and then opening the R Markdown file. Make sure to have an internet connection and no firewall blocking RStudio's access to internet. Hope this helps. Best, AntoineComment written by Niek Houtman on May 12, 2020 13:05:18: Hi Antoine, Thanks for your answer, however it helps not yet. I get the next message: sessionInfo() R version 3.2.3 (2015-12-10) Platform: i686-pc-linux-gnu (32-bit) Running under: Linux Mint 18.1 locale: [1] LC_CTYPE=nl_NL.UTF-8 LC_NUMERIC=C [3] LC_TIME=nl_NL.UTF-8 LC_COLLATE=nl_NL.UTF-8 [5] LC_MONETARY=nl_NL.UTF-8 LC_MESSAGES=nl_NL.UTF-8 [7] LC_PAPER=nl_NL.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=nl_NL.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base > install.packages("caTools") Installing package into /home/nhoutman/R/i686-pc-linux-gnu-library/3.2 (as lib is unspecified) Please select a CRAN mirror for use in this session Warning message: package caTools is not available (for R version 3.2.3) > So I do not know , what to do next. Gr. Niek Houtman
Comment written by Antoine Soetewey on May 12, 2020 13:14:57: Do you have the last version of R and RStudio? Your error seems to be something more general than this specific dashboard. Try creating a very basic R Markdown document to see if it compiles correctly and let me know.
Comment written by Niek Houtman on May 12, 2020 13:37:24:
Hi Antoine,
I do not know what the versions are fort Mint 18.1 and whitch pacake of CAtools match. I cannot create anything at this moment in Rstudio.
Maybe you can tell me how to delete R and Rstudio. And after that from scratch a description a new installation with the newest versions? Thanks vm for your answer(s).
Gr. NIek
Comment written by Antoine Soetewey on May 12, 2020 13:59:49:
Here is how to install R and RStudio from scratch: https://www.statsandr.com/blog/how-to-install-r-and-rstudio/
Comment written by ANA on May 15, 2020 08:42:37:
Hello, my name is Ana and I'm from Spain . I'm trying to make a worldmap about covid-19, and I'm using your information in page https://www.antoinesoetewey.com/files/coronavirus-dashboard.html , but I have an error, it said me that "country not found". Could you help me , please?
Comment written by ANA on May 15, 2020 08:42:37:
Hello, my name is Ana and I'm from Spain . I'm trying to make a worldmap about covid-19, and I'm using your information in page https://www.antoinesoetewey.com/files/coronavirus-dashboard.html , but I have an error, it said me that "country not found". Could you help me , please?
Comment written by Antoine Soetewey on May 15, 2020 15:16:11:
Dear Ana,
Here is the code you should use for Spain.
Make sure to download the last version of the coronavirus package with: devtools::install_github("RamiKrispin/coronavirus", force = TRUE)
Hope this helps.
Best,
Antoine
Comment written by ANA on May 15, 2020 08:42:37: Hello, my name is Ana and I'm from Spain . I'm trying to make a worldmap about covid-19, and I'm using your information in page https://www.antoinesoetewey.com/files/coronavirus-dashboard.html , but I have an error, it said me that "country not found". Could you help me , please?
Comment written by Antoine Soetewey on May 15, 2020 15:16:11:
Dear Ana,
Here is the code you should use for Spain.
Make sure to download the last version of the coronavirus package with:
devtools::install_github("RamiKrispin/coronavirus", force = TRUE)
Hope this helps.
Best, Antoine
Comment written by ANA on May 15, 2020 19:50:13:
I'm very happy with your help. It's all ok. Thanks a lot.
Comment written by M R Wani on May 21, 2020 09:27:50:
Thank you so much for this article. Based on this dashboard, I have created one for India. Available at : https://rpubs.com/mrwani/617573
Comment written by M R Wani on May 21, 2020 09:27:50:
Thank you so much for this article. Based on this dashboard, I have created one for India. Available at : https://rpubs.com/mrwani/617573
Comment written by Antoine Soetewey on May 21, 2020 10:46:24:
Great work Wani!
Comment written by Niek Houtman on May 04, 2020 18:43:19: How to create your own Coronavirus dashboard If you want to build your own dashboard specific to a country, follow these steps: 1 Open the dashboard here 2 See the entire code via the button "Source code" located in the top right corner of the dashboard, or see the code on GitHub. Copy that code. 3 Open a new R Markdown file (.Rmd), type any title and author (they will be replaced in the next step anyway), select HTML as the output format and click on OK Nr 3 is the thing I cannot manage. I tried it with the program Typora, but it failed. Already thanks for your answer.
Comment written by Antoine Soetewey on May 05, 2020 05:34:27: Dear Niek, To open a new R Markdown file, open RStudio then click on File > New File > R Markdown. If you still struggle, I invite you to read this tutorial on how to get started in R Markdown. Hope this helps. Best, Antoine
Comment written by Niek Houtman on May 05, 2020 18:07:54: Hello Antoine, Thanks very much. I am gonna do it. Gr. Niek H.
Comment written by Niek Houtman on May 06, 2020 18:14:10: HI Antoine, I have a problem. After installing R and Rstudio, and opening a new Markdown file from Rstudio, I got the following message: Required package versions could not be found: caTools 1.14 is not available Check that getOption("repos") refers to a CRAN repository that contains the needed package versions. I checked and output is this: getOption("repos") CRAN "@cran@" I do not know how to make this working. Please help. Gr. Niek Houtman
Comment written by Antoine Soetewey on May 07, 2020 15:59:14: Dear Niek, It looks like you do not have the required package to use R Markdown. Try running the following command:
install.packages("caTools")
and then opening the R Markdown file. Make sure to have an internet connection and no firewall blocking RStudio's access to internet. Hope this helps. Best, AntoineComment written by Niek Houtman on May 12, 2020 13:05:18: Hi Antoine, Thanks for your answer, however it helps not yet. I get the next message: sessionInfo() R version 3.2.3 (2015-12-10) Platform: i686-pc-linux-gnu (32-bit) Running under: Linux Mint 18.1 locale: [1] LC_CTYPE=nl_NL.UTF-8 LC_NUMERIC=C [3] LC_TIME=nl_NL.UTF-8 LC_COLLATE=nl_NL.UTF-8 [5] LC_MONETARY=nl_NL.UTF-8 LC_MESSAGES=nl_NL.UTF-8 [7] LC_PAPER=nl_NL.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=nl_NL.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base > install.packages("caTools") Installing package into /home/nhoutman/R/i686-pc-linux-gnu-library/3.2 (as lib is unspecified) Please select a CRAN mirror for use in this session Warning message: package caTools is not available (for R version 3.2.3) > So I do not know , what to do next. Gr. Niek Houtman
Comment written by Antoine Soetewey on May 12, 2020 13:14:57: Do you have the last version of R and RStudio? Your error seems to be something more general than this specific dashboard. Try creating a very basic R Markdown document to see if it compiles correctly and let me know.
Comment written by Niek Houtman on May 12, 2020 13:37:24: Hi Antoine, I do not know what the versions are fort Mint 18.1 and whitch pacake of CAtools match. I cannot create anything at this moment in Rstudio. Maybe you can tell me how to delete R and Rstudio. And after that from scratch a description a new installation with the newest versions? Thanks vm for your answer(s). Gr. NIek
Comment written by Antoine Soetewey on May 12, 2020 13:59:49:
Here is how to install R and RStudio from scratch: https://www.statsandr.com/blog/how-to-install-r-and-rstudio/
Comment written by Niek on May 26, 2020 19:14:22:
I do not succeed in installing R and Rstudio.
I am going to read the concerning manuals.
Thanks again.
Niek Houtman
How to create a simple Coronavirus dashboard specific to your country in R - Stats and R
This article will help you to build a visually appealing dashboard about the spread of COVID-19 Coronavirus specific to a country in R using flexdashboard
https://statsandr.com/blog/how-to-create-a-simple-coronavirus-dashboard-specific-to-your-country-in-r/