Why does ifelse convert a data.frame to a list: ifelse(TRUE, data.frame(1), 0)) != data.frame(1)?

前端 未结 0 706
陌清茗
陌清茗 2021-02-12 09:09

I want to return a data.frame from a function if TRUE, else return NA using return(ifelse(condition, mydf, NA))

However, ifelse strips the column names from

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