浏览代码

Remove NA shows only if they exist\n\nIn previous versions of the db, some shows had no title. This is not the case anymore, and all shows were removed as a consequence.

master
Maxime Wack 2 年前
父节点
当前提交
64bd009271
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      app.R

+ 2
- 1
app.R 查看文件

@@ -11,7 +11,8 @@ imdb %>%
shows$id %>%
setNames(shows$title) -> shows

shows <- shows[- (names(shows) %>% is.na %>% which)]
if (shows %>% names %>% is.na %>% which %>% length > 0)
shows <- shows[- (names(shows) %>% is.na %>% which)]

ui <- fluidPage(
inputPanel(width = "20%", height = "100%",


正在加载...
取消
保存