Skip to content

Commit

Permalink
Adding count to NEWS and README
Browse files Browse the repository at this point in the history
  • Loading branch information
njlyon0 committed May 15, 2024
1 parent 3c4bd58 commit 8ad6fbc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
This is the development version of `supportR`. Changes will be listed here as they are made.

- New function: `replace_non_ascii`. Replaces non-ASCII characters with ASCII characters that are as visually similar as possible
- New function: `count`. Counts occurrences of each unique element in the provided vector
- New function behavior: `nms_ord` now supports modifying axis label text size and axis tickmark text size
- New function behavior: `pcoa_ord` now supports modifying axis label text size and axis tickmark text size

Expand Down
6 changes: 4 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ devtools::install_github("njlyon0/supportR")

- **`safe_rename`**: Renames columns in a given dataframe by matching 'bad' names with 'good' names

- **`crop_tri`**: Removes the specified "triangle" (either upper or lower) of a symmetric data object by replacing with NAs. Also allows user to specify whether to keep or also drop the diagonal

- **`name_vec`**: Creates a named vector of specified contents and names. Useful when creating named vectors that are too long to create manually or when creating the vector and then naming it is cumbersome

- **`crop_tri`**: Removes the specified "triangle" (either upper or lower) of a symmetric data object by replacing with NAs. Also allows user to specify whether to keep or also drop the diagonal

- **`array_melt`**: "Flattens" an array of dimensions X, Y, and Z into a dataframe containing columns `x`, `y`, `z`, and `value` where `value` is whatever was stored in the array at those coordinates

### Quality Control (QC)
Expand All @@ -48,6 +48,8 @@ devtools::install_github("njlyon0/supportR")

- **`num_check`**: Checks column(s) that _should_ contain only **numeric** values for any entries that would be coerced to NA if `as.numeric` is run

- **`count`**: Counts instances of each unique element in a provided vector

- **`date_check`**: Checks column(s) that _should_ contain only **date** values for any entries that would be coerced to NA if `as.Date` is run

- **`date_format_guess`**: Checks a column containing multiple ambiguous date formats and identifies its best guess for the format each date is in (e.g., 'dd/mm/yyyy' versus 'yyyy/dd/mm', etc.)
Expand Down
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ devtools::install_github("njlyon0/supportR")
- **`safe_rename`**: Renames columns in a given dataframe by matching
‘bad’ names with ‘good’ names

- **`crop_tri`**: Removes the specified “triangle” (either upper or
lower) of a symmetric data object by replacing with NAs. Also allows
user to specify whether to keep or also drop the diagonal

- **`name_vec`**: Creates a named vector of specified contents and
names. Useful when creating named vectors that are too long to create
manually or when creating the vector and then naming it is cumbersome

- **`crop_tri`**: Removes the specified “triangle” (either upper or
lower) of a symmetric data object by replacing with NAs. Also allows
user to specify whether to keep or also drop the diagonal

- **`array_melt`**: “Flattens” an array of dimensions X, Y, and Z into a
dataframe containing columns `x`, `y`, `z`, and `value` where `value`
is whatever was stored in the array at those coordinates
Expand All @@ -66,6 +66,9 @@ devtools::install_github("njlyon0/supportR")
**numeric** values for any entries that would be coerced to NA if
`as.numeric` is run

- **`count`**: Counts instances of each unique element in a provided
vector

- **`date_check`**: Checks column(s) that *should* contain only **date**
values for any entries that would be coerced to NA if `as.Date` is run

Expand Down

0 comments on commit 8ad6fbc

Please sign in to comment.