powered by
This function returns a vector which lets WQS.fit know the size and order of groups in X
make.x.s(df, num.groups, groups)
A dataframe containing named component variables
An integer representing the number of component groups desired
A list, each item in the list being a string vector of variable names for one component group
A vector of integers, each integer relating how many columns are in each group
# NOT RUN { data("WQSdata") group_list <- list(c("X1", "X2", "X3"), c("X4", "X7"), c("X5", "X6", "X9", "X8")) x.s <- make.x.s(WQSdata, 3, group_list) x.s # }
Run the code above in your browser using DataLab