상세 코드는 다음과 같습니다.
Reportcard1= read.table (file =' test1.txt', header=TRUE)
Reportcard2 = read.table (file =' test2txt' header = true) names (reportcard1) name Reportcard = merge (reportcard reportcard 2, by = xh) print (head (reportcard)) xh = sample (report Replace = true) samples = reportcard [reportcard $ xh% in% xh] print (samples).