Package 'RcppTskitTestLinking'

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

Help Index


Summarise tskit table collection

Description

Summarise tskit table collection

Usage

rtsk_table_collection_summary2(tc)

Arguments

tc

an external pointer to a tsk_table_collection_t object.

Value

A list.

Examples

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

Description

Get number of individuals in tree sequence

Usage

rtsk_treeseq_get_num_individuals2(ts)

Arguments

ts

an external pointer to a tsk_treeseq_t object.

Value

integer number of individuals.

Examples

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)