セクション 1. 章 10
single
Assignment Operators
メニューを表示するにはスワイプしてください
R provides several operators for assigning values to variables.
year = 2020
year <- 2020
2020 -> year
However, -> is rarely used because it reduces code readability.
Note
Going forward, assignments will be shown using the left arrow (<-) and the equal sign (=).
タスク
スワイプしてコーディングを開始
- Use the equal sign (
=) to assign the result of29 %/% 8to the variable namedequal. - Use the left arrow (
<-) to assign the result of29 %% 8to the variable namedleft. - Use the right arrow (
->) to assign the result ofequal ^ leftto the variable namedright. - Print the values of
equal,left, andrightin sequence using thecat()function.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 1. 章 10
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください