Hello I have a dataframe record in R of dimension 8 obs 60 variables , with the missing values replaced by NA and the other values being words.
When I try
The main issue is the complicating levels in your data frame. There are two ways to get around this problem:
invoke droplevels
after subsetting the data.frame. For example:
feeds <- droplevels(record)
Use apply
family functions, like sapply
someone mentioned earlier. For example:
feeds <- apply(record,1,table) # output stored as an object feeds
Good luck.