セクション 1. 章 6
single
Challenge: Vector Labeler
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
You are given a vector of temperatures in Celsius. Your task is to categorize each temperature as 'Cold', 'Warm', or 'Hot' using vectorized conditional logic with the ifelse function, without using any explicit loops.
- Use the provided
tempsvector. - Assign 'Cold' to temperatures below 15.
- Assign 'Warm' to temperatures from 15 up to and including 30.
- Assign 'Hot' to temperatures above 30.
- Store the result in a character vector called
weather.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 1. 章 6
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください