Paste date in new column if condition is true in another R

前端 未结 0 507
没有蜡笔的小新
没有蜡笔的小新 2020-12-03 19:59

I want to extract the date from a variable if the condition in another variable is true.

Example: if comorbidity1==10, extract the date from smr_01, otherwise NA

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