Skip to content

Instantly share code, notes, and snippets.

@ashlynnpai
Created July 1, 2018 18:36
Show Gist options
  • Save ashlynnpai/749bd7ace4c496da3df7f06c24eb0575 to your computer and use it in GitHub Desktop.
Save ashlynnpai/749bd7ace4c496da3df7f06c24eb0575 to your computer and use it in GitHub Desktop.
# create a vector with multiple repeated elements
# v is "a" "a" "a" "a" "a" "b" "b" "b"
v<-c(rep('a', each=10), rep('b', each=3))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment