How to create an R Shiny selectInput control which is dependent on another select input. Two methods with code examples are shown: creating a reactive output variable, and using Shiny observe and observeEvent functions.
How to install Git and link to RStudio to enable version control with git.
How to use Shiny’s selectInput control in R, how to add to layout and add choices to the selection list, and how to use the outputs.
How to comment and uncomment in code in various software programs and languages, including R, SQL, CSS, PHP, HTML, and Stata. Examples and details on keyboard shortcuts, symbols, and how to comment and uncomment using the code editor Notepad++.
How to convert factor data to numeric data whilst maintaining the decimal accuracy of the data.
How to transform data between wide and long formats, and plot the data in R using the base plot() function. Steps show how to import data using read.csv, replace the header column, convert wide data to long data, and plot the data.
How to import data into R from files stored in local directories. Includes how to copy file paths in Windows, how to use relative and absolute file paths, and working in R Projects.
An introduction to the different scopes of the assignment operators ‘<-', '=' and '<<-' in R programming, with examples of using the operators in the global environment and in functions.
Code to create a map in R Shiny using Leaflet. This example loads a base map, sets the centre and zoom, and has a reset button to return the map to the original view.