Would not be a simple
as.matrix(gl)
do the trick?
Cheers, Bernd
P.S. In case you need them as strings per row that might help
> glm <-(as.matrix(possums.gl[1:5,1:7]))
>
> glms <- apply(glm, 1, function(x) paste(x, collapse = ""), simplify = F)
>
> rglms <- do.call(rbind, glms)
> rglms
[,1]
1 "1212221"
2 "1111110"
3 "2020111"
4 "0120010"
5 "1212221"
>
==============================================================================
Dr Bernd Gruber )/_
_.--..---"-,--c_
Professor Ecological Modelling \|..' ._O__)_
Tel: (02) 6206 3804 ,=. _.+ _ \..--( /
Fax: (02) 6201 2328 \\.-''_.-' \ ( \_
Institute for Applied Ecology `''' `\__ /\
Faculty of Science and Technology ')
University of Canberra ACT 2601 AUSTRALIA
Email: bernd....@canberra.edu.au
WWW: bernd-gruber
Australian Government Higher Education Provider Number CRICOS #00212K
NOTICE & DISCLAIMER: This email and any files transmitted with it may contain
confidential or copyright material and are for the attention of the addressee
only. If you have received this email in error please notify us by email
reply and delete it from your system. The University of Canberra accepts
no liability for any damage caused by any virus transmitted by this email.
==============================================================================
--
You received this message because you are subscribed to the Google Groups "dartR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
dartr+un...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/dartr/46bd163b-5824-4925-9b69-27862506fb92n%40googlegroups.com.