-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0b401ac
commit 911c7cf
Showing
104 changed files
with
27,110 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,6 @@ | |
^\.Rproj\.user$ | ||
^doc$ | ||
^Meta$ | ||
^_pkgdown\.yml$ | ||
^docs$ | ||
^pkgdown$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
inst/doc | ||
/doc/ | ||
/Meta/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
url: ~ | ||
template: | ||
bootstrap: 5 | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.