R/irtc_weighted_stats_select.R

Defines functions irtc_weighted_stats_select

# IRTC
# Copyright (C) 2026 WEIAN DATA TECH (Beijing) Co., Ltd.
# SPDX-License-Identifier: GPL-2.0-or-later
# See inst/COPYRIGHTS for licensing details.

## File Name: irtc_weighted_stats_select.R

irtc_weighted_stats_select <- function(x, w, select)
{
    if (!is.null(select)) {
        x <- x[select]
        w <- w[select]
    }

    observed <- which(!is.na(x))
    list(x=x[observed], w=w[observed])
}

Try the IRTC package in your browser

Any scripts or data that you put into this service are public.

IRTC documentation built on July 24, 2026, 5:07 p.m.