poissonconsulting / term

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

How to handle term_rcrd() objects incorporated into data.frames #48

Closed joethorley closed 4 years ago

joethorley commented 4 years ago
library(term)
data.frame(x = term("a"))
#>   x
#> 1 a
data.frame(y = term_rcrd("a")) 
#>   y.par y.dim
#> 1     a     1

Created on 2020-08-28 by the reprex package (v0.3.0)

krlmlr commented 4 years ago

We can use vec_proxy():

vctrs::vec_proxy(term::term_rcrd("a"))
#>   par dim
#> 1   a   1

Created on 2020-08-31 by the reprex package (v0.3.0)

joethorley commented 4 years ago

Great thanks