Working with a large data frame and am getting this error when running the summarize function.

As usuall please provide a REPRoducible EXample (reprex) for your issue, we don't know from where summarize() function comes from or what the structure of RAO is.