Learn R Programming

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

Ecfun

Functions and vignettes to update a few data sets in 'Ecdat' and to create, manipulate, plot, and analyze some of those and similar data sets.

2021-06-29

All read* functions in this package have been removed, because it wasn't clear if anyone was using them. Other functions that called an Ecfun::read* function by default were also deleted, especially UShouse.senate, USsenateClass, and mergeUShouse.senate. These all scraped websites, and the demand for them seemed not to justify the work of maintaining them.

2021-05-20

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

8,262

Version

0.2-5

License

GPL (>= 2)

Maintainer

Spencer Graves

Last Published

June 30th, 2021

Functions in Ecfun (0.2-5)

Ping

ping a Uniform resource locator (URL)
pmatch2

Value matching or partial matching
canbeNumeric

Can a variable reasonably be coerced to numeric?
readNIPA

Read a National Income and Product Accounts data table
pmatchIC

pmatch ignoring case
recode2

bivariate recode
Date3to1

Convert three YMD vectors to a Date
confint.var

Confidence interval for sample variance or standard deviation
Dates3to1

Convert 3-column dates in data to class Date
compareOverlap

Compare y between newDat and refDat for shared values of x
deletedFunctions

Functions deleted from the Ecfun package
dateCols

Identify YMD names in a character vector
checkNames

Check and return names
Interp

Interpolate between numbers or numbers of characters
Newdata

Create a new data.frame for predict
countByYear

Allocate a total by year
countsByYear

Allocate totals by year
getElement2

Extract a named element from an object with a default
grepNonStandardCharacters

grep for nonstandard characters
parseName

Parse surname and given name
rasterImageAdj

rasterImage adjusting to zero distortion
qqnorm2t

Normal Probability Plot with Multiple Lines and Multiple Symbols
parseDollars

Convert character string with Dollar signs and commas to numerics
strsplit1

Split the first field
subNonStandardCharacters

sub nonstandard characters with replacement
mergeVote

Merge Roll Call Vote
missing0

Missing or length 0
rgrep

Reverse grep
sign

Sign function with zero option
camelParse

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

Coerce to numeric dropping commas and info after a blank
compareLengths

Compare the lengths of two objects
classIndex

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

Match surname and givenName in a table
matchQuote

Match isolated quotes across records
qqnorm2

Normal Probability Plot with Multiple Symbols
qqnorm2s

Normal Probability Plot with Multiple Lines and Multiple Symbols
simulate.bic.glm

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

Draw arrows between pairs of points.
BoxCox

Box-Cox power transformation and its inverse
simulate.glm

A "simulate" method for a glm object
interpChar

Interpolate between numbers or numbers of characters
truncdist

Truncated distribution
whichAeqB

Index of a single match
nchar0

Zero characters or NULL
interpPairs

interpolate between pairs of vectors in a list
parseCommas

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

Read a data table in transpose form
readDates3to1

read.csv with Dates in 3 columns
subNonStandardNames

sub for nonstandard names
trimImage

Trim zero rows or columns from an object of class Image.
match.data.frame

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

Log-diagonal representation of a variance matrix
createMessage

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

Create X to match Y
as.Date1970

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