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

single

bookChallenge: String Manipulation for Data Cleaning

Stryg for at vise menuen

Opgave

Stryg for at begynde at kode

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.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 14
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

some-alt