Learn R Programming

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

Ecfun (version 0.1-4)

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

8,176

Version

0.1-4

License

GPL (>= 2)

Maintainer

Spencer Graves

Last Published

January 27th, 2015

Functions in Ecfun (0.1-4)

checkNames

Check and return names
UShouse.senate

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

Normal Probability Plot with Multiple Symbols
as.Date1970

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

ping a Uniform resource locator (URL)
createMessage

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

Normal Probability Plot with Multiple Lines and Multiple Symbols
mergeVote

Merge Roll Call Vote
interpChar

Interpolate between numbers or numbers of characters
readCookPVI

Read Cook Partisan Voting Index
readUSsenate

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

Missing or length 0
USsenateClass

Election Class given state and surname of a US Senator
readFinancialCrisisFiles

banking crisis data and function to read financial crisis files
createX2matchY

Create X to match Y
readUShouse

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

Interpolate between numbers or numbers of characters
testURLs

Test URLs for intermittent download problems
pmatch2

Value matching or partial matching
financialCrisisFiles

Files containing financial crisis data
readUSstateAbbreviations

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

Convert character string with Dollar signs and commas to numerics
grepNonStandardCharacters

grep for nonstandard characters
subNonStandardCharacters

sub nonstandard characters with replacement
strsplit1

Split the first field
rasterImageAdj

rasterImage adjusting to zero distortion
mergeUShouse.senate

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

Convert character string with Dollar signs and commas to numerics
read.transpose

Read a data table in transpose form
readNIPA

Read a National Income and Product Accounts data table
whichAeqB

Index of a single match
interpPairs

interpolate between pairs of vectors in a list
match.data.frame

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

Parse surname and given name
compareLengths

Compare the lengths of two objects
camelParse

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

Coerce to numeric dropping commas and info after a blank
classIndex

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

sub for nonstandard names
BoxCox

Box-Cox power transformation and its inverse
trimImage

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

bivariate recode
truncdist

Truncated distribution
getElement2

Extract a named element from an object with a default
nchar0

Zero characters or NULL
read.testURLs

Read a file produced by testURLs
Arrows

Draw arrows between pairs of points.
matchQuote

Match isolated quotes across records
matchName

Match surname and givenName in a table