A DAILY DISCOVERY
R Programming Question of the Day
One question, every morning.
Today's topic
Data Structures in R which() & Logical Subsetting
Tuesday, December 1, 2026
START YOUR STREAK
Start your streak today
M
T
W
T
F
S
S
Answer today to begin one
TODAY'S QUESTION which() & Logical Subsetting
Try today's question. About a minute.
Consider the following R code:
x <- c(4, NA, 7, 2, NA, 7)
x[which(x >= 4 & x != 7)]
What is returned?Pick an answer first.