Skip to content

Commit c2a230b

Browse files
committed
CRAN 2.3
1 parent 602fcd8 commit c2a230b

File tree

3 files changed

+1
-59
lines changed

3 files changed

+1
-59
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Package: psidR
22
Type: Package
33
Title: Build Panel Data Sets from PSID Raw Data
44
Version: 2.3
5-
Date: 2024-09-23
5+
Date: 2024-11-05
66
Authors@R: person(given = "Florian",
77
family = "Oswald",
88
role = c("aut", "cre"),

R/build.panel.r

-29
Original file line numberDiff line numberDiff line change
@@ -25,35 +25,6 @@
2525
#' resulting \code{data.table}. the variable \code{pid} is the unique person identifier, constructed from ID1968 and pernum
2626
#' @export
2727
#' @examples
28-
#' \dontrun{
29-
#' # ################################################
30-
#' # Real-world example: not tested during
31-
#' # R CMD CHECK it because takes long.
32-
#' # Build panel with income, wage, age and education
33-
#' # optionally: add wealth supplements!
34-
#' # ################################################
35-
#'
36-
#' # The package is installed with a list of variables
37-
#' # Alternatively, search for names with \code{\link{getNamesPSID}}
38-
#' # This is the body of function build.psid()
39-
#' r = system.file(package="psidR")
40-
#' if (small){
41-
#' f = fread(file.path(r,"psid-lists","famvars-small.txt"))
42-
#' i = fread(file.path(r,"psid-lists","indvars-small.txt"))
43-
#' } else {
44-
#' f = fread(file.path(r,"psid-lists","famvars.txt"))
45-
#' i = fread(file.path(r,"psid-lists","indvars.txt"))
46-
#' }
47-
#' setkey(i,"name")
48-
#' setkey(f,"name")
49-
#' i = dcast(i[,list(year,name,variable)],year~name)
50-
#' f = dcast(f[,list(year,name,variable)],year~name)
51-
#' # executing this function will download data. takes long.
52-
#' d = build.panel(datadir="~/datasets/psid/",fam.vars=f,
53-
#' ind.vars=i,
54-
#' heads.only =TRUE,sample="SRC",
55-
#' design="all")
56-
#' }
5728
#'
5829
#' # ######################################
5930
#' # reproducible example on artifical data.

man/build.panel.Rd

-29
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)