What does the period mean in this code

Sorry for the simple question. I just been researching this for too long and figured I'd ask. What does the period mean in this first bit of code. And does it mean the same thing in the second bit of code

car_data <- 
  mtcars %>%
  subset(hp > 100) %>%
  aggregate(. ~ cyl, data = ., FUN = . %>% mean %>% round(2)) %>%
  transform(kpl = mpg %>% multiply_by(0.4251)) %>%

Same functioning as the period used in this code?

rnorm(1000)    %>%
multiply_by(5) %>%
add(5)         %>%
   cat("Mean:", mean(.), 
       "Variance:", var(.), "\n")

This is an abbreviation for what is received from the %>% pipe. With the standard pipe |> the equivalent is [sort of] [|> some_function(x = _) but some functions work without it.

Works the same way in second, but again, only with the {magrittr} pipe version.

Thank you for your time in providing this explanation.

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.