Search code examples
rvariablesstata

R's equivalent to Stata's codebook command?


Is there an equivalent to Stata's codebook command or any other quick function to access the different possible values and codes of a variable?

Thank you so much!


Solution

  • R has the codebook package which is very similar to the Stata command codebook.

    install.packages("codebook")
    library(codebook)
    new_codebook_rmd()