小编zoe*_*107的帖子

R中基于多个条件的查找表

谢谢你看我的问题!

我有以下(虚拟)数据用于患者在 3 项任务中的表现:

patient_df = data.frame(id = seq(1:5),
                        age = c(30,72,46,63,58),
                        education = c(11, 22, 18, 12, 14),
                        task1 = c(21, 28, 20, 24, 22),
                        task2 = c(15, 15, 10, 11, 14), 
                        task3 = c(82, 60, 74, 78, 78))
Run Code Online (Sandbox Code Playgroud)
> patient_df
  id age education task1 task2 task3
1  1  30        11    21    15    82
2  2  72        22    28    15    60
3  3  46        18    20    10    74
4  4  63        12    24    11    78
5  5  58        14 …
Run Code Online (Sandbox Code Playgroud)

lookup r lookup-tables

5
推荐指数
1
解决办法
207
查看次数

标签 统计

lookup ×1

lookup-tables ×1

r ×1