Skip to content

Commit 242876a

Browse files
committed
itemize -> describe
1 parent 5eb1e02 commit 242876a

File tree

10 files changed

+72
-69
lines changed

10 files changed

+72
-69
lines changed

R/BirthsDoc.R

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@
1313
#' @usage data(BirthsCDC)
1414
#' @format A data.frame with the following 8 variables.
1515
#'
16-
#' * `date` Date
17-
#' * `births` Number of births on `date` (integer)
18-
#' * `wday` Day of week (ordered factor)
19-
#' * `year` Year (integer)
20-
#' * `month` Month (integer)
21-
#' * `day_of_year` Day of year (integer)
22-
#' * `day_of_month` Day of month (integer)
23-
#' * `day_of_week` Day of week (integer)
16+
#' \describe{
17+
#' \item{\code{date}}{Date}
18+
#' \item{\code{births}{Number of births on `date` (integer)}
19+
#' \item{\code{wday}{Day of week (ordered factor)}
20+
#' \item{\code{year}{Year (integer)}
21+
#' \item{\code{month}{Month (integer)}
22+
#' \item{\code{day_of_year}{Day of year (integer)}
23+
#' \item{\code{day_of_month}{Day of month (integer)}
24+
#' \item{\code{day_of_week}{Day of week (integer)}
25+
#' }
2426
#'
2527
#' @source
2628
#' * Data source for `Births`: National Vital Statistics System natality data, as provided by
@@ -110,7 +112,7 @@ NA
110112
#' @usage data(Birthdays)
111113
#' @format
112114
#' A data frame with 374221 observations on the following variables.
113-
#' \itemize{
115+
#' \describe{
114116
#' \item{\code{state}}{state where child was born}
115117
#' \item{\code{year}}{year (1969-1988)}
116118
#' \item{\code{month}}{month (1-12)}

R/DimesDoc.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
#' Weight of dimes
2-
#'
2+
#'
33
#' Weights of a sample of dimes.
4-
#'
4+
#'
55
#' @docType data
66
#' @name Dimes
77
#' @usage data(Dimes)
88
#' @format A data frame with 30 observations on the following 2 variables.
9-
#' \itemize{
9+
#' \describe{
1010
#' \item{\code{mass}}{ mass of dime in grams}
1111
#' \item{\code{year}}{ year the dime was minted}
1212
#' }
1313
#' @source Data were collected by Michael Stob.
14-
#' @details These data were collected on a sample taken from a large sack of dimes
15-
#' for the purpose of estimating the total number of dimes in the sack based on the
14+
#' @details These data were collected on a sample taken from a large sack of dimes
15+
#' for the purpose of estimating the total number of dimes in the sack based on the
1616
#' weights of the individual dimes.
17-
#'
17+
#'
1818
NA
1919

R/GoosePermitsDoc.R

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
#' Goose Permit Study
2-
#'
3-
#' 237 hunters were each offered one of 11 cash amounts (bids) ranging from
4-
#' $1 to $200 in return for their goose permits. Hunters returned either their
2+
#'
3+
#' 237 hunters were each offered one of 11 cash amounts (bids) ranging from
4+
#' $1 to $200 in return for their goose permits. Hunters returned either their
55
#' permit or the cash.
6-
#'
6+
#'
77
#' @docType data
88
#' @name GoosePermits
99
#' @usage data(GoosePermits)
1010
#' @format A data.frame with 11 observations on the following 3 variables.
11-
#' \itemize{
11+
#' \describe{
1212
#' item{code{bid }}{amount offered for permit (US $) (numeric)}
1313
#' item{code{keep }}{number of hunters who kept the permit and returned the cash (numeric)}
1414
#' item{code{sell }}{number of hunters who kept the cash and returned the permit (numeric)}
1515
#' }
16-
#' @source Bishop and Heberlein.
17-
#' "Measuring values of extramarket goods: are indirect measures biased?".
18-
#' Amer. J. Agr. Econ. 61, 1979. Available at
16+
#' @source Bishop and Heberlein.
17+
#' "Measuring values of extramarket goods: are indirect measures biased?".
18+
#' Amer. J. Agr. Econ. 61, 1979. Available at
1919
#' <https://onlinelibrary.wiley.com/doi/abs/10.2307/3180348>
2020
### broken URL: \url{http://www1.udel.edu/johnmack/frec343/bishop_and_heberlein.pdf}.
21-
#'
22-
### This link seems to have broken:
21+
#'
22+
### This link seems to have broken:
2323
### See also \url{http://www.math.umt.edu/patterson/ProfileLikelihoodCI.pdf}.
24-
#'
24+
#'
2525
#' @examples
2626
#' data(GoosePermits)
27-
#'
28-
#' goose.model <-
27+
#'
28+
#' goose.model <-
2929
#' glm( cbind(keep, sell) ~ log(bid), data = GoosePermits, family = binomial())
3030
#' if (require(ggformula)) {
3131
#' y.hat <- makeFun(goose.model)
3232
#' gf_point( (keep/(keep+sell)) ~ bid, data = GoosePermits, ylim = c(0,1.05)) |>
33-
#' gf_fun(y.hat(b) ~ b, add = TRUE, color = "red", alpha = 0.5)
33+
#' gf_fun(y.hat(b) ~ b, add = TRUE, color = "red", alpha = 0.5)
3434
#' }
35-
#'
35+
#'
3636
NA

