R - table() and prop.table()
The table() function counts occurrences of unique values in vectors or factor combinations. It returns an object of class ’table’ that behaves like a named array.
The table() function counts occurrences of unique values in vectors or factor combinations. It returns an object of class ’table’ that behaves like a named array.