|
@ -46,6 +46,7 @@ unknownCol <- c() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
desireCol <- c() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for(day in dayList) |
|
|
for(day in dayList) |
|
@ -73,6 +74,7 @@ for(day in dayList) |
|
|
|
|
|
|
|
|
if(length(wellnessDay$SleepHours) > 0) |
|
|
if(length(wellnessDay$SleepHours) > 0) |
|
|
{ |
|
|
{ |
|
|
|
|
|
desireCol <- c(desireCol, wellnessDay$Desire) |
|
|
fatigueRawCol <- c(fatigueRawCol, mean(wellnessDay$Fatigue, na.rm =T)) |
|
|
fatigueRawCol <- c(fatigueRawCol, mean(wellnessDay$Fatigue, na.rm =T)) |
|
|
sleepQualityCol <- c(sleepQualityCol, mean(wellnessDay$SleepQuality, na.rm = T)) |
|
|
sleepQualityCol <- c(sleepQualityCol, mean(wellnessDay$SleepQuality, na.rm = T)) |
|
|
sleepHoursCol <- c(sleepHoursCol, sum(wellnessDay$SleepHours, na.rm = T)) |
|
|
sleepHoursCol <- c(sleepHoursCol, sum(wellnessDay$SleepHours, na.rm = T)) |
|
@ -80,6 +82,7 @@ for(day in dayList) |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
|
|
|
desireCol <- c(desireCol, median(wellnessData$Desire)) |
|
|
sleepQualityCol <- c(sleepQualityCol, median(wellnessData$SleepQuality, na.rm = T)) |
|
|
sleepQualityCol <- c(sleepQualityCol, median(wellnessData$SleepQuality, na.rm = T)) |
|
|
sleepHoursCol <- c(sleepHoursCol, median(wellnessData$SleepHours)) |
|
|
sleepHoursCol <- c(sleepHoursCol, median(wellnessData$SleepHours)) |
|
|
fatigueRawCol <- c(fatigueRawCol, median(wellnessData$Fatigue)) |
|
|
fatigueRawCol <- c(fatigueRawCol, median(wellnessData$Fatigue)) |
|
@ -160,7 +163,8 @@ massiveTibble <- tibble(day = dayCol, |
|
|
BestOutOfMyselfNotAtAll = notatAllCol, |
|
|
BestOutOfMyselfNotAtAll = notatAllCol, |
|
|
BestOutOfMyselfAbsolutely = absCol, |
|
|
BestOutOfMyselfAbsolutely = absCol, |
|
|
BestOutOfMyselfSomewhat = somewhatCol, |
|
|
BestOutOfMyselfSomewhat = somewhatCol, |
|
|
BestOutOfMyselfUnknown = unknownCol) |
|
|
|
|
|
|
|
|
BestOutOfMyselfUnknown = unknownCol, |
|
|
|
|
|
desire = desireCol) |
|
|
|
|
|
|
|
|
write.csv(massiveTibble, "cleaned/personal.csv") |
|
|
write.csv(massiveTibble, "cleaned/personal.csv") |
|
|
|
|
|
|
|
@ -194,7 +198,7 @@ ggplot(data = massiveTibble) + |
|
|
ggplot(data = massiveTibble) + |
|
|
ggplot(data = massiveTibble) + |
|
|
theme(plot.title = element_text(hjust = 0.5)) + |
|
|
theme(plot.title = element_text(hjust = 0.5)) + |
|
|
ggtitle("Team's Percieved Fatigue") + |
|
|
ggtitle("Team's Percieved Fatigue") + |
|
|
geom_point(mapping = aes(x=day, y=fatigue)) + |
|
|
|
|
|
|
|
|
geom_point(mapping = aes(x=day, y=fatigueNormSliding)) + |
|
|
labs(x = "Days Since August First 2017", y = "Teams Fatigue")+ |
|
|
labs(x = "Days Since August First 2017", y = "Teams Fatigue")+ |
|
|
theme_bw() |
|
|
theme_bw() |
|
|
|
|
|
|
|
|