Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: String Manipulation for Data Cleaning | Data Cleaning and Wrangling Essentials
Data Cleaning and Wrangling in R
Section 1. Chapter 14
single

single

bookChallenge: String Manipulation for Data Cleaning

Swipe to show menu

Task

Swipe to start coding

Clean dataset values using string manipulation techniques. The goal is to standardize the text by applying several transformations.

  • Convert all characters in the specified column to lowercase.
  • Remove leading and trailing whitespace from the values in the specified column.
  • Replace all occurrences of a specific character with another character in the specified column.

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 14
single

single

Ask AI

expand

Ask AI

ChatGPT

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

some-alt