Learn R Programming

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

6,828

Version

0.3-2

License

GPL (>= 2)

Maintainer

Last Published

October 9th, 2022

Functions in Ecfun (0.3-2)

Ping

ping a Uniform resource locator (URL)
camelParse

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

Interpolate between numbers or numbers of characters
BoxCox

Box-Cox power transformation and its inverse
as.Date1970

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

Draw arrows between pairs of points.
Date3to1

Convert three YMD vectors to a Date
Newdata

Create a new data.frame for predict
asNumericDF

Coerce to numeric dropping commas and info after a blank
Dates3to1

Convert 3-column dates in data to class Date
confint.var

Confidence interval for sample variance or standard deviation
canbeNumeric

Can a variable reasonably be coerced to numeric?
compareLengths

Compare the lengths of two objects
compareOverlap

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

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

Allocate a total by year
createMessage

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

Create X to match Y
countsByYear

Allocate totals by year
checkNames

Check and return names
getElement2

Extract a named element from an object with a default
logVarCor

Log-diagonal representation of a variance matrix
interpPairs

interpolate between pairs of vectors in a list
dateCols

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

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

Interpolate between numbers or numbers of characters
grepNonStandardCharacters

grep for nonstandard characters
deletedFunctions

Functions deleted from the Ecfun package
matchQuote

Match isolated quotes across records
matchName

Match surname and givenName in a table
missing0

Missing or length 0
nchar0

Zero characters or NULL
qqnorm2s

Normal Probability Plot with Multiple Lines and Multiple Symbols
parseDollars

Convert character string with Dollar signs and commas to numerics
pmatch2

Value matching or partial matching
parseCommas

Convert character string with Dollar signs and commas to numerics
qqnorm2

Normal Probability Plot with Multiple Symbols
mergeVote

Merge Roll Call Vote
parseName

Parse surname and given name
pmatchIC

pmatch ignoring case
readNIPA

Read a National Income and Product Accounts data table
qqnorm2t

Normal Probability Plot with Multiple Lines and Multiple Symbols
rgrep

Reverse grep
read.transpose

Read a data table in transpose form
recode2

bivariate recode
readDates3to1

read.csv with Dates in 3 columns
simulate.glm

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

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

Sign function with zero option
rasterImageAdj

rasterImage adjusting to zero distortion
subNonStandardNames

sub for nonstandard names
whichAeqB

Index of a single match
truncdist

Truncated distribution
strsplit1

Split the first field
trimImage

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

sub nonstandard characters with replacement