Learn R Programming

Momocs (version 1.1.6)

Coe: Coe "super" class

Description

Coe class is the 'parent' or 'super' class of OutCoe, OpnCoe and LdkCoe classes.

Usage

Coe(...)

Arguments

...
anything and, anyway, this function will simply returns a message.

Details

Useful shortcuts are described below. See browseVignettes("Momocs") for a detail of the design behind Momocs' classes. Coe class is the 'parent' class of the following 'child' classes
  • OutCoe for coefficients from closed outlines morphometrics
  • OpnCoe for coefficients from open outlines morphometrics
  • LdkCoe for coefficients from configuration of landmarks morphometrics.
In other words, OutCoe, OpnCoe and LdkCoe classes are all, primarily, Coe objects on which we define generic and specific methods. See their respective help pages for more help. You can access all the methods available for Coe objects with methods(class=Coe).

See Also

Other Coe objects: OpnCoe, OutCoe

Examples

Run this code
# to see all methods for Coo objects.
methods(class='Coe')

data(bot)
bot.f<- efourier(bot, 12)
bot.f
class(bot.f)
inherits(bot.f, "Coe")

# if you want to work directly on the matrix of coefficients
bot.f$coe

#getters
bot.f[1]
bot.f[1:5]

#setters
bot.f[1] <- 1:48
bot.f[1]

bot.f[1:5] <- matrix(1:48, nrow=5, ncol=48, byrow=TRUE)
bot.f[1:5]

# An illustration of Momocs desing. See also browseVignettes("Momocs")
data(olea)
op <- opoly(olea, 5)
op
class(op)
op$coe # same thing

data(wings)
wp <- fgProcrustes(wings, tol=1e-4)
wp
class(wp) # for Ldk methods, LdkCoe objects can also be considered as Coo objects
# so you can apply all Ldk methods available.
wp$coe # Procrustes aligned coordinates

Run the code above in your browser using DataLab