tests/testthat/test_imputeSenatorToData.R

context("test data output functions")

test_that("Output data is a imputeSenator object", {
    data(tscR)
    k=100
    senators <- imputeSenators( tscR, k = 100 )
    sdistSen <- frechetDistC( senators$senatorData, time = c( 1, 2, 3 ) )
    cSenators <- getClusters( sdistSen, k = 4 )
    endCluster <- imputeSenatorToData(senators, cSenators)
    expect_match(class(endCluster), "imputeSenator")
    })

Try the tscR package in your browser

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

tscR documentation built on Nov. 8, 2020, 5:53 p.m.