Skip to content

Instantly share code, notes, and snippets.

@saudiwin
Created January 16, 2025 18:31
Show Gist options
  • Select an option

  • Save saudiwin/3b7ff0f29e8e562b11e05c9a78a80ca9 to your computer and use it in GitHub Desktop.

Select an option

Save saudiwin/3b7ff0f29e8e562b11e05c9a78a80ca9 to your computer and use it in GitHub Desktop.
How to use emojis in your #rstats code
library(dplyr)
# define code as emojis
# simulate data from Normal distribution and fit OLS regression
`πŸ™„` <- lm
`🀩` <- tibble
`πŸ€ͺ` <- mutate
`🫣` <- `🀩`(`😊` = runif(100)) %>%
`πŸ€ͺ`(`😱` = rnorm(n=100, mean = -1 + 1.5 * `😊`))
`πŸ™Œ` <- `πŸ™„`(`😱` ~ `😊`, data = `🫣`)
summary(`πŸ™Œ`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment