Skip to content

Instantly share code, notes, and snippets.

@orrymr
Last active September 13, 2021 17:44
Show Gist options
  • Save orrymr/5b49c311030264b0cddd17cbc0ebe7cc to your computer and use it in GitHub Desktop.
Save orrymr/5b49c311030264b0cddd17cbc0ebe7cc to your computer and use it in GitHub Desktop.
mean_value <- sum(seq(1:6) * (1 / 6))
print(mean_value)
# [1] 3.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment