You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add "[", "[[" indexing for dictionary objects #651
dict<- dictionary(list(country= c("united states", "mexico", "canada"),
"law words"= c('law*', 'constitution'),
freedom= c('free', "freedom", 'libertarian')))
print(dict)
print(dict[1]) # not a dictionary
dictionary(dict[1]) # does not work
but it should be
print(dict[1:2])
# Dictionary object with 5 key entries.# - country:# - united states, mexico, canada# - law words:# - law*, constitution
dictionary(dict[1:2])
# Dictionary object with 5 key entries.# - country:# - united states, mexico, canada# - law words:# - law*, constitution
Activity
kbenoit commentedon Apr 11, 2017
I don't understand this issue... example of what behaviour is needed?
koheiw commentedon Apr 11, 2017
This is the current behaviour:
but it should be
[-]Add extractor for dictionary objects[/-][+]Add "[", "[[" indexing for dictionary objects[/+]kbenoit commentedon Apr 11, 2017
OK, now I understand. Agree this is a very useful addition.