Skip to content

Commit

Permalink
CRAN submission
Browse files Browse the repository at this point in the history
  • Loading branch information
floswald committed Sep 30, 2024
1 parent cb0d559 commit 3fe6a89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 4 additions & 3 deletions R/build.panel.r
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
#' ind.vars=i,
#' heads.only =TRUE,sample="SRC",
#' design="all")
#' save(d,file="~/psid.RData")
#' }
#'
#' # ######################################
Expand Down Expand Up @@ -131,6 +130,7 @@ build.panel <- function(datadir=NULL,fam.vars,ind.vars=NULL,heads.only=FALSE,cur
# or R CMD CHECK complains.

interview <- headyes <- .SD <- fam.interview <- ind.interview <- ind.head <- ER30001 <- ind.head.num <- pid <- ID1968 <- pernum <- isna <- present <- always <- enough <- ind.seq <- name <- variable <- NULL
oldopts <- NULL

stopifnot(is.numeric(fam.vars$year))
years <- fam.vars$year
Expand All @@ -140,6 +140,8 @@ build.panel <- function(datadir=NULL,fam.vars,ind.vars=NULL,heads.only=FALSE,cur
s <- .Platform$file.sep
if ( .Platform$OS.type != 'windows' ) {
# warning("I'm setting your encoding to windows now")
oldopts <- options() # code line i
on.exit(oldopts) # code line i + 1
options( encoding = "windows-1252" ) # # only macintosh and *nix users need this line
}

Expand Down Expand Up @@ -767,8 +769,7 @@ build.psid <- function(datadr="~/datasets/psid/",small=TRUE){
i = dcast(i[,list(year,name,variable)],year~name, value.var = "variable")
f = dcast(f[,list(year,name,variable)],year~name, value.var = "variable")
d = build.panel(datadir=datadr,fam.vars=f,ind.vars=i, heads.only = TRUE,sample="SRC",design="all")
save(d,file="~/psid_no_wealth.RData")


return(d)
}

Expand Down
1 change: 0 additions & 1 deletion man/build.panel.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3fe6a89

Please sign in to comment.