Ecfun: Functions for Ecdat

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

Install the latest version of this package by entering the following in R:
AuthorSpencer Graves <>
Date of publication2016-05-08 09:48:28
MaintainerSpencer Graves <>
LicenseGPL (>= 2)

View on CRAN

Man pages

Arrows: Draw arrows between pairs of points.

as.Date1970: Date from a number of days since the start of 1970.

asNumericDF: Coerce to numeric dropping commas and info after a blank

BoxCox: Box-Cox power transformation and its inverse

camelParse: Split a character string where a capital letter follows a...

canbeNumeric: Can a variable reasonably be coerced to numeric?

checkNames: Check and return names

classIndex: Convert class to an integer 1-8 and vice versa

compareLengths: Compare the lengths of two objects

countByYear: Allocate a total by year

countsByYear: Allocate totals by year

createMessage: Compose a message as a single substring from a character...

createX2matchY: Create X to match Y

Date3to1: Convert three YMD vectors to a Date

dateCols: Identify YMD names in a character vector

Dates3to1: Convert 3-column dates in data to class Date

financialCrisisFiles: Files containing financial crisis data

getElement2: Extract a named element from an object with a default

grepNonStandardCharacters: grep for nonstandard characters

Interp: Interpolate between numbers or numbers of characters

interpChar: Interpolate between numbers or numbers of characters

interpPairs: interpolate between pairs of vectors in a list

logVarCor: Log-diagonal reprentation of a variance matrix Identify the row of 'y' best matching each row of 'x'

matchName: Match surname and givenName in a table

matchQuote: Match isolated quotes across records

mergeUShouse.senate: Expand a dataset on some members of the US Congress to the...

mergeVote: Merge Roll Call Vote

missing0: Missing or length 0

nchar0: Zero characters or NULL

Newdata: Create a new data.frame for predict

parseCommas: Convert character string with Dollar signs and commas to...

parseDollars: Convert character string with Dollar signs and commas to...

parseName: Parse surname and given name

Ping: ping a Uniform resource locator (URL)

pmatch2: Value matching or partial matching

qqnorm2: Normal Probability Plot with Multiple Symbols

qqnorm2s: Normal Probability Plot with Multiple Lines and Multiple...

rasterImageAdj: rasterImage adjusting to zero distortion

readCookPVI: Read Cook Partisan Voting Index

readDates3to1: read.csv with Dates in 3 columns

readFinancialCrisisFiles: banking crisis data and function to read financial crisis...

readNIPA: Read a National Income and Product Accounts data table

read.testURLs: Read a file produced by testURLs

read.transpose: Read a data table in transpose form

readUShouse: Read the list of representatives in the United States House...

readUSsenate: Read the list of elected officials in the United States...

readUSstateAbbreviations: Read a list of abbreviations of states and territories of the...

recode2: bivariate recode

rgrep: Reverse grep

sign: Sign function with zero option

strsplit1: Split the first field

subNonStandardCharacters: sub nonstandard characters with replacement

subNonStandardNames: sub for nonstandard names

testURLs: Test URLs for intermittent download problems

trimImage: Trim zero rows or columns from an object of class 'Image'.

truncdist: Truncated distribution

UShouse.senate: Create a list of members of the US House and Senate

USsenateClass: Election Class given state and surname of a US Senator

whichAeqB: Index of a single match


