【R语言2】Introduction to R 基础知识复习小测试 Pop quiz

【R语言】基础知识点 Pop quiz

  • 前言
  • Question 1
  • Question 2
  • Question 3
  • Question 4
  • Question 5
  • Question 6
  • Question 7
  • Question 8
  • Question 9
  • Question 10
  • 是兄弟就砍一刀!
  • 答案


前言

在这里会有10道题,每一道都是对R语言的基础了解。
有单选题和填空题,答案在最下面。
填空题可以放到Rstudio里运行得出答案。


Question 1

Which one of these is a logical value in R?
其中哪一个是 R 中的逻辑值?(单选题)

  • TRUE
  • True
  • true

Question 2

What does 2:4 do?
程序中2:4是干什么的?(单选题)

  • generates a vector with all integer values from 2 up to 4
  • generates a function with all integer values from 2 up to 4
  • generates a vector with all integer values from 2 up to 3

Question 3

Complete the code to return the output
完成代码以返回输出(填空题)

my_list <- list(5:6, c("A", "B"), 10:12)
【这里输入code】<- c("p", "q", "r")
my_list

=======输出

你可能感兴趣的:(r语言,开发语言,数据挖掘)