[R] sink() not working as expected [RESOLVED]
r@hep@rd @end|ng |rom @pp|-eco@y@@com
Wed Nov 3 21:44:34 CET 2021
On Wed, 3 Nov 2021, Rui Barradas wrote:
> You do not assign the pipe output, so put the print statement as the last
> instruction of the pipe. The following works.
> # file: rhelp.R
> mtcars %>%
> select(mpg, cyl, disp, hp, am) %>%
> sampdt = c("automatic", "manual")[am + 1L]
> ) %>%
Thank you very much. It works here, too.
More information about the R-help