The interquartile range is a measure of statistical dispersion, calculated as the difference between the 75th and 25th percentiles (quartiles). In R, you can use the IQR() function to compute the IQR.
Example code:
# Calculate the interquartile range (IQR)
iqr <- IQR(dataset)
print(iqr)