Learn R Programming

rSPARCS (version 0.1.1)

Sites, Population, and Records Cleaning Skills

Description

Data cleaning including 1) generating datasets for time-series and case-crossover analyses based on raw hospital records, 2) linking individuals to an areal map, 3) picking out cases living within a buffer of certain size surrounding a site, etc. For more information, please refer to Zhang W,etc. (2018) .

Copy Link

Version

Install

install.packages('rSPARCS')

Monthly Downloads

259

Version

0.1.1

License

GPL-3

Maintainer

Wangjian Zhang

Last Published

November 21st, 2023

Functions in rSPARCS (0.1.1)

pick.cases

Select cases within certain distance around a site
dupl.readm

Identify Duplicates and Re-admissions
raster_extract

Extract Values from a Raster Map
DBFgeocode

Create a dbf File for Geocoding
FIPS.name

Determine the Area that Each Record Is Located in
case.series

Generate the Case Series
CXover.data

Generate the Dataset for Case Crossover Analysis
desc.comp

Generate a Descriptive Table
mediationking

Mediating Analysis
exposure_lag

Calculate Individual and Cumulative Lags for Exposure