Im a beginner and Im sorry this question is very similar to one I have asked before, only this time I trying to use for-loops
.
I want to do this on my data
In the ex. on this page, they only show how to do it for one column. I want to use for-loops
to be able to do it for ALL columns. I have modified this, from the "Answer" section on the linked page:
for (i in x) {freq = table(cut,na.rm=TRUE)}
This returns the error all arguments must have the same length
Do anyone know what Im doing wrong? Columns in my vector are of different lengths, so all except one has a lot of NA
.
Again, sorry for naive and very similar question...