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

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…

Contents