Learn R Programming

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

Ecfun (version 0.1-7)

Functions for Ecdat

Description

Functions to update data sets in Ecdat and to create, manipulate, plot and analyze those and similar data sets.

Copy Link

Version

Install

install.packages('Ecfun')

Monthly Downloads

2,670

Version

0.1-7

License

GPL (>= 2)

Maintainer

Spencer Graves

Last Published

May 8th, 2016

Functions in Ecfun (0.1-7)

readFinancialCrisisFiles

banking crisis data and function to read financial crisis files
Arrows

Draw arrows between pairs of points.
pmatch2

Value matching or partial matching
createX2matchY

Create X to match Y
financialCrisisFiles

Files containing financial crisis data
sign

Sign function with zero option
parseCommas

Convert character string with Dollar signs and commas to numerics
readUSsenate

Read the list of elected officials in the United States Senate
qqnorm2

Normal Probability Plot with Multiple Symbols
BoxCox

Box-Cox power transformation and its inverse
countsByYear

Allocate totals by year
missing0

Missing or length 0
readUShouse

Read the list of representatives in the United States House of Representatives
matchQuote

Match isolated quotes across records
countByYear

Allocate a total by year
qqnorm2s

Normal Probability Plot with Multiple Lines and Multiple Symbols
mergeUShouse.senate

Expand a dataset on some members of the US Congress to the entire membership
readDates3to1

read.csv with Dates in 3 columns
camelParse

Split a character string where a capital letter follows a lowercase letter
strsplit1

Split the first field
truncdist

Truncated distribution
parseName

Parse surname and given name
Date3to1

Convert three YMD vectors to a Date
interpChar

Interpolate between numbers or numbers of characters
readNIPA

Read a National Income and Product Accounts data table
readUSstateAbbreviations

Read a list of abbreviations of states and territories of the United States
asNumericDF

Coerce to numeric dropping commas and info after a blank
read.transpose

Read a data table in transpose form
Dates3to1

Convert 3-column dates in data to class Date
whichAeqB

Index of a single match
grepNonStandardCharacters

grep for nonstandard characters
classIndex

Convert class to an integer 1-8 and vice versa
recode2

bivariate recode
Interp

Interpolate between numbers or numbers of characters
checkNames

Check and return names
dateCols

Identify YMD names in a character vector
nchar0

Zero characters or NULL
Newdata

Create a new data.frame for predict
read.testURLs

Read a file produced by testURLs
canbeNumeric

Can a variable reasonably be coerced to numeric?
subNonStandardCharacters

sub nonstandard characters with replacement
interpPairs

interpolate between pairs of vectors in a list
logVarCor

Log-diagonal reprentation of a variance matrix
rgrep

Reverse grep
trimImage

Trim zero rows or columns from an object of class Image.
getElement2

Extract a named element from an object with a default
rasterImageAdj

rasterImage adjusting to zero distortion
mergeVote

Merge Roll Call Vote
subNonStandardNames

sub for nonstandard names
compareLengths

Compare the lengths of two objects
match.data.frame

Identify the row of y best matching each row of x
matchName

Match surname and givenName in a table
Ping

ping a Uniform resource locator (URL)
testURLs

Test URLs for intermittent download problems
UShouse.senate

Create a list of members of the US House and Senate
as.Date1970

Date from a number of days since the start of 1970.
createMessage

Compose a message as a single substring from a character vector
parseDollars

Convert character string with Dollar signs and commas to numerics
readCookPVI

Read Cook Partisan Voting Index
USsenateClass

Election Class given state and surname of a US Senator