Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Are the items of a vector in a given data frame? (Filtering basics)
data=data.frame(mtcars[,1],mtcars[,2]) names(data)=c("v1","v2") search=c(21.0,6) for(i in 1:length(search)){ for(j in 1:nrow(data)){ for(k in 1:length(data)){ if(search[i]==data[j,k]){ print(paste("item",search[i],"in row",j,"and column",k)) } } } } data
run
|
edit
|
history
|
help
0
Zerlina L Bi-variate Regression
Sierpinski curve square
ECO Stat
26-08-2020AjusteCurvaLinearizab
Matrix
10-08-2020CalcuNum
5 # SUMMARY PART B
Critical correlation value calculation
10-08-2020Exe
Numbers game from British game show Countdown