Arrows Man page
as.Date1970 Man page
asNumericChar Man page
asNumericDF Man page
BoxCox Man page
camelParse Man page
canbeNumeric Man page
checkNames Man page
classIndex Man page
compareLengths Man page
countByYear Man page
countsByYear Man page
createMessage Man page
createX2matchY Man page
Date3to1 Man page
dateCols Man page
Dates3to1 Man page
dtruncdist Man page
financialCrisisFiles Man page
getElement2 Man page
grepNonStandardCharacters Man page
index2class Man page
Interp Man page
interpChar Man page
InterpChar Man page
Interp.character Man page
interpChar.default Man page
interpChar.list Man page
InterpChkArgs Man page
Interp.complex Man page
Interp.default Man page
Interp.integer Man page
Interp.logical Man page
InterpNum Man page
Interp.numeric Man page
interpPairs Man page Man page
interpPairs.function Man page
interpPairs.list Man page
Interp.raw Man page
invBoxCox Man page
lines.qqnorm2 Man page
logVarCor Man page Man page
matchName Man page
matchName1 Man page
matchQuote Man page
mergeUShouse.senate Man page
mergeVote Man page
missing0 Man page
nchar0 Man page
Newdata Man page
parseCommas Man page Man page
parseCommas.default Man page
parseDollars Man page
parseName Man page
Ping Man page
plot.qqnorm2 Man page
plot.qqnorm2s Man page
pmatch2 Man page
points.qqnorm2 Man page
ptruncdist Man page
qqnorm2 Man page
qqnorm2s Man page
qtruncdist Man page
rasterImageAdj Man page
readCookPVI Man page
readCookPVI. Man page
readDates3to1 Man page
readFinancialCrisisFiles Man page
readNIPA Man page
read.testURLs Man page
read.transpose Man page
readUShouse Man page
readUSsenate Man page
readUSstateAbbreviations Man page
recode2 Man page
rgrep Man page
rtruncdist Man page
sign Man page
strsplit1 Man page
subNonStandardCharacters Man page
subNonStandardNames Man page
testURLs Man page
trimImage Man page
truncdist Man page
UShouse.senate Man page
USsenateClass Man page
whichAeqB Man page


R/readUSsenate.R R/createX2matchY.R R/asNumericDF.R R/missing0.R R/dtruncdist.R R/Arrows.R R/rtruncdist.R R/readDates3to1.R R/readCookPVI.R R/interpChar.R R/countByYear.R R/ping.R R/financialCrisisFiles.R R/pmatch2.R R/read.transpose.R R/dateCols.R R/subNonStandardCharacters.R R/ptruncdist.R R/testURLs.R R/getElement2.R R/qqnorm2.R R/whichAeqB.R R/interpPairs.list.R R/mergeUShouse.senate.R R/camelParse.R R/readFinancialCrisisFiles.R R/sign.R R/subNonStandardNames.R R/rgrep.R R/matchName1.R R/qtruncdist.R R/readNIPA.R R/ R/Date3to1.R R/read.testURLs.R R/strsplit1.R R/Dates3to1.R R/grepNonStandardCharacters.R R/as.Date1970.R R/matchName.R R/trimImage.R R/parseDollars.R R/logVarCor.R R/compareLengths.R R/nchar0.R R/recode2.R R/checkNames.R R/matchQuote.R R/createMessage.R R/UShouse.senate.R R/interpPairs.R R/raseterImageAdj.R R/canbeNumeric.R R/Newdata.R R/mergeVote.R R/Interp.R R/USsenateClass.R R/qqnorm2s.R R/classIndex.R R/readUShouse.R R/parseCommas.R R/readUSstateAbbreviations.R R/parseName.R R/countsByYear.R R/BoxCox.R
man/parseDollars.Rd man/readDates3to1.Rd man/readNIPA.Rd man/checkNames.Rd man/nchar0.Rd man/rasterImageAdj.Rd man/getElement2.Rd man/subNonStandardNames.Rd man/matchName.Rd man/whichAeqB.Rd man/testURLs.Rd man/parseName.Rd man/createMessage.Rd man/readFinancialCrisisFiles.Rd man/USsenateClass.Rd man/matchQuote.Rd man/mergeVote.Rd man/readCookPVI.Rd man/qqnorm2s.Rd man/qqnorm2.Rd man/Dates3to1.Rd man/mergeUShouse.senate.Rd man/trimImage.Rd man/createX2matchY.Rd man/read.transpose.Rd man/Ping.Rd man/BoxCox.Rd man/readUSsenate.Rd man/pmatch2.Rd man/Interp.Rd man/interpPairs.Rd man/strsplit1.Rd man/parseCommas.Rd man/Newdata.Rd man/grepNonStandardCharacters.Rd man/compareLengths.Rd man/countsByYear.Rd man/as.Date1970.Rd man/canbeNumeric.Rd man/sign.Rd man/missing0.Rd man/Arrows.Rd man/countByYear.Rd man/read.testURLs.Rd man/subNonStandardCharacters.Rd man/logVarCor.Rd man/ man/readUShouse.Rd man/interpChar.Rd man/recode2.Rd man/Date3to1.Rd man/dateCols.Rd man/readUSstateAbbreviations.Rd man/camelParse.Rd man/classIndex.Rd man/truncdist.Rd man/UShouse.senate.Rd man/financialCrisisFiles.Rd man/rgrep.Rd man/asNumericDF.Rd

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.