セクション 2. 章 2
single
Challenge: Create an Anonymous Function
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
Write three anonymous functions in R and assign them to variables as described below:
- Create an anonymous function that adds 3 to its input and assign it to the variable
add_three. - Create an anonymous function that returns
TRUEif a number is even, and assign it to the variableis_even. - Create an anonymous function that concatenates two strings (with no separator), and assign it to the variable
concat_strings.
Each function should be assigned to the specified variable name. Do not use named function definitions for this task.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 2. 章 2
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください