Problem with summarize in r

Hi, summarize_all gave you an error that should point to the right direction. With experience you'll understand those errors better.

What it complains about right now is that you didn't provide any function that would summarize all of your columns. In fact, you can put any summarizing function in, as long as it returns a single number (sum, mean, median, min, max...). In your case I suspect you need to use sum and it should give you the result you want.

In future, asking a question will result in a more satisfying result for you if you can provide a reprex: