Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
elbersb committed Jun 15, 2018
1 parent cb5fbbc commit 8ce5093
Show file tree
Hide file tree
Showing 13 changed files with 21 additions and 83 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
^codecov\.yml$
^\.travis\.yml$
^render_README\.R$
^docs$
4 changes: 2 additions & 2 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#' Fake dataset used for examples. Loosely based on data provided by
#' the National Center for Education Statistics, Common Core of Data,
#' with information on U.S. primary schools in three U.S. states.
#' The original data can be downloaded free of charge at https://nces.ed.gov/ccd/.
#' The original data can be downloaded at \url{https://nces.ed.gov/ccd/}.
#'
#' @format A data frame with 8,142 rows and 5 variables:
#' \describe{
Expand All @@ -20,7 +20,7 @@
#' Fake dataset used for examples. Loosely based on data provided by
#' the National Center for Education Statistics, Common Core of Data,
#' with information on U.S. primary schools in three U.S. states.
#' The original data can be downloaded free of charge at https://nces.ed.gov/ccd/.
#' The original data can be downloaded at \url{https://nces.ed.gov/ccd/}.
#'
#' @format A data frame with 8,013 rows and 5 variables:
#' \describe{
Expand Down
17 changes: 1 addition & 16 deletions R/segregation.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,7 @@
#' Provides tools to decompose the measures by groups and units, and by within
#' and between terms. Includes standard error estimation by bootstrapping.
#'
#' @section Methods:
#'
#' \itemize{
#' \item{}{\code{\link{mutual_total}} Computes M and H.}
#' \item{}{\code{\link{mutual_within}} Computes detailed within-category segregation.}
#' \item{}{\code{\link{mutual_local}} Computes local segregation based on M.}
#' \item{}{\code{\link{mutual_difference}} Decomposes difference between two M indices.}
#' \item{}{\code{\link{entropy}} Calculates the entropy of a distribution.}
#' \item{}{\code{\link{ipf}} Uses iterative proportional fitting to adjust
#' the marginal distributions in one dataset to those of another dataset.}
#' }
#' @section Data:
#'
#' \itemize{
#' \item{}{\code{\link{schools00}} and \code{\link{schools05}} Example datasets.}
#' }
#' @seealso \url{https://elbersb.de/segregation}
#'
#' @docType package
#' @name segregation
Expand Down
8 changes: 2 additions & 6 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ mutual_difference(schools00, schools05, group = "race", unit = "school",
weight = "n", method = "ipf")
```

Find more information in the [documentation](https://elbersb.de/segregation).

## How to install

To install the package from CRAN, use
Expand All @@ -93,12 +95,6 @@ To install the development version, use
devtools::install_github("elbersb/segregation")
```

To access the documentation ([PDF](https://cran.r-project.org/web/packages/segregation/segregation.pdf)), type

```{r eval=FALSE}
?segregation
```

## Papers using the Mutual information index

(list incomplete)
Expand Down
11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ mutual_difference(schools00, schools05, group = "race", unit = "school",
#> structural 0.00318
```

Find more information in the
[documentation](https://elbersb.de/segregation).

## How to install

To install the package from CRAN, use
Expand All @@ -121,14 +124,6 @@ To install the development version, use
devtools::install_github("elbersb/segregation")
```

To access the documentation
([PDF](https://cran.r-project.org/web/packages/segregation/segregation.pdf)),
type

``` r
?segregation
```

## Papers using the Mutual information index

(list incomplete)
Expand Down
3 changes: 1 addition & 2 deletions docs/index.html

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

4 changes: 2 additions & 2 deletions docs/reference/schools00.html

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

4 changes: 2 additions & 2 deletions docs/reference/schools05.html

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

24 changes: 3 additions & 21 deletions docs/reference/segregation.html

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

2 changes: 1 addition & 1 deletion man/schools00.Rd

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

2 changes: 1 addition & 1 deletion man/schools05.Rd

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

23 changes: 2 additions & 21 deletions man/segregation.Rd

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

1 change: 0 additions & 1 deletion render_README.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ rmarkdown::render("README.Rmd",
html_preview = FALSE))

pkgdown::build_site()

0 comments on commit 8ce5093

Please sign in to comment.