The question could not be posted, but have an idea why the splitter function will not work if the label is a character or a number? I tried to get around, but I canβt decide ...
ex.
xpos <- c (16, 16, 16, 17, 17, 17, 18, 18, 18, 19, 19, 19, 20, 20, 20, 21, 21, 21, 22, 22, 22)
ypos <- 13.5
Laboratory <- c ("a", "a", "b", "b", "bc", "bc", "bcd", "c", "d", "e", "e", e "," e "," f "," f "," fg "," fg "," fgh "," fgh "," h "," gh "),
splitter <- c (1: 3)
ldata <- data.frame (xpos, ypos, lab, splitter)