고객 ID (아래 참조)와 같은 kwic 출력에 메타 데이터를 추가하여 마스터 파일을 쉽게 조회 할 수 있습니다. 나는 cbind를 사용하여 데이터를 추가하려고 시도했지만 아무 것도 올바르게 일치하지 않습니다.Quantityakwic 출력에 데이터를 추가하십시오.
가능한 경우 예를 들어 주시면 감사하겠습니다.
docname position contextPre keyword contextPost CustID
text3790 5 nothing at all looks good and sounds great 1
text3801 11 think the offer is a good value and has a lot 3
text3874 10 not so sure thats a good word to use 5
발생 data.frame
CustID Comment
1 nothing at all looks good and sounds great
2 did not see anything that was very appealing
3 I think the offer is a good value and has a lot of potential
4 these items look terrible how are you still in business
5 not so sure thats a good word to use
6 having a hard time believing some place would sell an item so low
7 it may be worth investing in some additional equipment
감사합니다. 나는 병합이나 조인의 어떤 유형이 요구 될 것이라는 것을 깨닫고 천천히 가고 있었다. 출력의 일부로 원본 데이터 프레임의 다른 열을 포함시킬 수도 있다면 KWIC의 훌륭한 기능입니다. 건배. – Atwp67
KWIC는 원본 데이터 프레임의 다른 열을 인식하지 못합니다. 이는 해당 데이터가 corpus에서 작동하고 있고 corpus가 데이터 프레임 대신 다른 유형의 데이터에서 읽도록 설계 되었기 때문입니다. 'docvar'에 열을 추가 할 수 있습니다.이 열은 저자가 원하는 경우 KWIC에서 액세스 할 수 있습니다. 꾸러미 저자는 코퍼스의 줄거리 나 보고서에 단지 그들을 사용하는 것 같았지 만. – dracodoc
감사합니다 @ 피에르 Lafortune, 전에'data.table = FALSE' 옵션을 몰랐어요! – dracodoc