-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLab3_BB.R
More file actions
71 lines (43 loc) · 1.1 KB
/
Lab3_BB.R
File metadata and controls
71 lines (43 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
title: "Lab3"
author: "Ben Buzzee"
date: "February 16, 2017"
output: html_document
---
```{r}
rm(list=ls())
library(tidyverse)
setwd("C:/Users/mmor1_000/Desktop/585/Lab3")
file1 <- list()
for (i in 1:4){
file1[[i]] <- readxl::read_excel("./Spreadsheets/FileOne.xlsx", sheet = i)
}
for (i in 1:4){
names(file1[[i]])[1:2] <- c("id", "type")
}
for (i in 1:4){
file1[[i]] <- file1[[i]] %>% mutate(sem=i)
}
#----- File 2
file2 <- list()
for (i in 1:4){
file2[[i]] <- readxl::read_excel("./Spreadsheets/FileTwo.xlsx", sheet = i)
}
for (i in 1:4){
names(file2[[i]])[1:2] <- c("id", "type")
}
for (i in 1:4){
file2[[i]] <- file2[[i]] %>% mutate(sem=i)
}
sem1 <- left_join(file1[[1]], file2[[1]], by = "id")
sem1$GENDER.x[65:128] <- sem1$GENDER.x[1:64]
```
```{r cars}
summary(cars)
```
## Including Plots
You can also embed plots, for example:
```{r pressure, echo=FALSE}
plot(pressure)
```
Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot.