Hi, and welcome!
Thanks for using the FAQ: What's a reproducible example (`reprex`) and how do I do one? but we're missing a key requirement, behavData
You might be able to solve the problem by populating column.count.df, which starts off with zero rows.
column.count.df <- structure(list(Treatment = structure(c(1L, 3L, 6L, 5L, 4L, 2L
), .Label = c("0% Blastospores-", "100% Blastospores+", "100% P. entomophila",
"40% Blastospores-", "40% P. entomophila", "Ringer"), class = "factor"),
IncumbationTimes = c(9, 12, 15, 18, 21, 24), count.o = c(0, 0,
0, 0, 0, 0), count.gb = c(0, 0, 0, 0, 0, 0), count.cann = c(0,
0, 0, 0, 0, 0), count.bu = c(0, 0, 0, 0, 0, 0), count.rem = c(0,
0, 0, 0, 0, 0), count.totalgroomers = c(0, 0, 0, 0, 0, 0),
numFocals = c(0, 0, 0, 0, 0, 0), scanTime = c(0, 0, 0, 0,
0, 0)), class = "data.frame", row.names = c(NA, -6L))