Skip to content

Instantly share code, notes, and snippets.

@VladimirSaz
Created May 6, 2014 11:45
Show Gist options
  • Save VladimirSaz/11559589 to your computer and use it in GitHub Desktop.
Save VladimirSaz/11559589 to your computer and use it in GitHub Desktop.
vector operations in R
#initialize named vector
vect<-c("a param 1"=1,"a param 2"=2,"a named param 3"= 6)
#show vector names
names(vect)
#make vector unnamed
unname(vect)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment