| Title: | Testing linking to and importing from 'RcppTskit' |
|---|---|
| Description: | This is a demo package that shows how to link to and import from 'RcppTskit' package, which provides 'R' access to 'tskit' C API. |
| Authors: | Gregor Gorjanc [aut, cre, cph] |
| Maintainer: | Gregor Gorjanc <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.1.0 |
| Built: | 2026-05-12 09:41:54 UTC |
| Source: | https://github.com/HighlanderLab/RcppTskitTestLinking |
tskit table collectionSummarise tskit table collection
rtsk_table_collection_summary2(tc)rtsk_table_collection_summary2(tc)
tc |
an external pointer to a |
A list.
ts_file <- system.file("examples", "test.trees", package = "RcppTskit") tc <- RcppTskit:::tc_load(ts_file) RcppTskit:::rtsk_table_collection_summary(tc$xptr) rtsk_table_collection_summary2(tc$xptr)ts_file <- system.file("examples", "test.trees", package = "RcppTskit") tc <- RcppTskit:::tc_load(ts_file) RcppTskit:::rtsk_table_collection_summary(tc$xptr) rtsk_table_collection_summary2(tc$xptr)
Get number of individuals in tree sequence
rtsk_treeseq_get_num_individuals2(ts)rtsk_treeseq_get_num_individuals2(ts)
ts |
an external pointer to a |
integer number of individuals.
ts_file <- system.file("examples", "test.trees", package = "RcppTskit") ts <- RcppTskit::ts_load(ts_file) ts$num_individuals() RcppTskit:::rtsk_treeseq_get_num_individuals(ts$xptr) rtsk_treeseq_get_num_individuals2(ts$xptr)ts_file <- system.file("examples", "test.trees", package = "RcppTskit") ts <- RcppTskit::ts_load(ts_file) ts$num_individuals() RcppTskit:::rtsk_treeseq_get_num_individuals(ts$xptr) rtsk_treeseq_get_num_individuals2(ts$xptr)