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

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt