R/find_key.R

Defines functions find_key

# 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/histopathology-template documentation built on June 29, 2023, 5:52 a.m.