RosettaCodeData/Task/Associative-array-Iteration/R/associative-array-iteration...

3 lines
50 B
R

> x <- c(hello=1, world=2, "!"=3)
> print(x["!"])