Browse Source

Added desire to train in the personal.csv

master
Jeffery Russell 5 years ago
parent
commit
50021724b6
2 changed files with 6042 additions and 6038 deletions
  1. +6
    -2
      data_preparation/IndividualMetrics.R
  2. +6036
    -6036
      data_preparation/cleaned/personal.csv

+ 6
- 2
data_preparation/IndividualMetrics.R View File

@ -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()

+ 6036
- 6036
data_preparation/cleaned/personal.csv
File diff suppressed because it is too large
View File


Loading…
Cancel
Save