Text randomly added to my code

I paused working in RStudio. When I returned, extra text was added. This has been going on for 2 days.


shapes <- shapes %>% # remove the last row for each group
.nr group_by(num_p_shape) %>% snr = don't repeat the first point. So lice(-n())

sam <- as.numeric(distinct(shapes,n group_by(num_o_shape) %>%
bset(shapes, num_pts == sam[1])

As it should have been:

shapes.nr <- shapes %>% # remove the last row for each group
slice %>% (-n)) # Don't repeat the first point.

My guess is that is has something to do with me (forgetting not to) name variables with "dot" extensions. If so, please let me know and I wont do it again.

Missed the correction on the last line: slice(-n())

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.