I have a data.frame that represents the frequency of frequency of RT(retweets). I have this type of data.frame:
data.frame':368 obs.of 2 variables:
$ Var1: Factor w/ 368 levels "1","2","3","4",..: 1 2 3 4 5 6 7 8 9 10 ...
$ Freq: int 71482 16111 7720 4555 2949 2053 1620 1210 978 775 ...
I want to use the following comand by "zipfR" package:
gigp_pos <- lnre("gigp",cost="chisq",method="NLM",rt_pos.spc)
then I must transform this data-frame into spc object. This type of object needs to express some variables:m,v,N,Vm.
I put:
Vm<- frq_frq_pos$Freq
m<- frq_frq_pos$Var1
but I don't understand the difference between the variable V and the variable N. Can you help me?
I'm a new user of zipfR as well but I believe you can use
Maybe you'll also want to unfactor Var1 -- why is it a factor anyways?
spc
' stands for spectrum.