【发布时间】:2019-10-09 04:08:45
【问题描述】:
我想处理我的数据集的过滤子集。
示例:healthstats.csv
age weight height gender
A 25 150 65 female
B 24 175 78 male
C 26 130 72 male
D 32 200 69 female
E 28 156 66 male
F 40 112 78 female
我会开始
patients = read.csv("healthstats.csv")
但我如何只导入
的一个子集patients$gender == "female"
当我跑步时
patients = read.csv("healthstats.csv")
【问题讨论】:
-
如果您觉得对您有用,请点击投票按钮旁边的复选标记,随时accept the answer。 :-)