df <- qdata(mtcars)
selected(df)
selected(df) <- rep(c(TRUE, FALSE), c(10, 22))  # brush the first 10 obs
selected(df)
selected(df) <- 15L  # brush the 15th row
selected(df)
selected(df) <- "Honda Civic"  # brush by row names
Run the code above in your browser using DataLab