Open andreranza opened 2 years ago
this seems to be because the last statement in the function is an assignment. SHould work if that assignment is removed. Actually if you assign the result of the function to a variable now it would also work
Thanks! Yes, if I assign to a variable it works perfectly. However, I wonder if it would be useful to make this function interactive as the others
I agree, the assignment in the function should be removed
Running
swc_get_mun_merges(2019, canton = "AG")
into the console does not return a data.frame or a tibble, conversely to what happens with:tibble::as_tibble(swc_get_mun_merges(2019, canton = "AG"))
as.data.frame(swc_get_mun_merges(2019, canton = "AG"))
This behaviour is not aligned with those provided by other functions, such as
swc_get_mutations()
orswc_get_merger_mapping_table()