mirror of
https://github.com/theoleuthardt/homelab-docker-compose.git
synced 2026-06-05 23:41:07 +00:00
feat: add rstudio deployment
This commit is contained in:
parent
7486662cc8
commit
8d2f7ec654
225 changed files with 1582 additions and 5 deletions
12
rstudio/Klausur/Quallen.R
Normal file
12
rstudio/Klausur/Quallen.R
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
library(OneR)
|
||||
library(readxl)
|
||||
setwd("~/Klausur")
|
||||
qq <- read_excel("quallen.XLS")
|
||||
qq$giftig <- as.factor(qq$giftig)
|
||||
model <- OneR(giftig ~ ., data = qq)
|
||||
summary(model)
|
||||
|
||||
tstdat <- data.frame(Farbe = "gelb", Größe = "mittel", transparent = "nein",
|
||||
Geschmack = "süß")
|
||||
colnames(tstdat) <- c("Farbe","Größe","transparent","Geschmack")
|
||||
predict(model, tstdat)
|
||||
Loading…
Add table
Add a link
Reference in a new issue