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
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
Dictionary objects are not long a list of characters (or a list), so we need an extractor.
The text was updated successfully, but these errors were encountered: