I was wondering how I could go about changing some data like this from a dataframe i created:
Variable Freq and Variable Freq
01 3 M 10
02 2
03 4
04 5
to
01 3
02 2
03 4
04 5
M 10
The code i am using to get those 2 tables is :
y = as.data.frame(length(unique(index_visit$PatientID)))
x = as.data.frame(table(index_visit$ProcedureID))