Learn R Programming

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

Ecfun

2020-01-23

testURLs and read.testURLs have been removed, because it wasn't clear that anyone was using them, and more modern tools are available from:
http://www.measurementlab.net/

Thanks to Iñaki Ucar, Adam H Sparks, and Roy Mendelssohn for their replies to a question posted to R-Devel helped me understand what I needed to do to fix problems identified in the CRAN Checks.

Copy Link

Version

Install

install.packages('Ecfun')

Monthly Downloads

6,828

Version

0.2-2

License

GPL (>= 2)

Maintainer

Last Published

February 3rd, 2020

Functions in Ecfun (0.2-2)

UShouse.senate

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

Create a new data.frame for predict
USsenateClass

Election Class given state and surname of a US Senator
Date3to1

Convert three YMD vectors to a Date
Dates3to1

Convert 3-column dates in data to class Date
Arrows

Draw arrows between pairs of points.
camelParse

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

Coerce to numeric dropping commas and info after a blank
Ping

ping a Uniform resource locator (URL)
canbeNumeric

Can a variable reasonably be coerced to numeric?
BoxCox

Box-Cox power transformation and its inverse
compareLengths

Compare the lengths of two objects
confint.var

Confidence interval for sample variance or standard deviation
classIndex

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

Interpolate between numbers or numbers of characters
checkNames

Check and return names
nchar0

Zero characters or NULL
logVarCor

Log-diagonal representation of a variance matrix
as.Date1970

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

Files containing financial crisis data
countByYear

Allocate a total by year
interpPairs

interpolate between pairs of vectors in a list
grepNonStandardCharacters

grep for nonstandard characters
qqnorm2t

Normal Probability Plot with Multiple Lines and Multiple Symbols
parseName

Parse surname and given name
interpChar

Interpolate between numbers or numbers of characters
parseDollars

Convert character string with Dollar signs and commas to numerics
parseCommas

Convert character string with Dollar signs and commas to numerics
countsByYear

Allocate totals by year
qqnorm2s

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

Read a data table in transpose form
rasterImageAdj

rasterImage adjusting to zero distortion
getElement2

Extract a named element from an object with a default
createX2matchY

Create X to match Y
simulate.glm

A "simulate" method for a glm object
simulate.bic.glm

A "simulate" method for a BMA::bic.glm object
subNonStandardNames

sub for nonstandard names
pmatch2

Value matching or partial matching
createMessage

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

Merge Roll Call Vote
dateCols

Identify YMD names in a character vector
match.data.frame

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

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

Read a National Income and Product Accounts data table
readUSsenate

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

Missing or length 0
readUShouse

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

Match surname and givenName in a table
matchQuote

Match isolated quotes across records
qqnorm2

Normal Probability Plot with Multiple Symbols
readDates3to1

read.csv with Dates in 3 columns
mergeUShouse.senate

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

banking crisis data and function to read financial crisis files
readCookPVI

Read Cook Partisan Voting Index
readUSstateAbbreviations

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

bivariate recode
strsplit1

Split the first field
subNonStandardCharacters

sub nonstandard characters with replacement
rgrep

Reverse grep
truncdist

Truncated distribution
sign

Sign function with zero option
whichAeqB

Index of a single match