R/has_pgen_table_attributes.R

Defines functions has_pgen_table_attributes

Documented in has_pgen_table_attributes

#' Determine if the table has the attributes of a `pgen_table`
#'
#' Determine if the table has the attributes of a `pgen_table`
#' @param table a table
#' @return TRUE if the table has the attributes of a `pgen_table`
#' @author Richèl J.C. Bilderbeek
#' @export
has_pgen_table_attributes <- function(table) {
  "plinkr_datatype" %in% names(attributes(table)) &&
    attributes(table)$plinkr_datatype == "pgen_table"
}
richelbilderbeek/plinkr documentation built on March 25, 2024, 3:18 p.m.