[R-sig-eco] How to reassemble $components in coleo(ade4)?

Stéphane Dray dray at biomserv.univ-lyon1.fr
Sat Aug 1 09:59:20 CEST 2009


column.names is not an argument (it is col.names). Try:

 > data(coleo)
 > write.table(coleo$tab, file = "coleo.txt", sep = " ", 
row.names=coleo$species.names, col.names=coleo$moda.names)


Cheers.

Mark Krueger wrote:
> Dear Stéphane,
>
> thanks for your explanation. The question is how do I export the 
> complete data set as one matrix.
> The write.table() function as such did not work since there are 
> different argument length (110, 32, 9). Following your hint I used
>
> > write.table(coleo, file = "coleo.txt", sep = " ", 
> row.names=species.names, column.names=moda.names)
>
> but this failed as well due to "unused arguments".
>
> What did I miss?
>
> Thank you for your help!
>
> Best,
> Mark
>
>
>
>
> Stéphane Dray schrieb:
>> Dear Mark,
>> data are in the tab component and you can export it. species.names 
>> can be used as row.names. moda.names corresponds to column names. It 
>> contains modalities names of fuzzy variables. The name of variables 
>> are in col.blocks.
>>
>> e.g.
>> The first variable (Vegetation) has 4 modalities:
>>
>> > coleo$moda.names[1:4]
>> [1] "Macrophytes"        "Algae"              "Roots_Branches"   [4] 
>> "Detrital_particles"
>>
>>
>> Hope this helps,
>> Cheers.
>>
>>
>>
>>
>>
>> Mark Krueger wrote:
>>> Dear list,
>>>
>>> we are struggling to reassemble the components from the coleo data 
>>> set in the ade4 package. There are 5 components (tab, species.names, 
>>> moda.names, families, col.blocks) with different length and class type.
>>>
>>> Is there a way to reassemble the $components together to obtain the 
>>> data as a single matrix which then can be exported, e.g. as .csv or 
>>> else using write.table()?
>>>
>>> Thank you very much for a suggestion.
>>> Mark
>>>
>>> Mark KRUEGER
>>> Institute for Ecology, Evolution & Diversity
>>> J.W. Goethe University
>>> Frankfurt
>>> Email: krueger at bio.uni-frankfurt.de
>>>
>>> _______________________________________________
>>> R-sig-ecology mailing list
>>> R-sig-ecology at r-project.org
>>> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
>>>
>>>
>>

-- 
Stéphane DRAY (dray at biomserv.univ-lyon1.fr )
Laboratoire BBE-CNRS-UMR-5558, Univ. C. Bernard - Lyon I
43, Bd du 11 Novembre 1918, 69622 Villeurbanne Cedex, France
Tel: 33 4 72 43 27 57       Fax: 33 4 72 43 13 88
http://pbil.univ-lyon1.fr/members/dray/



More information about the R-sig-ecology mailing list