try() not applying expression in the case where there's no potential error

前端 未结 0 1243
死守一世寂寞
死守一世寂寞 2020-12-09 22:48
lookup <- list(
  \'miles_per_gallon\' = \'mpg\',
  \'cylinder\' = \'cyl\'
)


df1 <- mtcars
df2 <- NULL

# function to rename columns based on the lookup a         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题