---
layout: post
title: "Creating a vector in base R with the c, :, seq, and rep functions (CC170)"
blurb: "Everything in R is a vector"
author: "PD Schloss"
date: 2021-12-09 11:00
comments: false
youtube: EiQkBW7Ycr4
# start_hash: b0d55b783e5c84eb26114cd4a722ab027fd77839
# end_hash: 40579c347018aaf6d1e603ee4fa65eae87114253
---

Everything in R is a vector. In this Code Club, Pat shows how to use base R functions including c, :, seq, and rep to build a vector. As a bonus, he'll show you how to access built in vectors letter, LETTERS, month.abb, and month.name. This is part of a series of videos demonstrating how to functions from base R to make these data compatible with tools from the tidyverse.


<iframe style="margin: 0 auto;display:block;" width="560" height="315" src="https://www.youtube.com/embed/{{ page.youtube }}" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>


<!-- ## Code

You can browse the state of the repository at the
* [beginning of the episode](https://github.com/riffomonas/distances/tree/{{ page.start_hash }})
* [end of the episode](https://github.com/riffomonas/distances/tree/{{ page.end_hash }}) -->
