Skip to main content
100%

Gist dc8496d6b8cca60c4b5adb58c173b1d6

✓ Published0🌍 Public
RRCura
Last edited Mar 29, 2018
Created on Mar 29, 2018

This example demonstrates the initial data-wrangling steps for a visualization of a Cape Town flight dataset. It shows how raw, comma-delimited text data is read into R and then split into separate data frames based on a record-type code in the first column. The code uses the `readr` package’s `read_delim` function to ingest the file, and the `dplyr` package’s `filter`, `mutate`, and `select` verbs to isolate rows with codes 3, 4, and 5, adding a sequential ID and retaining specific column subsets for each code type. The resulting tidy data frames are primed for subsequent plotting or analysis.

AI-generated description

Similar vizzes