Skip to content

Instantly share code, notes, and snippets.

@piccolbo
Last active August 29, 2015 14:17
Show Gist options
  • Save piccolbo/82328c70a604d679299e to your computer and use it in GitHub Desktop.
Save piccolbo/82328c70a604d679299e to your computer and use it in GitHub Desktop.
```{r}
ff = function(){}
names(ff) = "abc"
# Error in names(ff) = "abc" : names() applied to a non-vector
is.vector(mtcars)
#[1] FALSE
names(mtcars) = LETTERS[1:11]
names(mtcars)
# [1] "A" "B" "C" "D" "E" "F" "G" "H" "I" "J" "K"
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment