RDocumentation
Moon
Learn R
Search all packages and functions
⚠️
There's a newer version (0.7.6) of this package.
Take me there.
statar (version 0.6.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
Copy
Link to current version
Version
Version
0.7.6
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.5
0.6.4
0.6.2
0.6.1
0.6.0
0.5.0
0.4.0
0.3.0
0.2
0.1.3
0.1.2
0.1.1
Down Chevron
Install
install.packages('statar')
Monthly Downloads
1,520
Version
0.6.0
License
GPL-2
Issues
3
Pull Requests
0
Stars
51
Forks
13
Repository
https://github.com/matthieugomez/statar
Maintainer
Matthieu Gomez
Last Published
January 20th, 2016
Functions in statar (0.6.0)
Search functions
pctile
Weighted quantile of type 2 (similar to Stata _pctile)
tlead-tlag
lead and lag with respect to a time variable
find_duplicates
returns a data.frame with duplicated rows
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)
winsorize
Winsorize a numeric vector
fill_gap
Add rows corresponding to gaps in some variable
count
Count number of non missing observations
tempname
Create unique names within a list, a data.frame, or an environment
elapsed
Elapsed dates (monthly, quarterly)
join
Join two data frames together
xtile
Bin variable in groups (similar to Stata xtile)
is.panel
Check whether a data.frame is a panel
statar
A package for applied research
tab
Returns cross tabulation