[R-gregmisc-users] SF.net SVN: r-gregmisc: [1013] trunk/gdata
Brought to you by:
warnes
|
From: <gg...@us...> - 2006-11-16 13:05:18
|
Revision: 1013
http://svn.sourceforge.net/r-gregmisc/?rev=1013&view=rev
Author: ggorjan
Date: 2006-11-16 05:05:05 -0800 (Thu, 16 Nov 2006)
Log Message:
-----------
seems that c.factor was not a good idea and there were better examples posted on r-devel list
Removed Paths:
-------------
trunk/gdata/R/c.factor.R
trunk/gdata/man/c.factor.Rd
Deleted: trunk/gdata/R/c.factor.R
===================================================================
--- trunk/gdata/R/c.factor.R 2006-11-14 22:25:06 UTC (rev 1012)
+++ trunk/gdata/R/c.factor.R 2006-11-16 13:05:05 UTC (rev 1013)
@@ -1,18 +0,0 @@
-# $Id$
-
-c.factor <- function(...,
- recursive=FALSE # ignored
- )
-{
- dots <- list(...) # recursive below is not related to one above!
- mapCha <- c(mapLevels(dots, codes=FALSE), recursive=TRUE)
- class(mapCha) <- "levelsMap"
- dots <- unlist(lapply(dots, "mapLevels<-", mapCha))
- mapLevels(dots) <- mapLevels(as.character(mapCha))
- dots
-}
-
-
-
-
-
Deleted: trunk/gdata/man/c.factor.Rd
===================================================================
--- trunk/gdata/man/c.factor.Rd 2006-11-14 22:25:06 UTC (rev 1012)
+++ trunk/gdata/man/c.factor.Rd 2006-11-16 13:05:05 UTC (rev 1013)
@@ -1,35 +0,0 @@
-%% $Id$
-
-\name{c.factor}
-\alias{c.factor}
-\title{Combine factors, properly handling levels}
-\description{
- This method for \code{c} combines factors while properly preserves level
- information.
-}
-\usage{
-c.factor(..., recursive = FALSE)
-}
-\arguments{
- \item{\dots}{ factors to be combined }
- \item{recursive}{ ignored }
-}
-\details{
-
-}
-\value{
- A single factor object. The levels on the new object are created by
- concatinating the levels of the provided factors, with any duplicate
- level names merged, and with the factor coding modified appropriately.
-}
-\author{Gregor Gorjan}
-\seealso{ \code{\link[base]{c}} }
-\examples{
-f1 <- factor(letters[1:10])
-f2 <- factor(letters[5:14])
-
-c(f1,f2)
-
-}
-\keyword{manip}
-
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|