removing unwanted variables after sourcing data
This commit is contained in:
parent
30e7777184
commit
c8a764d209
7 changed files with 29 additions and 1 deletions
|
@ -10,6 +10,10 @@ getwd()
|
||||||
############################################################
|
############################################################
|
||||||
# source data
|
# source data
|
||||||
source("read_data.R")
|
source("read_data.R")
|
||||||
|
|
||||||
|
# clear unwanted variables
|
||||||
|
rm(my_data)
|
||||||
|
|
||||||
############################################################
|
############################################################
|
||||||
#===================================
|
#===================================
|
||||||
# output: KS test for cumulated time
|
# output: KS test for cumulated time
|
||||||
|
|
|
@ -10,6 +10,10 @@ getwd()
|
||||||
############################################################
|
############################################################
|
||||||
# source data
|
# source data
|
||||||
source("read_data.R")
|
source("read_data.R")
|
||||||
|
|
||||||
|
# clear unwanted variables
|
||||||
|
rm(my_data)
|
||||||
|
|
||||||
############################################################
|
############################################################
|
||||||
#===================================
|
#===================================
|
||||||
# output: KS test at each timepoint
|
# output: KS test at each timepoint
|
||||||
|
|
|
@ -19,10 +19,14 @@ outdir_stats = "~/git/covid_data/output/stats/"
|
||||||
|
|
||||||
#==========================================================
|
#==========================================================
|
||||||
# input data files
|
# input data files
|
||||||
|
infile_covid = paste0(datadir,"/covid19_v3.csv")
|
||||||
|
|
||||||
infile_icu_wf = paste0(datadir,"/icu_covid_wf_v3.csv")
|
infile_icu_wf = paste0(datadir,"/icu_covid_wf_v3.csv")
|
||||||
infile_icu_lf = paste0(datadir,"/icu_covid_lf_v3.csv")
|
infile_icu_lf = paste0(datadir,"/icu_covid_lf_v3.csv")
|
||||||
#%%========================================================
|
#%%========================================================
|
||||||
# read file
|
# read files
|
||||||
|
my_data = read.csv(infile_covid, stringsAsFactors = F)
|
||||||
|
|
||||||
wf_data = read.csv(infile_icu_wf , stringsAsFactors = F)
|
wf_data = read.csv(infile_icu_wf , stringsAsFactors = F)
|
||||||
dim(wf_data)
|
dim(wf_data)
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,10 @@ getwd()
|
||||||
############################################################
|
############################################################
|
||||||
# source data
|
# source data
|
||||||
source("read_data.R")
|
source("read_data.R")
|
||||||
|
|
||||||
|
# clear unwanted variables
|
||||||
|
rm(my_data)
|
||||||
|
|
||||||
############################################################
|
############################################################
|
||||||
#=========================
|
#=========================
|
||||||
# output: paired_analysis
|
# output: paired_analysis
|
||||||
|
|
|
@ -10,6 +10,10 @@ getwd()
|
||||||
############################################################
|
############################################################
|
||||||
# source data
|
# source data
|
||||||
source("read_data.R")
|
source("read_data.R")
|
||||||
|
|
||||||
|
# clear unwanted variables
|
||||||
|
rm(my_data)
|
||||||
|
|
||||||
############################################################
|
############################################################
|
||||||
#============================
|
#============================
|
||||||
# Output: unpaired analysis
|
# Output: unpaired analysis
|
||||||
|
|
|
@ -10,6 +10,10 @@ getwd()
|
||||||
############################################################
|
############################################################
|
||||||
# source data
|
# source data
|
||||||
source("read_data.R")
|
source("read_data.R")
|
||||||
|
|
||||||
|
# clear unwanted variables
|
||||||
|
rm(my_data)
|
||||||
|
|
||||||
############################################################
|
############################################################
|
||||||
#===============================
|
#===============================
|
||||||
# output: summary stats by time
|
# output: summary stats by time
|
||||||
|
|
|
@ -10,6 +10,10 @@ getwd()
|
||||||
############################################################
|
############################################################
|
||||||
# source data
|
# source data
|
||||||
source("read_data.R")
|
source("read_data.R")
|
||||||
|
|
||||||
|
# clear unwanted variables
|
||||||
|
rm(my_data)
|
||||||
|
|
||||||
############################################################
|
############################################################
|
||||||
#=========================================
|
#=========================================
|
||||||
# output: summary stats by time + outcome
|
# output: summary stats by time + outcome
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue