Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Transforming and Recoding Variables | Data Cleaning and Wrangling Essentials
Data Cleaning and Wrangling in R
Секція 1. Розділ 8
single

single

bookChallenge: Transforming and Recoding Variables

Свайпніть щоб показати меню

Завдання

Проведіть, щоб почати кодувати

Practice transforming and recoding variables in a simulated dataset using mutate() and case_when().

  • Use mutate() to create a new variable, score_scaled, which is the score divided by 100.
  • Create a new variable, group_label, using case_when() to recode the group variable: "A" becomes "Control", "B" becomes "Treatment", and any other value becomes "Unknown".
  • Return the resulting data frame with the new variables.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 8
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

some-alt