R/getTargetScaleScoreTableNames.R

Defines functions `getTargetScaleScoreTableNames`

`getTargetScaleScoreTableNames` <- 
function(
	table_names, 
	years) {
	if (is.null(years)) {
		return(grep("TARGET_SCALE_SCORES", table_names, value=TRUE))
	} else {
		return(grep(paste(years, collapse="|"), grep("TARGET_SCALE_SCORES", table_names, value=TRUE), value=TRUE))
	}
} ### END getTargetScaleScoreTableNames

Try the SGP package in your browser

Any scripts or data that you put into this service are public.

SGP documentation built on Oct. 7, 2024, 1:10 a.m.