1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-18 00:03:24 +02:00

First CRAN submission edits

This commit is contained in:
2018-02-22 20:48:48 +01:00
parent 77194527b5
commit d8da8daf9a
20 changed files with 162 additions and 94 deletions

View File

@ -20,6 +20,14 @@ This transforms a vector to a new class \code{rsi}, which is an ordered factor w
}
\examples{
rsi_data <- as.rsi(c(rep("S", 474), rep("I", 36), rep("R", 370)))
rsi_data <- as.rsi(c(rep("S", 474), rep("I", 36), rep("R", 370), "A", "B", "C"))
is.rsi(rsi_data)
plot(rsi_data)
\donttest{
library(dplyr)
tbl \%>\%
mutate_at(vars(ends_with("_rsi")), as.rsi)
sapply(mic_data, is.rsi)
}
}