Exercise: binding and merging

  1. load the data called “SO2_measures.txt” which is located in the data-folder in Ilias.
  2. Find all entries from “StationA”.
  3. Replace all occurrences of “CO2” with “CarbonDioxide”.
    3) Separate the strings into their components: stationname, date, hour, CO2, and SO2 using strsplit() function. Use the results to create a dataframe with the help of do.call(rbind, x) and as.data.frame().

Make sure that every column has a suitable data type.

Updated: