Takes an RGB image and melts every chanel independently, by converting every cell into a line
melt_channels(x, varnames = c("R", "G", "B"))
| x | An RGB image  | 
    
|---|---|
| varnames | Character vector with the names to give the variables in the result  | 
    
A data.frame where each row is a coordinate, and contains the value for that coordinate on each of the three chanels in the original image