inst/rmarkdown/templates/clinicopathological/skeleton/R/find_key.R

# Find ID and Key Columns to Exclude From Analysis

find_key <-  function(mydataframe = mydata) {
    mydata %>% 
        sapply(., FUN = dataMaid::isKey) %>% 
        as_tibble() %>% 
        select(
            which(.[1, ] == TRUE)
        ) %>% 
        names()
}
    
sbalci/histopathR documentation built on Nov. 12, 2024, 12:28 p.m.