is_converted_data: Test data set

Description Usage Arguments Value See Also Examples

Description

Tests whether x is converted data that can be input into JAGS, WinBUGS or OpenBUGS.

Usage

1

Arguments

x

the object to test

Value

A flag (logical scalar) indicating whether converted data

See Also

is_convertible_data and convert_data

Examples

1
2
3
4
5
is_converted_data(trees)
is_converted_data(convert_data(trees))
is_converted_data(list(x = 1:10, y = 0.33, z = matrix(1:9, ncol = 3)))
is_converted_data(list(x = 1:10, y = 0.33, z = matrix(1:9, ncol = 3)))
is_converted_data(list(x = factor(1:10), y = 0.33, z = matrix(1:9, ncol = 3)))

poissonconsulting/datalist documentation built on Feb. 18, 2021, 10:24 p.m.