Skimr - cant seem to produce the histograms

前端 未结 1 1277
粉色の甜心
粉色の甜心 2021-01-13 14:37

came across this seemingly new package - skimr, which looks pretty nifty, and was trying it out and looks like I\'m missing some package installation. Skim works fine except

相关标签:
1条回答
  • 2021-01-13 15:26

    A solution that can be used to workaround the above problem is to set the locale of the R system to Chinese and to set the font of the R console to NSimSun.

    temp <- tempfile()
    cat("font = NSimSun\n", file = temp, append = TRUE)
    loadRconsole(file = temp)
    Sys.setlocale( locale='Chinese' )
    
    library(skimr)
    (a <- skim(mtcars))
    

    View(a)
    

    In RStudio this solution works only partially. Histograms generated by skim can be visualized only using View after setting the locale of R to Chinese

    Sys.setlocale( locale='Chinese' )
    library(skimr)
    a <- skim(mtcars)
    View(a)
    

    Hope this can help you.

    0 讨论(0)
提交回复
热议问题