Data management, cleaning, and/or wrangling is an extremely important part of data analysis. If fact, you need to do data management procedures before you conduct any analyses and will, actually, spend most of your time doing data cleaning.
There are a number of packages to help you get your data the the shape you need it to analyze. Below are just a couple of resources to help you get started and to get your data ready for analysis!
RStudio: What is data wrangling? Intro, Motivation, Outline, Setup -- Pt. 1 Data Wrangling Introduction (8:25)
RStudio: Tidy Data and tidyr -- Pt 2 Intro to Data Wrangling with R and the Tidyverse (17:35)
RStudio: What is data wrangling? Intro, Motivation, Outline, Setup -- P3 (19:33)
Hefin Rhys: Working with tibbles in R (18:44)
dplyr is a powerful R-package to transform and summarize tabular data with rows and columns.
The tidyverse is an opinionated collection of R packages designed for data science. All packages share an underlying design philosophy, grammar, and data structures.