From ecedaf0fd888fd9f1b84c80364098c1a318ef599 Mon Sep 17 00:00:00 2001 From: Thomas Battram Date: Wed, 27 Mar 2019 14:32:29 +0000 Subject: [PATCH] Changed package used to read in stata files so that the description of the variables are included as attributes in the output --- R/queryAlspac.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/queryAlspac.R b/R/queryAlspac.R index 2dfb109..778457b 100644 --- a/R/queryAlspac.R +++ b/R/queryAlspac.R @@ -424,7 +424,7 @@ extractVarsFull <- function(x) message("Skipping...") return(NULL) } - obj <- suppressWarnings(readstata13::read.dta13(fn)) + obj <- suppressWarnings(haven::read_dta(fn)) # Make sure aln and qlet variables are lower case alnc <- grep("^ALN$", names(obj), ignore.case=TRUE)