How to generate a frequency table in R with with cumulative frequency and relative frequency

后端 未结 5 695
小鲜肉
小鲜肉 2020-12-12 21:23

I\'m new with R. I need to generate a simple Frequency Table (as in books) with cumulative frequency and relative frequency.

So I want to generate from some simple d

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-12 21:53

    Yet another possibility:

     library(SciencesPo)
        x = c(sample(10:20, 50, TRUE))
        freq(x)
    

提交回复
热议问题