Skip to content
Prev 31688 / 398506 Next

Sum by categorical variable

Hi
On 6 May 2003 at 16:53, De Amicis Fabrizio (G.I.T.) wrote:

            
You actually have got first 10 elements of variable "V4" in j2 

see length(j2), 

but as it is a factor the level attribute has retained an information 
about all different levels of "V4" which I presume is 1304. To get 
rid of these levels just use

factor(j2)
CheersPetr Pikal
petr.pikal at precheza.cz
p.pik at volny.cz