Studentized Range Distribution
The Studentized range distribution is the reference distribution used by Tukey’s multiple-comparison method.
Its upper critical value is often written as $q_{k, N-k, \alpha}$, where $k$ is the number of groups and $N-k$ is the ANOVA error degrees of freedom.
R
qtukey(0.95, nmeans = k, df = N - k)