1.导入数据
library(tidyverse)
dfdemo <- read_csv("/Users/cpf/Documents/paper/R_programming/Rprocess/mydata/dfdemo.csv")
head(dfdemo)
## # A tibble: 6 x 8
## CASENUM WEATHHER VENO AGE AGE1 SEX REST_USE INJ_SEV
## <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 201700316865 0 1 49 2 1 1 0
## 2 201700316865 0 2 16 0 1 1 0
## 3 201600777740 0 1 18 0 1 1 1
## 4 201600777740 0 2 38 1 0 1