[R] understanding the no-label concept
moonkid at posteo.org
moonkid at posteo.org
Thu Oct 16 21:19:31 CEST 2014
> aa <- 1:5
> names(aa) <- c("Eins", "Zwei", "Drei", "Vier", "Fünf")
> aa
Eins Zwei Drei Vier Fünf
1 2 3 4 5
> table(aa)
1 2 3 4 5
1 1 1 1 1
You see? It didn't work.
> aa <- c(aa, 1, 2)
> aa
Eins Zwei Drei Vier Fünf
1 2 3 4 5 1 2
This is no solution for my case.
But...
> bb <- matrix(1:12, 3, 4, dimnames=list(letters[1:3], LETTERS[1:4]))
Nice. But look dam complex for a simple task. I see I have to change a
lot of the concepts in my mind and my workflows.
More information about the R-help
mailing list