Programming with R — How to Get a Frequency Table of a Categorical Variable as a Data Frame

Categorical data is a kind of data which has a predefined set of values. Taking “Child”, “Adult” or “Senior” instead of keeping the age of…