在r中,我试图找出如何找到哪些区域包含在A,B,C,D等中。例如,A包含540,300,330。虽然C包含区域330.从数据创建R矢量
我想这些保存到一个载体中,从而像A = [540300330]和C = [300],和d = [540,330]
数据:
Area A B C D
540 Y Y
300 Y Y
330 Y Y
我正在考虑使用summaryBy声明。但是这并没有给我想要的结果。
summaryBy(Area ~ A, FUN=(length))
如何输入:'DAT [-1]'? – Parfait
@Parfait - 当然,如果你愿意。 – thelatemail