Skip to content

Commit

Permalink
inherit docs
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennebacher committed May 5, 2024
1 parent c0f48e2 commit edc4372
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
10 changes: 4 additions & 6 deletions R/expr__string.R
Original file line number Diff line number Diff line change
Expand Up @@ -1031,6 +1031,8 @@ ExprStr_find = function(pattern, ..., literal = FALSE, strict = TRUE) {

#' Return the first n characters of each string
#'
#' @inherit ExprStr_slice return
#'
#' @param n Length of the slice (integer or expression). Strings are parsed as
#' column names. Negative indexing is supported.
#'
Expand All @@ -1047,8 +1049,6 @@ ExprStr_find = function(pattern, ..., literal = FALSE, strict = TRUE) {
#' If the length of the string has fewer than `n` characters, the full string is
#' returned.
#'
#' @return A string Expr
#'
#' @examples
#' df = pl$DataFrame(
#' s = c("pear", NA, "papaya", "dragonfruit"),
Expand All @@ -1066,8 +1066,8 @@ ExprStr_head = function(n) {

#' Return the last n characters of each string
#'
#' @param n Length of the slice (integer or expression). Strings are parsed as
#' column names. Negative indexing is supported.
#' @inheritParams ExprStr_head
#' @inherit ExprStr_slice return
#'
#' @details
#' The `n` input is defined in terms of the number of characters in the (UTF-8)
Expand All @@ -1082,8 +1082,6 @@ ExprStr_head = function(n) {
#' If the length of the string has fewer than `n` characters, the full string is
#' returned.
#'
#' @return A string Expr
#'
#' @examples
#' df = pl$DataFrame(
#' s = c("pear", NA, "papaya", "dragonfruit"),
Expand Down
2 changes: 1 addition & 1 deletion man/ExprStr_head.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/ExprStr_tail.Rd

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

0 comments on commit edc4372

Please sign in to comment.