DC and TWPL in r studio help

spread() is from the tidyr package, you have to load it first.

If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.