removing unwanted variables after sourcing data

This commit is contained in:
Tanushree Tunstall 2020-10-23 12:56:19 +01:00
parent 30e7777184
commit c8a764d209
7 changed files with 29 additions and 1 deletions

View file

@ -10,6 +10,10 @@ getwd()
############################################################
# source data
source("read_data.R")
# clear unwanted variables
rm(my_data)
############################################################
#===================================
# output: KS test for cumulated time

View file

@ -10,6 +10,10 @@ getwd()
############################################################
# source data
source("read_data.R")
# clear unwanted variables
rm(my_data)
############################################################
#===================================
# output: KS test at each timepoint

View file

@ -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)

View file

@ -10,6 +10,10 @@ getwd()
############################################################
# source data
source("read_data.R")
# clear unwanted variables
rm(my_data)
############################################################
#=========================
# output: paired_analysis

View file

@ -10,6 +10,10 @@ getwd()
############################################################
# source data
source("read_data.R")
# clear unwanted variables
rm(my_data)
############################################################
#============================
# Output: unpaired analysis

View file

@ -10,6 +10,10 @@ getwd()
############################################################
# source data
source("read_data.R")
# clear unwanted variables
rm(my_data)
############################################################
#===============================
# output: summary stats by time

View file

@ -10,6 +10,10 @@ getwd()
############################################################
# source data
source("read_data.R")
# clear unwanted variables
rm(my_data)
############################################################
#=========================================
# output: summary stats by time + outcome