Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
legTools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leg
legTools
Commits
3a76228d
Commit
3a76228d
authored
9 years ago
by
Fernando Mayer
Browse files
Options
Downloads
Patches
Plain Diff
rename function and document package
parent
d6991244
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
R/legTools.R
+1
-3
1 addition, 3 deletions
R/legTools.R
R/subsetDropAll.R
+3
-3
3 additions, 3 deletions
R/subsetDropAll.R
with
4 additions
and
6 deletions
R/legTools.R
+
1
−
3
View file @
3a76228d
##' @title Convenience Functions, Small GUI to Teach Statistics and Some
##' Datasets.
##'
##' @description legTools is a collection of R functions and datasets,
##' maintained by the LEG group (Statistics and Geoinformation
##' Laboratory, Laboratório de Estatística e Geoinformação).
##' @description legTools is a collection of R functions and datasets
##'
##' @docType package
##' @name legTools
...
...
This diff is collapsed.
Click to expand it.
R/subsetDropAll.R
+
3
−
3
View file @
3a76228d
##' @title Drop unused levels after subset
##' @name subset
.d
rop
.a
ll
##' @name subset
D
rop
A
ll
##'
##' @description This function is designed to be used in place of
##' \code{\link[base]{subset}} when you want to drop off all empty
...
...
@@ -17,12 +17,12 @@
##' one or more levels emptied after the subset, will have this
##' levels droped off.
##'
##' @author Fernando Mayer
\email{fernando.mayer@ufpr.br}
##' @author Fernando Mayer
##'
##' @seealso \code{\link[base]{subset}}
##'
##' @export
subset
.d
rop
.a
ll
<-
function
(
x
,
...
){
subset
D
rop
A
ll
<-
function
(
x
,
...
){
if
(
!
is.data.frame
(
x
))
stop
(
"'x' must be a data.frame"
)
x
<-
subset
(
x
,
...
)
factors
<-
which
(
sapply
(
x
,
class
)
%in%
"factor"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment