[R-gregmisc-users] SF.net SVN: r-gregmisc:[2025] pkg/gtools/man/quantcut.Rd
Brought to you by:
warnes
|
From: <wa...@us...> - 2015-05-25 14:13:14
|
Revision: 2025
http://sourceforge.net/p/r-gregmisc/code/2025
Author: warnes
Date: 2015-05-25 14:13:12 +0000 (Mon, 25 May 2015)
Log Message:
-----------
Change usage to match actual definition.
Modified Paths:
--------------
pkg/gtools/man/quantcut.Rd
Modified: pkg/gtools/man/quantcut.Rd
===================================================================
--- pkg/gtools/man/quantcut.Rd 2015-05-25 14:10:01 UTC (rev 2024)
+++ pkg/gtools/man/quantcut.Rd 2015-05-25 14:13:12 UTC (rev 2025)
@@ -8,7 +8,7 @@
Create a factor variable using the quantiles of a continous variable.
}
\usage{
-quantcut(x, q=seq(0,1,by=0.25), na.rm=TRUE, ...)
+quantcut(x, q=4, na.rm=TRUE, ...)
}
%- maybe also `usage' for other objects documented here.
\arguments{
@@ -55,8 +55,8 @@
## cut into deciles
deciles.1 <- quantcut( x, 10 )
table(deciles.1)
- # or equivalently
- deciles.2 <- quantcut( x, seq(0,1,by=0.1) )
+ # or equivalently
+ deciles.2 <- quantcut( x, seq(0,1,by=0.1) )
\testonly{
stopifnot(identical(deciles.1, deciles.2))
@@ -67,7 +67,7 @@
stem(x) # display the ties
deciles <- quantcut( x, 10 )
- table(deciles) # note that there are only 5 groups (not 10)
+ table(deciles) # note that there are only 5 groups (not 10)
# due to duplicates
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|