Learn R Programming

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

statar (version 0.6.1)

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

506

Version

0.6.1

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Matthieu Gomez

Last Published

May 20th, 2016

Functions in statar (0.6.1)

count

Count number of non missing observations
statar

A package for applied research
sum_up

Gives summary statistics (corresponds to Stata command summarize)
tempname

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

Bin variable in groups (similar to Stata xtile)
tab

Returns cross tabulation
tlead-tlag

lead and lag with respect to a time variable
join

Join two data frames together
find_duplicates

returns a data.frame with duplicated rows
is.panel

Check whether a data.frame is a panel
stat_binmean

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

Add rows corresponding to gaps in some variable
elapsed

Elapsed dates (monthly, quarterly)
winsorize

Winsorize a numeric vector
pctile

Weighted quantile of type 2 (similar to Stata _pctile)