Procházet zdrojové kódy

Set numeric types beforehand

master
Maxime Wack před 6 roky
rodič
revize
f680c32710
2 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +0
    -1
      app.R
  2. +1
    -0
      preprocess.R

+ 0
- 1
app.R Zobrazit soubor

@@ -28,7 +28,6 @@ server <- function(input, output, session)

imdb %>%
filter(id == show_id) %>%
mutate_at(vars(season, episode, averageRating, numVotes), as.numeric) %>%
by(.$season, function(x){
fit <- lm(averageRating ~ episode, data = x)
x %>%


+ 1
- 0
preprocess.R Zobrazit soubor

@@ -21,6 +21,7 @@ tvseries %>%
inner_join(ratings, by = c("eptconst" = "tconst")) %>%
inner_join(tvepisodes, by = c("eptconst" = "tconst")) %>%
select(-eptconst, episodeTitle = primaryTitle) %>%
mutate_at(vars(season, episode, averageRating, numVotes), as.numeric) %>%
arrange(seriesTitle, season, episode) ->
final



Načítá se…
Zrušit
Uložit