this.df <- data.frame(c(11, 78,22), c("m", "f", "f"), c(1,2,2),
stringsAsFactors = FALSE)
colnames(this.df) <- c("mark", "gender", "group")
represent_numerical_data_forsubgroups(this.df, "group", "mark", NA)
Run the code above in your browser using DataLab