Displaying 1 result from an estimated 1 matches for "rormyran".
2003 Jul 31
2
how as.numeric() !-> factor
Dear all,
I have divided two vectors:
Np.occup97.98<- as.data.frame(cbind(site = levels(sums$site),
Np.occup97.98 = sums$Ant.Nptrad97.98/Ant.trad$Ant.trad97.98))
> Np.occup97.98
site Np.occup97.98
1 erken97 0.342592592592593
2 erken98 0.333333333333333
3 rormyran 0.48471615720524
4 valkror 0.286026200873362
However, at a later stage of the analysis I want
> round(Np.occup97.98[,2], 2)
Error in Math.factor(x, digits) : "round" not meaningful for factors
neither did this work:
> round(Np.occup97.98[,2], 2)
Error in Math.factor(x, digits)...