# NOT RUN {
# Container
co = container(a = 1, 2, b = 3, 4)
at(co, 1:3)
at(co, "a", "b", 2)
# }
# NOT RUN {
at(co, "x") # index 'x' not found
at(co, 1:10) # index 5 exceeds length of Container
# }
# NOT RUN {
# Dict
d = dict(a = 1, b = 3)
at(d, 1:2)
at(d, "a", 2)
# }
# NOT RUN {
at(d, "x") # index 'x' not found
at(d, 1:3) # index 5 exceeds length of Dict
# }
# NOT RUN {
# dict.table
dit = dict.table(a = 1:3, b = 4:6)
at(dit, "a")
at(dit, 2)
at(dit, "a", 2)
# }
# NOT RUN {
at(dit, "x") # index 'x' not found
at(dit, 1:3) # index 3 exceeds length of dict.table
# }
Run the code above in your browser using DataLab