0

I've downloaded the lastest version of sjplot and sjmisc. They aren't working correctly: I am unable to produce a simple crosstable of two variables:

sjt.xtab (mydataset$gender, mydateset$age)

Error: 'table_values' is not an exported object from 'namespace:sjmisc'

This is regardless of which of my variables I attempt to crosstab. Oddly, if I use sjp.xtab it works fine, though with a warning message:

sjp.xtab (mydataset$gender, mydateset$age)

Warning message:
Deprecated, use tibble::rownames_to_column() instead.

Does anyone have any idea what I have to do to fix this?

CephBirk
  • 6,422
  • 5
  • 56
  • 74
  • I don't use these packages, but in base R, you could use `table(mydataset$gender, mydateset$age)` to get the cross tab or `xtabs(gender ~ age, data=mydataset)`. – lmo Dec 09 '16 at 12:59
  • Thanks for the advice, but I think that sjplot creates visually much nicer tables than those – NorthwardNW Dec 09 '16 at 13:22
  • Are you sure you're using the latest packages (see also [here](https://github.com/sjPlot/devel/issues/170))? Could you please provide your sessionInfo()? Maybe it is also an issue with the your R version - do you use the latest version? – Daniel Dec 09 '16 at 20:58

0 Answers0