Learn R Programming

Momocs (version 1.0.0)

export: Exports Coe objects and shapes

Description

Writes a .txt or .xls or whatever readable from a Coe, or PCA object, along with individual names and grouping factors. A simple wrapper around write.table.

Usage

export(x, file, sep, dec)

Arguments

x
a Coe object
file
the filenames data.txt by default
sep
the field separator string (see sep in write.table). A tab by default
dec
the string to use for decimal points (see dec in write.table). A dot by default.

See Also

babel functions

Examples

Run this code
## Not run: 
# # Will write files on your machine!
# data(bot)
# bot.f <- efourier(bot, 6)
# export(bot.f) # data.txt which can be opened by every software including MS Excel
# # If you are French, or another country that has not been invaded by anglo-american rules.
# # and for use in Excel.
# export(bot.f, dec=',')
# export(bot.f, file='data.xls', dec=',')
# 
# # for shapes (matrices)
#  export(bot[1], file='bot1.txt')
# ## End(Not run)

Run the code above in your browser using DataLab