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]]

