# Load required package
library(dplyr)
# Generate random fish length data
set.seed(123)
fish_lengths <- runif(200, min = 5, max = 70)
# Create frequency table with automatic bin width
FrequencyTable(data = fish_lengths, output_file = tempfile(fileext = ".xlsx"))
# Create frequency table with custom bin width and output file
FrequencyTable(data = fish_lengths, bin_width = 5, output_file = tempfile(fileext = ".xlsx"))
Run the code above in your browser using DataLab