Skip to content

Commit

Permalink
Reviewed documentation #117
Browse files Browse the repository at this point in the history
  • Loading branch information
dbosak01 committed Sep 4, 2023
1 parent a4a9466 commit d2be975
Show file tree
Hide file tree
Showing 14 changed files with 278 additions and 192 deletions.
Binary file modified Procs_Validation.docx
Binary file not shown.
6 changes: 3 additions & 3 deletions R/proc_sort.R
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ get_dupkey <- function(dat, key = NULL) {
}

# Subset by key
kdat <- dat[ , key]
kdat <- dat[ , key, drop = FALSE]

# Add counting variable
kdat$..cnt <- 1
Expand All @@ -259,13 +259,13 @@ get_dupkey <- function(dat, key = NULL) {
kcnt <- aggregate(kdat, klist,
function(x){NROW(x)}, drop = TRUE)

kcnt
# kcnt

# Filter out unique rows
fkcnt <- kcnt[kcnt$..cnt > 1, ]

# Pull out the key columns
fkcnt2 <- fkcnt[ , find.names(fkcnt, "key.*")]
fkcnt2 <- fkcnt[ , find.names(fkcnt, "key.*"), drop = FALSE]

# Restore original key column names
names(fkcnt2) <- sub("key.", "", names(fkcnt2), fixed = TRUE)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@
<img src='man/images/procs_new.png' align="left" height="138px" style="margin-right:10px;height:138px"/>

The purpose of the **procs** package is to recreate commonly used SAS®
procedures in R. The first version of the package will attempt to recreate
procedures in R. The first version of the package will attempt to simulate
PROC FREQ and PROC MEANS.
Subsequent versions of the package will add more statistical procedures.

The package will also include a recreation of PROC TRANSPOSE,
The package will also include a conceptual reproduction of PROC TRANSPOSE,
PROC SORT, and PROC PRINT.
The reason these procedures are included is because they are frequently used
in conjunction with the statistical procedures to prepare results for reporting.

There are three motivations for recreating SAS® statistical procedures in R:
There are three motivations for simulating SAS® statistical procedures in R:

**1) Rich Outputs:** R provides a wide range of statistical packages and functions.
However, these statistical functions frequently return a fragmented output.
Expand Down
64 changes: 40 additions & 24 deletions docs/articles/procs-dm.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d2be975

Please sign in to comment.