poissonconsulting / term

An R package to manipulate the names of parameters terms
https://poissonconsulting.github.io/term/
Other
10 stars 1 forks source link

What should dims for a term_rcrd object return? The number of rows or rows and columns? #45

Closed joethorley closed 4 years ago

joethorley commented 4 years ago

library(term)
dims(as_term(c("x[2]", "b[1,3,5]", "x")))
#> [1] 3
dims(as_term_rcrd(c("x[2]", "b[1,3,5]", "x")))
#> [1] 3 2

Created on 2020-07-13 by the reprex package (v0.3.0)

joethorley commented 4 years ago

A related question is should a term_rcrd object be treated as a vector or a data frame?