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("read_data.R")
|
||||
|
||||
# clear unwanted variables
|
||||
rm(my_data)
|
||||
|
||||
############################################################
|
||||
#===================================
|
||||
# output: KS test for cumulated time
|
||||
|
|
|
@ -10,6 +10,10 @@ getwd()
|
|||
############################################################
|
||||
# source data
|
||||
source("read_data.R")
|
||||
|
||||
# clear unwanted variables
|
||||
rm(my_data)
|
||||
|
||||
############################################################
|
||||
#===================================
|
||||
# output: KS test at each timepoint
|
||||
|
|
|
@ -19,10 +19,14 @@ outdir_stats = "~/git/covid_data/output/stats/"
|
|||
|
||||
#==========================================================
|
||||
# input data files
|
||||
infile_covid = paste0(datadir,"/covid19_v3.csv")
|
||||
|
||||
infile_icu_wf = paste0(datadir,"/icu_covid_wf_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)
|
||||
dim(wf_data)
|
||||
|
||||
|
|
|
@ -10,6 +10,10 @@ getwd()
|
|||
############################################################
|
||||
# source data
|
||||
source("read_data.R")
|
||||
|
||||
# clear unwanted variables
|
||||
rm(my_data)
|
||||
|
||||
############################################################
|
||||
#=========================
|
||||
# output: paired_analysis
|
||||
|
|
|
@ -10,6 +10,10 @@ getwd()
|
|||
############################################################
|
||||
# source data
|
||||
source("read_data.R")
|
||||
|
||||
# clear unwanted variables
|
||||
rm(my_data)
|
||||
|
||||
############################################################
|
||||
#============================
|
||||
# Output: unpaired analysis
|
||||
|
|
|
@ -10,6 +10,10 @@ getwd()
|
|||
############################################################
|
||||
# source data
|
||||
source("read_data.R")
|
||||
|
||||
# clear unwanted variables
|
||||
rm(my_data)
|
||||
|
||||
############################################################
|
||||
#===============================
|
||||
# output: summary stats by time
|
||||
|
|
|
@ -10,6 +10,10 @@ getwd()
|
|||
############################################################
|
||||
# source data
|
||||
source("read_data.R")
|
||||
|
||||
# clear unwanted variables
|
||||
rm(my_data)
|
||||
|
||||
############################################################
|
||||
#=========================================
|
||||
# output: summary stats by time + outcome
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue