2 Data Entry
Load the necessary packages.
library(tidyverse)
## -- Attaching packages --------------------------------------- tidyverse 1.3.1 --
## v ggplot2 3.3.5 v purrr 0.3.4
## v tibble 3.1.6 v dplyr 1.0.7
## v tidyr 1.1.4 v stringr 1.4.0
## v readr 2.1.0 v forcats 0.5.1
## -- Conflicts ------------------------------------------ tidyverse_conflicts() --
## x dplyr::filter() masks stats::filter()
## x dplyr::lag() masks stats::lag()
library(ggpubr)
library(multcomp)
## Loading required package: mvtnorm
## Loading required package: survival
## Loading required package: TH.data
## Loading required package: MASS
##
## Attaching package: 'MASS'
## The following object is masked from 'package:dplyr':
##
## select
##
## Attaching package: 'TH.data'
## The following object is masked from 'package:MASS':
##
## geyser
Load data to R using read_csv()
function of the readr
package of tidyverse
and save it with a variable name oneway_data
.
# Load and save
<- read_csv(file = "data/Tubo-USEP_One-Way Cleaned Data for R.csv")
oneway_data # Preview
oneway_data
## # A tibble: 5 x 5
## Observation Colorless Pink Orange Green
## <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 1 26.5 31.2 27.9 30.8
## 2 2 28.7 28.3 25.1 29.6
## 3 3 25.1 30.8 28.5 32.4
## 4 4 29.1 27.9 24.2 31.7
## 5 5 27.2 29.6 26.5 32.8