Re: [R] alias for a class

2008-03-14 Thread Duncan Murdoch
Christophe Genolini wrote: > Hi the list > > Is it possible to give two names for a class ? One long name for using > in programmation, and one short name for the "quick and durty" uses ? > Not easily. > With function, we can do > > mcf <- myCoolFunction <- function(x) > That creates a n

Re: [R] alias for a class

2008-03-14 Thread cgenolin
> Not easily. Ok > So you could probably write a function that tracked down and copied > all the pieces, but it's not easy. b. Well, you're right, it's not worth it. So I will define a class ClusterizLongData then a constructor cld <- clusterizLongData <- function(){new("ClusterizLongData"

[R] alias for a class

2008-03-14 Thread Christophe Genolini
Hi the list Is it possible to give two names for a class ? One long name for using in programmation, and one short name for the "quick and durty" uses ? With function, we can do mcf <- myCoolFunction <- function(x) With class, I define "clusterizedLongData", I want to use it with the full