I have x = 1,2,3,4 which is my categorical variable
but when I use summary() it automatically thinks that this is discrete : so I would get something like this
Min :
1st Qu.:
Median :
But what I want is to give me just the frequency for this variable within the summary()
1:
2:
3:
4:
Thank you
Or, if you want to permanently assign x as categorical variable in a dataframe named mydata, do this before the
summary()call:(Spending an hour or two with any of the many books or online intros to R and typing out the examples is a smart investment and saves a lot of time.)