diff --git a/DESCRIPTION b/DESCRIPTION new file mode 100644 index 0000000000000000000000000000000000000000..5560ff3650819f8ff27e68a774ed016d18463b06 --- /dev/null +++ b/DESCRIPTION @@ -0,0 +1,10 @@ +Package: legTools +Title: Convenience Functions, Small GUI to Teach Statistics and Some Datasets +Version: 0.1-0 +Authors@R: person("First", "Last", email = "first.last@example.com", role = c("aut", "cre")) +Description: legTools is a collection of R functions and datasets, maintained by the LEG group (Statistics and Geoinformation Laboratory). +Depends: R (>= 3.2.1) +License: GPL-3 | file LICENSE +URL: http://git.leg.ufpr.br/leg/legTools +BugReports: http://git.leg.ufpr.br/leg/legTools/issues +LazyData: true diff --git a/NAMESPACE b/NAMESPACE new file mode 100644 index 0000000000000000000000000000000000000000..a646f3792b11bb8ed3188aceb3ec38ec9d512137 --- /dev/null +++ b/NAMESPACE @@ -0,0 +1,3 @@ +# Generated by roxygen2 (4.1.1): do not edit by hand + +export(subsetDropAll) diff --git a/man/legTools.Rd b/man/legTools.Rd new file mode 100644 index 0000000000000000000000000000000000000000..8fe73d17a13e619a61f09a51a241a976df128a96 --- /dev/null +++ b/man/legTools.Rd @@ -0,0 +1,12 @@ +% Generated by roxygen2 (4.1.1): do not edit by hand +% Please edit documentation in R/legTools.R +\docType{package} +\name{legTools} +\alias{legTools} +\alias{legTools-package} +\title{Convenience Functions, Small GUI to Teach Statistics and Some + Datasets.} +\description{ +legTools is a collection of R functions and datasets +} + diff --git a/man/subsetDropAll.Rd b/man/subsetDropAll.Rd new file mode 100644 index 0000000000000000000000000000000000000000..6bc8e357ac8d10fcdc84c02f36ad70434a1dde9d --- /dev/null +++ b/man/subsetDropAll.Rd @@ -0,0 +1,36 @@ +% Generated by roxygen2 (4.1.1): do not edit by hand +% Please edit documentation in R/subsetDropAll.R +\name{subsetDropAll} +\alias{subsetDropAll} +\title{Drop unused levels after subset} +\usage{ +subsetDropAll(x, ...) +} +\arguments{ +\item{x}{Object to be subsetted} + +\item{...}{further arguments to be passed to or from other methods} +} +\value{ +An object similar to \code{x} containing just the selected + rows and columns (for a data frame). Column factors that have + one or more levels emptied after the subset, will have this + levels droped off. +} +\description{ +This function is designed to be used in place of + \code{\link[base]{subset}} when you want to drop off all empty + levels, of all factor columns in a data frame. +} +\details{ +This function works exactly the same way as + \code{\link[base]{subset}} but it will drop off all empty levels + of all columns that are factors in \code{x}. +} +\author{ +Fernando Mayer +} +\seealso{ +\code{\link[base]{subset}} +} +