Hi there,

 

I have something that appears to be a factor called drug:

Typeof(drug) => Integer

As.numeric(drug) gives a long list

Levels(drug) gives a long list, too.

 

Now I want something like the summary function does:

I want to count how often each level occurs in the given vector.

My problem is that summary gives me a list with counts that is incomplete
and adds the "Others" category.

 

Is there a way to get a count for all levels?

 

Thanks,

 

Bernd

 


        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to