Learn R Programming

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

Ecfun (version 0.1-3)

Functions for Ecdat

Description

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

Copy Link

Version

Install

install.packages('Ecfun')

Monthly Downloads

2,670

Version

0.1-3

License

GPL (>= 2)

Maintainer

Spencer Graves

Last Published

November 27th, 2014

Functions in Ecfun (0.1-3)

readNIPA

Read a National Income and Product Accounts data table
interpPairs

interpolate between pairs of vectors in a list
readFinancialCrisisFiles

banking crisis data and function to read financial crisis files
parseName

Parse surname and given name
readUSsenate

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

Normal Probability Plot with Multiple Symbols
UShouse.senate

Create a list of members of the US House and Senate
missing0

Missing or length 0
as.Date1970

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

Merge Roll Call Vote
read.testURLs

Read a file produced by testURLs
matchQuote

Match isolated quotes across records
mergeUShouse.senate

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

Extract a named element from an object with a default
financialCrisisFiles

Files containing financial crisis data
whichAeqB

Index of a single match
asNumericDF

Coerce to numeric dropping commas and info after a blank
readUShouse

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

bivariate recode
strsplit1

Split the first field
grepNonStandardCharacters

grep for nonstandard characters
readUSstateAbbreviations

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

Compare the lengths of two objects
Interp

Interpolate between numbers or numbers of characters
Ping

ping a Uniform resource locator (URL)
parseDollars

Convert character string with Dollar signs and commas to numerics
createX2matchY

Create X to match Y
USsenateClass

Election Class given state and surname of a US Senator
camelParse

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

sub nonstandard characters with replacement
nchar0

Zero characters or NULL
interpChar

Interpolate between numbers or numbers of characters
createMessage

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

Test URLs for intermittent download problems
pmatch2

Value matching or partial matching
subNonStandardNames

sub for nonstandard names
rasterImageAdj

rasterImage adjusting to zero distortion
truncdist

Truncated distribution
checkNames

Check and return names
trimImage

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

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

Match surname and givenName in a table
qqnorm2s

Normal Probability Plot with Multiple Lines and Multiple Symbols
read.transpose

Read a data table in transpose form
readCookPVI

Read Cook Partisan Voting Index
parseCommas

Convert character string with Dollar signs and commas to numerics
Arrows

Draw arrows between pairs of points.
match.data.frame

Identify the row of y best matching each row of x