-1
x <- 100:120
x[x > 105]

Find the index values of x>109 without any function

Phil
  • 7,287
  • 3
  • 36
  • 66
  • what do you mean by "without any function?" `>` is a function – rawr Sep 02 '21 at 06:29
  • I guess `x[x > 105] - 99` is an answer but obviously `-` is a function as well. If the student was taught, that functions are invoced using `()` than this kind of question would not be stupid. – Bernhard Sep 02 '21 at 07:03

1 Answers1

0

Do you mean which(x>109)?

[1] 11 12 13 14 15 16 17 18 19 20 21
Park
  • 14,771
  • 6
  • 10
  • 29