瀏覽代碼

convert chr to date when reading from csv

genderequality-alternative
flavis 4 年之前
父節點
當前提交
2a9035e630
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      R/parse.R

+ 2
- 1
R/parse.R 查看文件

@@ -233,7 +233,8 @@ read_from_csv <- function(path="inst/csv/") {
mutate(id = as.character(id)),
speeches = read.table(str_c(path, "speeches.csv")) %>%
tibble() %>%
mutate(speaker = as.character(speaker)),
mutate(speaker = as.character(speaker),
date = as.Date(date)),
talks = tibble %$% read.table(str_c(path, "talks.csv")),
comments = tibble %$% read.table(str_c(path, "comments.csv")),
applause = tibble %$% read.table(str_c(path, "applause.csv")))


Loading…
取消
儲存