Explorar el Código

Set numeric types beforehand

master
Maxime Wack hace 6 años
padre
commit
f680c32710
Se han modificado 2 ficheros con 1 adiciones y 1 borrados
  1. +0
    -1
      app.R
  2. +1
    -0
      preprocess.R

+ 0
- 1
app.R Ver fichero

@@ -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 Ver fichero

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



Cargando…
Cancelar
Guardar