How to use relocate() in R
Introduction
The relocate() function from the dplyr package is designed to change the position of columns in a data frame without altering the data itself. This function provides an intuitive way to reorder columns by moving them to specific positions, such as the beginning or end of a dataset, or relative to other columns. You would typically use relocate() when preparing data for analysis, creating reports where column order matters, or when you want to group related variables together for better readability. As part of the tidyverse ecosystem, relocate() integrates seamlessly with other dplyr functions and follows the grammar of data manipulation principles.
Syntax
relocate(.data, ..., .before = NULL, .after = NULL)Key arguments: - .data: A data frame or tibble to modify - ...: Columns to move, specified by name, position, or selection helpers - .before: Position columns before this column (optional) - .after: Position columns after this column (optional) - If neither .before nor .after is specified, columns move to the front
Example 1: Basic Usage
Let’s start with a simple example using the palmerpenguins dataset:
library(tidyverse)
library(palmerpenguins)
# View original column order
glimpse(penguins)Rows: 344
Columns: 8
$ species <fct> Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie
$ island <fct> Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe
$ bill_length_mm <dbl> 39.1, 39.5, 40.3, NA, 36.7, 39.3, 38.9, 39.2, 34.1, 42.0, 37.8, 37.8, 41.1, 38.6, 34.6, 36.6, 38.7, 42.5, 34.4, 46.0, 37.8, 37.7, 35.9, 38.2, 38.8, 35.3, 40.6, 40.5, 37.9, 40.5, 39.5, 37.2, 39.5, 40.9, 36.4, 39.2, 38.8, 42.2, 37.6, 39.8, 36.5, 40.8, 36.0, 44.1, 37.0, 39.6, 41.1, 37.5, 36.0, 42.3, 39.6, 40.1, 35.0, 42.0, 34.5, 41.4, 39.0, 40.6, 36.5, 37.6, 35.7, 41.3, 37.6, 41.1, 36.4, 41.6, 35.5, 41.1, 35.9, 41.8, 33.5, 39.7, 39.6, 45.8, 35.5, 42.8, 40.9, 37.2, 36.2, 42.1, 34.6, 42.9, 36.7, 35.1, 37.3, 41.3, 36.3, 36.9, 38.3, 38.9, 35.7, 41.1, 34.0, 39.6, 36.2, 40.8, 38.1, 40.3, 33.1, 43.2, 35.0, 41.0, 37.7, 37.8, 37.9, 39.7, 38.6, 38.2, 38.1, 43.2, 38.1, 45.6, 39.7, 42.2, 39.6, 42.7, 38.6, 37.3, 35.7, 41.1, 36.2, 37.7, 40.2, 41.4, 35.2, 40.6, 38.8, 41.5, 39.0, 44.1, 38.5, 43.1, 36.8, 37.5, 38.1, 41.1, 35.6, 40.2, 37.0, 39.7, 40.2, 40.6, 32.1, 40.7, 37.3, 39.0, 39.2, 36.6, 36.0, 37.8, 36.0, 41.5, 46.1, 50.0, 48.7, 50.0, 47.6, 46.5, 45.4, 46.7, 43.3, 46.8, 40.9, 49.0, 45.5, 48.4, 45.8, 49.3, 42.0, 49.2, 46.2, 48.7, 50.2, 45.1, 46.5, 46.3, 42.9, 46.1, 44.5, 47.8, 48.2, 50.0, 47.3, 42.8, 45.1, 59.6, 49.1, 48.4, 42.6, 44.4, 44.0, 48.7, 42.7, 49.6, 45.3, 49.6, 50.5, 43.6, 45.5, 50.5, 44.9, 45.2, 46.6, 48.5, 45.1, 50.1, 46.5, 45.0, 43.8, 45.5, 43.2, 50.4, 45.3, 46.2, 45.7, 54.3, 45.8, 49.8, 16.0, 46.2, 50.4, 45.2, 49.9, 46.5, 50.0, 51.3, 45.4, 52.7, 45.2, 46.1, 51.3, 46.0, 51.3, 46.6, 51.7, 47.0, 52.0, 45.9, 50.5, 50.3, 58.0, 46.4, 49.2, 42.4, 48.5, 43.2, 50.6, 46.7, 52.0, 50.5, 49.5, 46.4, 52.8, 40.9, 54.2, 42.0, 51.2, 49.7, 47.8, 53.4, 53.0, 51.5, 52.6, 45.7, 49.3, 50.4, 45.0, 52.1, 46.5, 57.0, 48.9, 62.0, 44.4, 44.1, 44.1, 50.7, 36.7, 53.3, 46.8, 40.9, 36.2, 40.2, 25.0, 38.0, 33.5, 41.8, 34.0, 36.7, 42.2, 36.4, 42.6
$ bill_depth_mm <dbl> 18.7, 17.4, 18.0, NA, 19.3, 20.6, 17.8, 19.6, 18.1, 20.2, 17.1, 17.3, 17.6, 21.2
## Related Tutorials
- [How to select one or more columns from a dataframe](select-one-or-more-columns-from-a-dataframe.html)
- [How to add Prefix/Suffix to Column Names of a dataframe in R](add-prefix-or-suffix-to-column-names-of-dataframe-in-r.html)
- [dplyr's mutate(): How to create new columns](dplyr-mutate-create-new-columns.html)
- [How to use starts_with() in R](how-to-use-startswith-in-r.html)
- [How to number rows within a group in dataframe](number-rows-within-groups-in-dataframe-r.html)
:::{#quarto-navigation-envelope .hidden}
[Rstats 101]{.hidden .quarto-markdown-envelope-contents render-id="cXVhcnRvLWludC1zaWRlYmFyLXRpdGxl"}
[Rstats 101]{.hidden .quarto-markdown-envelope-contents render-id="cXVhcnRvLWludC1uYXZiYXItdGl0bGU="}
[Home]{.hidden .quarto-markdown-envelope-contents render-id="cXVhcnRvLWludC1uYXZiYXI6SG9tZQ=="}
[/index.html]{.hidden .quarto-markdown-envelope-contents render-id="cXVhcnRvLWludC1uYXZiYXI6L2luZGV4Lmh0bWw="}
[LLM]{.hidden .quarto-markdown-envelope-contents render-id="cXVhcnRvLWludC1uYXZiYXI6TExN"}
[/llm/index.html]{.hidden .quarto-markdown-envelope-contents render-id="cXVhcnRvLWludC1uYXZiYXI6L2xsbS9pbmRleC5odG1s"}
[dplyr]{.hidden .quarto-markdown-envelope-contents render-id="cXVhcnRvLWludC1uYXZiYXI6ZHBseXI="}
[/dplyr/index.html]{.hidden .quarto-markdown-envelope-contents render-id="cXVhcnRvLWludC1uYXZiYXI6L2RwbHlyL2luZGV4Lmh0bWw="}
[tidyr]{.hidden .quarto-markdown-envelope-contents render-id="cXVhcnRvLWludC1uYXZiYXI6dGlkeXI="}
[/tidyr/index.html]{.hidden .quarto-markdown-envelope-contents render-id="cXVhcnRvLWludC1uYXZiYXI6L3RpZHlyL2luZGV4Lmh0bWw="}
[ggplot2]{.hidden .quarto-markdown-envelope-contents render-id="cXVhcnRvLWludC1uYXZiYXI6Z2dwbG90Mg=="}
[/ggplot2/index.html]{.hidden .quarto-markdown-envelope-contents render-id="cXVhcnRvLWludC1uYXZiYXI6L2dncGxvdDIvaW5kZXguaHRtbA=="}
[Statistics]{.hidden .quarto-markdown-envelope-contents render-id="cXVhcnRvLWludC1uYXZiYXI6U3RhdGlzdGljcw=="}
[/statistics/index.html]{.hidden .quarto-markdown-envelope-contents render-id="cXVhcnRvLWludC1uYXZiYXI6L3N0YXRpc3RpY3MvaW5kZXguaHRtbA=="}
[How-To]{.hidden .quarto-markdown-envelope-contents render-id="cXVhcnRvLWludC1uYXZiYXI6SG93LVRv"}
[/how-to/index.html]{.hidden .quarto-markdown-envelope-contents render-id="cXVhcnRvLWludC1uYXZiYXI6L2hvdy10by9pbmRleC5odG1s"}
[Base R]{.hidden .quarto-markdown-envelope-contents render-id="cXVhcnRvLWludC1uYXZiYXI6QmFzZSBS"}
[/base-r/index.html]{.hidden .quarto-markdown-envelope-contents render-id="cXVhcnRvLWludC1uYXZiYXI6L2Jhc2Utci9pbmRleC5odG1s"}
:::{.hidden .quarto-markdown-envelope-contents render-id="Zm9vdGVyLWxlZnQ="}
Copyright 2025 Rstats101. All rights reserved.
:::
:::{.hidden .quarto-markdown-envelope-contents render-id="Zm9vdGVyLXJpZ2h0LS9hYm91dC5odG1s"}
About
:::
:::{.hidden .quarto-markdown-envelope-contents render-id="Zm9vdGVyLXJpZ2h0LS9wcml2YWN5Lmh0bWw="}
Privacy Policy
:::
:::
:::{#quarto-meta-markdown .hidden}
[How to use relocate() in R – Rstats 101]{.hidden .quarto-markdown-envelope-contents render-id="cXVhcnRvLW1ldGF0aXRsZQ=="}
[How to use relocate() in R – Rstats 101]{.hidden .quarto-markdown-envelope-contents render-id="cXVhcnRvLXR3aXR0ZXJjYXJkdGl0bGU="}
[How to use relocate() in R – Rstats 101]{.hidden .quarto-markdown-envelope-contents render-id="cXVhcnRvLW9nY2FyZHRpdGxl"}
[Rstats 101]{.hidden .quarto-markdown-envelope-contents render-id="cXVhcnRvLW1ldGFzaXRlbmFtZQ=="}
[The relocate() function from the dplyr package is designed to change the position of columns in a data frame without altering the data itself. This function ...]{.hidden .quarto-markdown-envelope-contents render-id="cXVhcnRvLXR3aXR0ZXJjYXJkZGVzYw=="}
[The relocate() function from the dplyr package is designed to change the position of columns in a data frame without altering the data itself. This function ...]{.hidden .quarto-markdown-envelope-contents render-id="cXVhcnRvLW9nY2FyZGRkZXNj"}
:::
<!-- -->
::: {.quarto-embedded-source-code}
```````````````````{.markdown shortcodes="false"}
---
title: "How to use relocate() in R"
description: "The relocate() function from the dplyr package is designed to change the position of columns in a data frame without altering the data itself. This function ..."
date: 2026-02-21
categories: ["dplyr", "dplyr relocate()"]
format:
html:
code-fold: false
code-tools: true
---
## Introduction
The `relocate()` function from the dplyr package is designed to change the position of columns in a data frame without altering the data itself. This function provides an intuitive way to reorder columns by moving them to specific positions, such as the beginning or end of a dataset, or relative to other columns. You would typically use `relocate()` when preparing data for analysis, creating reports where column order matters, or when you want to group related variables together for better readability. As part of the tidyverse ecosystem, `relocate()` integrates seamlessly with other dplyr functions and follows the grammar of data manipulation principles.
## Syntax
```r
relocate(.data, ..., .before = NULL, .after = NULL)
Key arguments: - .data: A data frame or tibble to modify - ...: Columns to move, specified by name, position, or selection helpers - .before: Position columns before this column (optional) - .after: Position columns after this column (optional) - If neither .before nor .after is specified, columns move to the front
Example 1: Basic Usage
Let’s start with a simple example using the palmerpenguins dataset:
library(tidyverse)
library(palmerpenguins)
# View original column order
glimpse(penguins)Rows: 344
Columns: 8
$ species <fct> Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie, Adelie
$ island <fct> Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Torgersen, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Dream, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe, Biscoe
$ bill_length_mm <dbl> 39.1, 39.5, 40.3, NA, 36.7, 39.3, 38.9, 39.2, 34.1, 42.0, 37.8, 37.8, 41.1, 38.6, 34.6, 36.6, 38.7, 42.5, 34.4, 46.0, 37.8, 37.7, 35.9, 38.2, 38.8, 35.3, 40.6, 40.5, 37.9, 40.5, 39.5, 37.2, 39.5, 40.9, 36.4, 39.2, 38.8, 42.2, 37.6, 39.8, 36.5, 40.8, 36.0, 44.1, 37.0, 39.6, 41.1, 37.5, 36.0, 42.3, 39.6, 40.1, 35.0, 42.0, 34.5, 41.4, 39.0, 40.6, 36.5, 37.6, 35.7, 41.3, 37.6, 41.1, 36.4, 41.6, 35.5, 41.1, 35.9, 41.8, 33.5, 39.7, 39.6, 45.8, 35.5, 42.8, 40.9, 37.2, 36.2, 42.1, 34.6, 42.9, 36.7, 35.1, 37.3, 41.3, 36.3, 36.9, 38.3, 38.9, 35.7, 41.1, 34.0, 39.6, 36.2, 40.8, 38.1, 40.3, 33.1, 43.2, 35.0, 41.0, 37.7, 37.8, 37.9, 39.7, 38.6, 38.2, 38.1, 43.2, 38.1, 45.6, 39.7, 42.2, 39.6, 42.7, 38.6, 37.3, 35.7, 41.1, 36.2, 37.7, 40.2, 41.4, 35.2, 40.6, 38.8, 41.5, 39.0, 44.1, 38.5, 43.1, 36.8, 37.5, 38.1, 41.1, 35.6, 40.2, 37.0, 39.7, 40.2, 40.6, 32.1, 40.7, 37.3, 39.0, 39.2, 36.6, 36.0, 37.8, 36.0, 41.5, 46.1, 50.0, 48.7, 50.0, 47.6, 46.5, 45.4, 46.7, 43.3, 46.8, 40.9, 49.0, 45.5, 48.4, 45.8, 49.3, 42.0, 49.2, 46.2, 48.7, 50.2, 45.1, 46.5, 46.3, 42.9, 46.1, 44.5, 47.8, 48.2, 50.0, 47.3, 42.8, 45.1, 59.6, 49.1, 48.4, 42.6, 44.4, 44.0, 48.7, 42.7, 49.6, 45.3, 49.6, 50.5, 43.6, 45.5, 50.5, 44.9, 45.2, 46.6, 48.5, 45.1, 50.1, 46.5, 45.0, 43.8, 45.5, 43.2, 50.4, 45.3, 46.2, 45.7, 54.3, 45.8, 49.8, 16.0, 46.2, 50.4, 45.2, 49.9, 46.5, 50.0, 51.3, 45.4, 52.7, 45.2, 46.1, 51.3, 46.0, 51.3, 46.6, 51.7, 47.0, 52.0, 45.9, 50.5, 50.3, 58.0, 46.4, 49.2, 42.4, 48.5, 43.2, 50.6, 46.7, 52.0, 50.5, 49.5, 46.4, 52.8, 40.9, 54.2, 42.0, 51.2, 49.7, 47.8, 53.4, 53.0, 51.5, 52.6, 45.7, 49.3, 50.4, 45.0, 52.1, 46.5, 57.0, 48.9, 62.0, 44.4, 44.1, 44.1, 50.7, 36.7, 53.3, 46.8, 40.9, 36.2, 40.2, 25.0, 38.0, 33.5, 41.8, 34.0, 36.7, 42.2, 36.4, 42.6
$ bill_depth_mm <dbl> 18.7, 17.4, 18.0, NA, 19.3, 20.6, 17.8, 19.6, 18.1, 20.2, 17.1, 17.3, 17.6, 21.2
## Related Tutorials
- [How to select one or more columns from a dataframe](select-one-or-more-columns-from-a-dataframe.html)
- [How to add Prefix/Suffix to Column Names of a dataframe in R](add-prefix-or-suffix-to-column-names-of-dataframe-in-r.html)
- [dplyr's mutate(): How to create new columns](dplyr-mutate-create-new-columns.html)
- [How to use starts_with() in R](how-to-use-startswith-in-r.html)
- [How to number rows within a group in dataframe](number-rows-within-groups-in-dataframe-r.html)
:::