Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个列表,其中包含由aggregate()package创建的多个变量分组hts。我想根据组的名称映射特定的预测函数。
aggregate()
hts
名称示例:
G3/GRSA_ G3/COAR_ G4/COAR_RURA_ ...
基本上我想要类似的东西
map(list, contains*("COAR"), forecast)
预测G3/COAR_和G4/COAR_RURA_
G3/COAR_
G4/COAR_RURA_
只是传播问题
names_to_map <- names(example_list) grsa_names <- names_to_map [str_detect(names_to_map , "GRSA")]
map_at(example_list,names_to_map,example_function)