Skip to main content
  1. Posts/

Frequency Tables in Julia

·1 min

R has a number of methods to calculate Frequency tables. I was surprised to find out that there wasn’t any straight forward method to compute two way tables. My Google search led me to this Github issue. The last comment led me to the useful package from nalimilan.

FreqTable is a package for Julia to compute Contingency tables or Frequency tables. The installation is a straightforward Pkg.add. Here’s some usage examples:

using FreqTables

table = freqtable(dataset,[:x, :y])

table(x=1, y=2)