This is my first post to stack overflow, so let me know if I am doing this wrong!
Trying to do this in R studio.
I have a data frame where I want to sum the size_adjusted column based on a grouping from the Row, Col, and Prion columns only if the Image_number value is > 250:
See my dataframe, (Sorry couldn't figure out how to format it nicely in the message
I have used the following successfully (without the condition in the Image_number column).
Threshold <- mydataframe %>% group_by(Row, Col, Prion) %>% summarise(AUC, sum(size_adjusted))
How do I make the condition? I have tried to use the "if" function, but receive errors.
Thank you all!
Best,
Alex