Row Indices where Column has Particular Value in R (2 Examples) | Data Frame Subset | which Function

preview_player
Показать описание
R code of this video:

x2 = c(7, 3, 5, 7, 7, 1),
x3 = letters[7:2])

which(data$x2 == 7) # Applying which function

data[which(data$x2 == 7), ] # Conditionally subsetting data

Follow me on Social Media:
Рекомендации по теме
Комментарии
Автор

Nice and logical!! You rule, Joachim✌!!

agsoutas
visit shbcf.ru