1. 예제 테이블
> NewTable
Pos name pos
<chr> <chr> <fct>
1 Chr1_100_200 BarcodeD 1
2 Chr1_100_200 BarcodeA 1
3 Chr1_100_200 BarcodeB .
4 Chr1_100_200 BarcodeC 1
5 Chr1_200_300 BarcodeD 1
6 Chr1_200_300 BarcodeA 1
7 Chr1_200_300 BarcodeB .
8 Chr1_200_300 BarcodeC .
9 Chr1_300_400 BarcodeD 1
10 Chr1_300_400 BarcodeA 1
2. Pos가 1인 행만을 추출
> NewTable[NewTable$pos ==1,]
Pos name pos
<chr> <chr> <fct>
1 Chr1_100_200 BarcodeD 1
2 Chr1_100_200 BarcodeA 1
3 Chr1_100_200 BarcodeC 1
4 Chr1_200_300 BarcodeD 1
5 Chr1_200_300 BarcodeA 1
6 Chr1_300_400 BarcodeD 1
7 Chr1_300_400 BarcodeA 1
8 Chr1_300_400 BarcodeC 1
9 Chr1_400_500 BarcodeD 1
10 Chr1_400_500 BarcodeA 1
11 Chr1_400_500 BarcodeC 1
12 Chr2_100_200 BarcodeB 1
13 Chr2_100_200 BarcodeC 1
14 Chr2_200_300 BarcodeB 1
15 Chr2_300_400 BarcodeB 1
16 Chr2_300_400 BarcodeC 1
17 Chr2_400_500 BarcodeB 1
18 Chr2_400_500 BarcodeC 1