Skip to content

Please treat 1D table objects as vectors #527

Closed
@gusl

Description

@gusl

Is your feature request related to a problem? Please describe.
Sometimes one of the inputs is a table of bucketed counts, which should clearly be treated as a numeric vector, but cmdstanr can't handle it.

Describe the solution you'd like
Automatically call as.numeric() if it's a 1D table.
For 2D tables, maybe automatically call as.matrix().

Describe alternatives you've considered
Alternative: give a clear error message about needing to convert the table to numeric. The "asJSON" part is distracting and obscures what needs to happen.

Additional context
Add any other context about the feature request here.

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions