ade4toR: Format Change Utility

Description Usage Arguments Details Value Examples

Description

Exchange objects between R and ADE4 (classic version)
http://pbil.univ-lyon1.fr/ADE-4

Usage

1
2
ade4toR (fictab, ficcolnames = NULL, ficrownames = NULL)
Rtoade4 (x)

Arguments

fictab

a name of ADE4 text file. A data frame with the same name is created in the R environment.

ficcolnames

the column names label file

ficrownames

the row names label file

x

a data frame

Details

"xxx" is the name of object x ((deparse(substitute(x))))
For any table :
creates a file "xxx.txt"
creates a file "xxx\_row\_lab.txt" with row names
creates a file "xxx\_col\_lab.txt" with column names

if x has the 'col.blocks' attribute
creates a file "xxx\_col\_bloc\_lab.txt" with blocks names
creates a file "xxx\_col\_bloc.txt" with blocks sizes

For a table which all columns are factors :
creates a file "xxx.txt"
creates a file "xxx\_var\_lab.txt" with row names
creates a file "xxx\_moda\_lab.txt" with categories names

Files are created in the current working directory.

Value

'ade4toR' gives data frames.
'Rtoade4' gives text files.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: data(tarentaise)
traits <- tarentaise$traits
ade4:::Rtoade4(traits)
# File creation traits.txt 
# File creation traits_col_lab.txt 
# File creation traits_row_lab.txt 
# File creation traits_col_bloc.txt 
# File creation traits_col_bloc_lab.txt  

mil <- tarentaise$envir
ade4:::Rtoade4(mil)
#File creation mil.txt 
#File creation mil_var_lab.txt 
#File creation mil_moda_lab.txt

## End(Not run)

ade4 documentation built on May 2, 2019, 5:50 p.m.

Related to ade4toR in ade4...