R/get_clicked.R

Defines functions get_clicked

Documented in get_clicked

#' subsets the rows in the data that were selected in dataViewer
#'
#' subsets the rows in the data that were selected in dataViewer
#'
#' @param data the dataframe
#' @param clicked_data the dataframe of clicked points
#' @export

get_clicked <- function(data, clicked_data){
  x.1p <- do.call("paste", data)
  x.2p <- do.call("paste", clicked_data)
  data[x.1p %in% x.2p, ]
}
padpadpadpad/dataViewer documentation built on May 24, 2019, 5:59 p.m.