R/get_QC_cols.R

#' Get quality control columns
#'
#' Returns the columns in the dataframe produced from MeasureImageQuality
#'
#' @param df dataframe
#' @return Column names from the MeasureImageQuality module
#' @export

get_QC_cols <- function(df){
	if (!is.data.frame(df)){
		stop(paste(df, "needs to be a dataframe"))
	}
	names(df)[grep('ImageQuality_', names(df))]
}
Swarchal/focus documentation built on May 9, 2019, 3:25 p.m.