Learn R Programming

⚠️There's a newer version (0.7.6) of this package.Take me there.

statar (version 0.5.0)

Tools Inspired by Stata to Manipulate Tabular Data

Description

A set of tools inspired by Stata to explore data.frames (summarize, tabulate, xtile, pctile, binscatter, elapsed quarters/month, lead/lag).

Copy Link

Version

Install

install.packages('statar')

Monthly Downloads

718

Version

0.5.0

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Matthieu Gomez

Last Published

January 1st, 2016

Functions in statar (0.5.0)

find_duplicates

returns a data.frame with duplicated rows
tlead-tlag

lead and lag with respect to a time variable
count

Count number of non missing observations
tab

Returns cross tabulation
tag

Creates a vector of zero except for one subscript
statar

A package for applied research
pctile

Weighted quantile of type 2 (similar to Stata _pctile)
tempname

Create unique names within a list, a data.frame, or an environment
winsorize

Winsorize a numeric vector
is.panel

Check whether a data.frame is a panel
join

Join two data frames together
stat_binmean

Plot the mean of y over the mean of x within bins of x.
sum_up

Gives summary statistics (corresponds to Stata command summarize)
xtile

Bin variable in groups (similar to Stata xtile)
elapsed

Elapsed dates (monthly, quarterly)