Skip to content

Commit

Permalink
crimedatasets pkgdown website
Browse files Browse the repository at this point in the history
  • Loading branch information
lightbluetitan committed Dec 2, 2024
1 parent 0b401ac commit 911c7cf
Show file tree
Hide file tree
Showing 104 changed files with 27,110 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
^\.Rproj\.user$
^doc$
^Meta$
^_pkgdown\.yml$
^docs$
^pkgdown$
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
inst/doc
/doc/
/Meta/

2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Version: 0.1.0
Maintainer: Renzo Caceres Rossi <arenzocaceresrossi@gmail.com>
Description: A comprehensive collection of datasets exclusively focused on crimes, criminal activities, and related topics.
This package serves as a valuable resource for researchers, analysts, and students interested in crime analysis,
criminology, and socio-economic studies related to criminal behavior. Datasets span global and local contexts,
criminology, social and economic studies related to criminal behavior. Datasets span global and local contexts,
with a mix of tabular and spatial data.
License: GPL-3
URL: https://github.com/lightbluetitan/crimedatasets
Expand Down
59 changes: 59 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# crimedatasets

The `crimedatasets` package provides a comprehensive collection of datasets exclusively focused on crimes, criminal activities, and related topics.
This package serves as a valuable resource for researchers, analysts, and students interested in crime analysis, criminology, and socio-economic studies related to criminal behavior.

The datasets included span global and local contexts, offering both tabular and spatial data.
Each dataset is named with a suffix indicating its structure or type, making it easier to identify and work with the data.

## Installation

You can install the `crimedatasets` package from CRAN with the following R function:


```R

install.packages("crimedatasets")


```

## Usage

After installation, you can load the package and begin exploring the datasets. The consistent naming convention helps you easily understand the structure of each dataset:

- `_tbl_df`: Tibble.
- `_table`: Table.
- `_sf`: Simple Features (spatial data).
- `_ts`: Time series.

### Example Code:

```R
# Load the package
library(crimedatasets)

# Load a dataset
data("Abilene_tbl_df")

# View the dataset
head(Abilene_tbl_df)

# Load another dataset
data("nz_murders_sf")

# Summary of the spatial dataset
summary(nz_murders_sf)


```

## Example Datasets

Here are some example datasets included in the `crimedatasets` package:

- `Abilene_tbl_df`: Crime Records of Abilene, Texas, USA (_tbl_df for tibble).
- `CyberSecurityBreaches_df`: Cybersecurity Breaches Reported to US Health Department (_df for data frame).
- `TerrorismGlobal_table`: Global Terrorism Database (GTD) Yearly Summaries (_table for tabular data).
- `nz_murders_sf`: Murders in New Zealand (2004 - 2019) (_sf for spatial data).
- `wmurders_ts`: Annual Female Murder Rate in the USA (1950-2004) (_ts for time series).
4 changes: 4 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
url: ~
template:
bootstrap: 5

81 changes: 81 additions & 0 deletions docs/404.html

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

Binary file added docs/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 911c7cf

Please sign in to comment.