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.