R/runStdSubset.R

Defines functions runStdSubset

Documented in runStdSubset

runStdSubset<-function(Data){
#' @export
	#This will subset the data for the analysis 
	if (identical(.RSCABSEnv$GenderVar,'Not Used')==FALSE){
		Data<-subsetDataKeep(Data,.RSCABSEnv$GenderVar,.RSCABSEnv$GenderVal);
	}	
	if (identical(.RSCABSEnv$GenerationVar,'Not Used')==FALSE){
		Data<-subsetDataKeep(Data,.RSCABSEnv$GenerationVar,.RSCABSEnv$GenerationVal);
	}
	if (identical(.RSCABSEnv$AgeVar,'Not Used')==FALSE){
		Data<-subsetDataKeep(Data,.RSCABSEnv$AgeVar,.RSCABSEnv$AgeVal);
	}
	return(Data)
}	

Try the RSCABS package in your browser

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

RSCABS documentation built on May 1, 2020, 9:06 a.m.