From the course: Data Wrangling in R
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Correcting data entry errors
From the course: Data Wrangling in R
Correcting data entry errors
- [Instructor] Now I'd like to take a look at the units of measurement in my dataset. I'm going to begin by just looking at a summary of the data. Now, some things jump out at me about the unit variable. First, we have multiple units of measurement, I have temperature measured in both Fahrenheit and Celsius, and I have pH measured in standard units, but then I have some other strange values, feet and milligrams per liter. Now, what are those doing in there? You don't measure water temperature or pH in feet or milligrams per liter. Let me start by taking a look at the record that's measured in feet. I'm just going to take the filtered water dataset and pipe it to the filter function and look for cases where the unit is equal to feet. Now it says here that this is supposed to be a water temperature measurement and we have a measurement result of 78.9, which sure sounds like a degrees Fahrenheit temperature. I bet what…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
(Locked)
Understanding the water quality dataset1m 32s
-
(Locked)
Reading in the water quality dataset1m 35s
-
(Locked)
Filtering the water quality dataset5m 17s
-
(Locked)
Water quality data types3m 2s
-
(Locked)
Correcting data entry errors2m 43s
-
(Locked)
Identifying and removing outliers3m 42s
-
(Locked)
Converting temperature from Fahrenheit to Celsius2m 20s
-
(Locked)
Widening the water quality dataset4m 33s
-
(Locked)
-
-