strc_readsummary.Rdstrc_readsummary(.) read structure summary file as produced by faststructure
strc_readsummary(file.path)
| file.path | Path to the file |
|---|
Read directly the file as produced by faststructure package
# provide some examples of how to use your function #path.to.file <- "data-raw/results_summary.csv" path.to.file <- system.file("extdata", "results_summary.csv", package = "QuickPop") strc_readsummary(path.to.file)#>#> #> #> #>#> #> #>#> # A tibble: 30 × 8 #> run_id burnin iterations k ln_prob_data mean_llh var_llh mean_alpha #> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> #> 1 k1_r1 10000 100000 1 -1144135. -1143901. 468. 0.003 #> 2 k2_r1 10000 100000 2 -1138700. -1137640. 2119. 0.512 #> 3 k3_r1 10000 100000 3 -1132514 -1130849. 3330. 0.388 #> 4 k4_r1 10000 100000 4 -1129568. -1126999. 5138. 0.231 #> 5 k5_r1 10000 100000 5 -1126832. -1123725. 6212. 0.234 #> 6 k6_r1 10000 100000 6 -1124766 -1121382. 6767. 0.232 #> 7 k7_r1 10000 100000 7 -1127339. -1119364. 15949 0.219 #> 8 k8_r1 10000 100000 8 -1123318. -1117655. 11324. 0.194 #> 9 k9_r1 10000 100000 9 -1121664 -1116282. 10764. 0.207 #> 10 k10_r1 10000 100000 10 -1176604. -1115320. 122567. 0.235 #> # … with 20 more rows