Skip to content

Commit

Permalink
correct typos after spellcheck()
Browse files Browse the repository at this point in the history
  • Loading branch information
moodymudskipper committed Jun 10, 2020
1 parent 3818ee7 commit 3a86c83
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 16 deletions.
6 changes: 3 additions & 3 deletions R/unglue.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#' Detect if strings are matched by a set of unglue patterns
#'
#' Returns a logical indicating wether input strings were matched by one or more patterns
#' Returns a logical indicating whether input strings were matched by one or more patterns
#' @inheritParams unglue
#' @return a vector of logical.
#' @export
Expand All @@ -27,7 +27,7 @@ unglue_detect <- function(
#' * `unglue_data()` to return a data frame from a character vector,
#' just as `glue::glue_data()` does in reverse
#' * `unglue()` to return a list of data frames containing the matches
#' * `unglue_vec()` to extract one value by element of `x`, chosen by indice or by
#' * `unglue_vec()` to extract one value by element of `x`, chosen by index or by
#' name.
#' * `unglue_unnest()` to extract value from a column of a data frame to new columns
#'
Expand Down Expand Up @@ -63,7 +63,7 @@ unglue_detect <- function(
#' the conflicting values as separate arguments. Formula notation
#' is supported if the package `rlang` is installed.
#' @param col column containing the character vector to extract values from.
#' @param remove wether to remove the column `col` once extraction is performed
#' @param remove whether to remove the column `col` once extraction is performed
#' @param var for `unglue_vec()`, the numeric index or the name of the subpattern to extract from
#' @param na string to use when there is no match
#' @return For `unglue()`a list of one row data frames, for `unglue_data` a
Expand Down
8 changes: 4 additions & 4 deletions R/unglue_regex.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
#' be used with functions from other packages).
#'
#' @inheritParams unglue
#' @param use_multiple wether we should consider that duplicate labels can match
#' @param use_multiple whether we should consider that duplicate labels can match
#' different substrings.
#' @param named_capture wether to incorporate the names of the groups in the
#' ouput regex
#' @param attributes wether to give group attributes to the output
#' @param named_capture whether to incorporate the names of the groups in the
#' output regex
#' @param attributes whether to give group attributes to the output
#'
#' @export
#' @return a character vector.
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ as `readr::type_convert`, or to a formula is *rlang* is installed.
### `unglue_unnest()`

`unglue_unnest()` is named as a tribute to `tidyr::unnest()` as it's equivalent
to using sucessively `unglue()` and `unnest()` on a data frame column. It is
to using successively `unglue()` and `unnest()` on a data frame column. It is
similar to `tidyr::extract()` in its syntax and efforts were made to make it as
consistent as possible.

Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

[![Travis build
status](https://travis-ci.org/moodymudskipper/unglue.svg?branch=master)](https://travis-ci.org/moodymudskipper/unglue)
[![Codecov test
coverage](https://codecov.io/gh/moodymudskipper/unglue/branch/master/graph/badge.svg)](https://codecov.io/gh/moodymudskipper/unglue?branch=master)
<!-- badges: end -->

# unglue <img src='man/figures/logo.png' align="right" height="139" />

Expand Down Expand Up @@ -112,7 +115,7 @@ conversion function such as `readr::type_convert`, or to a formula is
### `unglue_unnest()`

`unglue_unnest()` is named as a tribute to `tidyr::unnest()` as it’s
equivalent to using sucessively `unglue()` and `unnest()` on a data
equivalent to using successively `unglue()` and `unnest()` on a data
frame column. It is similar to `tidyr::extract()` in its syntax and
efforts were made to make it as consistent as possible.

Expand Down
4 changes: 2 additions & 2 deletions man/unglue.Rd

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

2 changes: 1 addition & 1 deletion man/unglue_detect.Rd

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

8 changes: 4 additions & 4 deletions man/unglue_regex.Rd

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

0 comments on commit 3a86c83

Please sign in to comment.