Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Apply Validation Rules to Employee Records | Data Quality Essentials
Data Cleaning & Data Quality in R

bookChallenge: Apply Validation Rules to Employee Records

Task

Swipe to start coding

Apply data validation rules to an employee records data frame to ensure data integrity.

  • Correct any ages that fall outside the range 18 to 65 by setting them to the nearest valid value.
  • Ensure all employee_id values are unique, modifying duplicates by appending a suffix.
  • Set email values that do not have a valid format (must contain both "@" and ".") to NA.

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 6
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

close

bookChallenge: Apply Validation Rules to Employee Records

Swipe to show menu

Task

Swipe to start coding

Apply data validation rules to an employee records data frame to ensure data integrity.

  • Correct any ages that fall outside the range 18 to 65 by setting them to the nearest valid value.
  • Ensure all employee_id values are unique, modifying duplicates by appending a suffix.
  • Set email values that do not have a valid format (must contain both "@" and ".") to NA.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 6
single

single

some-alt