This file is part of the lecture Business Intelligence & Analytics (EESYS-BIA-M), Information Systems and Energy Efficient Systems, University of Bamberg.
```{r Load and inspect data}
# Task 1 clone git repository
# Task 2
# Read data. Remember the relative path
Shower <- read.csv2("../data/Shower_data.csv")
?read.csv #help pages for format options of the data file
# Task 3
# Inspect the dataset
summary(Shower)
str(Shower)
head(Shower, n=30)
tail(Shower, n=20)
nrow(Shower)
ncol(Shower)
class(Shower)
dim(Shower)
names(Shower)
```
```{r Convert and take care about missing data}
# Task 4
# the group is not meaningful as numeric! Convert it to a factor
Shower$group <- as.factor(Shower$group)
summary(Shower)
levels(Shower$group)
# Task 5
#level names of factors can be changed - mind the order of the elements!