This folder contains the R code used in the article Detecting Margalefidinium polykrikoides through high-frequency imagery: example of a bloom formation, environmental conditions, and phytoplankton community composition changes by Carney et al. (2023, in revision).