在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