In the homework answer for Hispanic population under section “Dynamics Graph with Rcharts” byState <- ddply(hispanic.pop, .(State), numcolwise(sum))
give me an error Error in match.fun(FUN) : '40' is not a function, character or symbol
Can you tell me what’s wrong with the ddply()?
Thank you for your post! I tried recreating the error, but the code ran on my computer. There may be a few reasons that you’re seeing this error – double check the structure of your data with the str() function, and also make sure that you installed all the packages you need to run ddply().
One of the best troubleshooting tips I have is to just restart R and RStudio, and try again. Let me know if that helps!