R/SaratogaHousesDoc.R

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#' Houses in Saratoga County (2006)
2-
#'
2+
#'
33
#' Data on houses in Saratoga County, New York, USA in 2006
4-
#'
4+
#'
55
#' @docType data
66
#' @name SaratogaHouses
77
#' @usage data(SaratogaHouses)
88
#' @format A data frame with 1728 observations on the following 16 variables.
9-
#' \itemize{
9+
#' \describe{
1010
#' \item{\code{price}}{ price (US dollars)}
1111
#' \item{\code{lotSize}}{ size of lot (acres)}
1212
#' \item{\code{age}}{ age of house (years)}
@@ -24,11 +24,11 @@
2424
#' \item{\code{newConstruction}}{ whether the property is a new construction}
2525
#' \item{\code{centralAir}}{ whether the house has central air}
2626
#' }
27-
#' @source
28-
#' Data collected by Candice Corvetti and used in the "Stat 101" case study
29-
#' "How much is a Fireplace Worth".
30-
#' See also
27+
#' @source
28+
#' Data collected by Candice Corvetti and used in the "Stat 101" case study
29+
#' "How much is a Fireplace Worth".
30+
#' See also
3131
#' <https://www.saratogacountyny.gov/departments/real-property-tax-service-agency/>
3232
NA
3333

34-
34+

Rbuildignore/Scratch/SAT.R

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
#' State by State SAT data in 1994 and 2010
2-
#'
1+
#' State by State SAT data in 1994 and 2010
2+
#'
33
#' SAT data for two years. The 1994 data was
4-
#' assembled for a statistics education journal article on the
4+
#' assembled for a statistics education journal article on the
55
#' link between SAT scores and measures of educational expenditures.
6-
#' The 2010 data has been put in the same format and concatenated to the 1994 format.
7-
#'
8-
#'
6+
#' The 2010 data has been put in the same format and concatenated to the 1994 format.
7+
#'
8+
#'
99
#' @name SAT
1010
#' @usage data(SAT)
1111
#' @docType data
12-
#' @format
12+
#' @format
1313
#' A data frame with 100 observations on the following variables.
14-
#' \itemize{
14+
#' \describe{
1515
#' \item{\code{state}}{a factor with names of each state}
1616
#' \item{\code{expend}}{expenditure per pupil in average daily attendance in
1717
#' public elementary and secondary schools, 1994-95 (in thousands of US dollars)}
@@ -25,21 +25,21 @@
2525
#' \item{\code{sat}}{average total SAT score}
2626
#' \item{\code{year}}{1994 or 2010 (as a character string)}
2727
#' }
28-
#'
29-
#' @source
28+
#'
29+
#' @source
3030
#' http://www.amstat.org/publications/jse/secure/v7n2/datasets.guber.cfm
31-
#'
32-
#' @references
31+
#'
32+
#' @references
3333
#' Deborah Lynn Guber, "Getting what you pay for: the debate over equity in
3434
#' public school expenditures" (1999), \emph{Journal of Statistics Education} 7(2).
3535
#' 2010 data collated by Jeff Witmer, Oberlin College
36-
#'
37-
#' @examples
36+
#'
37+
#' @examples
3838
#' data(SAT)
3939
#' SAT1994 <- subset(SAT, year=="1994") # the original SAT data
4040
#' if (require(lattice)) {
4141
#' xyplot(sat ~ expend, group=year, SAT)
42-
#' xyplot(sat ~ expend, group=year, SAT,
42+
#' xyplot(sat ~ expend, group=year, SAT,
4343
#' panel=function(x,y){grid.text(abbreviate(SAT$state, 3), x, y, default.units='native')})
44-
#' }
44+
#' }
4545
#' @keywords datasets

man/Birthdays.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/Births.Rd

Lines changed: 10 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/Dimes.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/GoosePermits.Rd

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/SaratogaHouses.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)