Changing Base R code to dplyr/sparklyr

Not an answer to your question (sorry!) but a small request: can you please paste in the code itself, instead of screenshots? Screenshots are difficult to read and force anybody who wants to help to re-type your code.

When you do paste in code here, it’s good practice to format it :sparkles: by surrounding your code blocks with 3 backticks (or you can select the code and click the little </> button at the top of the posting box). More info on code formatting: FAQ: How to make your code look nice? Markdown Formatting

1 Like