FLR

| Tasklist |

FS#27 - as.data.frame(FLQuant) doesn´t return the same as as.data.frame(FLQuant)

Attached to Project: FLR
Opened by Laurie Kell (ltkell) - Monday, 26 July 2010, 10:14 GMT+2
Task Type Bug Report
Package FLCore
Status New
Assigned To Iago Mosqueira (imosqueira)
Operating System All
Severity Medium
Priority Normal
Reported Version 2.0
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

as.data.frame(FLQuant) doesn´t return the same as as.data.frame(FLQuant) as in FLQuants the data.frame returns factors, can we make these the same.

mapply(function(x,y) class(y[x]), x=names(t.),y=as.data.frame(m(ple4)))
age year unit season area iter data qname
"numeric" "numeric" "factor" "factor" "factor" "factor" "numeric" "numeric"

mapply(function(x,y) class(y[x]), x=names(t.),y=as.data.frame(FLQuants(m(ple4))))
age year unit season area iter data qname
"factor" "numeric" "factor" "factor" "factor" "factor" "numeric" "character"


If they have to be factors can we also make sure that for ages as years teh order matches the numeric order

Laurie
This task depends upon

Loading...