Hi Scott,
You should convert the results to a data.frame first, and then export the data.frame using write.csv() or a similar function. See the example at the end the help page for modSel():
ms <- modSel(fl, nullmod="Null")
ms
coef(ms) # Estimates only
SE(ms) # Standard errors only
(toExport <- as(ms, "data.frame")) # Everything
Richard
--
Richard Chandler
Associate Professor
Wildlife Ecology and Conservation
Warnell School of Forestry and Natural Resources
University of Georgia
From: Scott Harris
Sent: Monday, February 3, 2020 3:35 PM
To: unmarked
Subject: [unmarked] writing s4 output to csv
[External Sender]
Can anyone offer some suggestions or good resources for writing the output of unmarked S4 objects to a csv or txt file? I am trying to output a list of model results (using pcount) and also a list of results from the modSel function. Thanks for any suggestions.
--
You received this message because you are subscribed to the Google Groups "unmarked" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
unmarked+u...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/unmarked/952c8b6d-b297-467f-b9f0-39d35801a6e0%40googlegroups.com.