R/unique_rows.R

Defines functions unique_rows

Documented in unique_rows

#' Unique Rows
#'
#' This function finds how many unique rows there are in a data frame
#'
#' There are many important details within this function, but the most important is that you enter a data frame as the only argument.
#'
#' @author Isabella Bingaman
#'
#' @param df A data frame.
#'
#' @return The number of unique rows there are in a data frame.
#'
#' @examples
#' unique_rows(mtcars)
#'
#' @export


unique_rows <- function(df){
  nrow(dplyr::distinct(df))
}
isabellabingaman/UniquerIGB documentation built on Nov. 4, 2019, 2:13 p.m.