this is my first post here in this forum and I am relatively new to RStudio. I am currently working on a project where I collected elevation measurements from geomorphological features over a large area. Each feature is composed of 1 to 4 individual phases distinguished by different elevation values. There are likely to be more than 4 phases that are not necessarily apparent at all multiphase features. Meaning that values from feature 1 can be elevation a,b,c whereas elevations at feature 2 can be a,c and d. There is high variance in the data with no apparent natural breaks or clustering. I now need to divide all these measurements into individual groups to create distinct site wide developmental phases as all the features were created by the same process. I attempted to create individual groups manually but I need something more comprehensible. My only guides for grouping my measurements are the multiphase sites but the majority of features comprise only 1 or 2 phases. The following conditions need to be met:
- the number of individual phases need to be kept to an absolute minimum but can be >4.
- Individual phases must not overlap.
- Variance within each group should be as low as possible without compromising conditions 1 and 2.
Is there a function in Studio that would allow me to do that?