Rdocumentation
powered by
Learn R Programming
⚠️
There's a newer version (0.3-2) of this package.
Take me there.
Ecfun (version 0.2-0)
Functions for Ecdat
Description
Functions to update data sets in Ecdat and to create, manipulate, plot and analyze those and similar data sets.
Copy Link
Link to current version
Version
Version
0.3-2
0.3-1
0.3-0
0.2-6
0.2-5
0.2-4
0.2-2
0.2-0
0.1-7
0.1-6
0.1-4
0.1-3
0.1-2
0.1-0
Install
install.packages('Ecfun')
Monthly Downloads
6,828
Version
0.2-0
License
GPL (>= 2)
Maintainer
Spencer Graves
Last Published
February 25th, 2019
Functions in Ecfun (0.2-0)
Search all functions
canbeNumeric
Can a variable reasonably be coerced to numeric?
BoxCox
Box-Cox power transformation and its inverse
dateCols
Identify YMD names in a character vector
createX2matchY
Create X to match Y
compareLengths
Compare the lengths of two objects
readFinancialCrisisFiles
banking crisis data and function to read financial crisis files
readDates3to1
read.csv with Dates in 3 columns
classIndex
Convert class to an integer 1-8 and vice versa
getElement2
Extract a named element from an object with a default
financialCrisisFiles
Files containing financial crisis data
countsByYear
Allocate totals by year
createMessage
Compose a message as a single substring from a character vector
grepNonStandardCharacters
grep for nonstandard characters
mergeVote
Merge Roll Call Vote
read.transpose
Read a data table in transpose form
asNumericDF
Coerce to numeric dropping commas and info after a blank
camelParse
Split a character string where a capital letter follows a lowercase letter
missing0
Missing or length 0
readCookPVI
Read Cook Partisan Voting Index
confint.var
Confidence interval for sample variance or standard deviation
readUSsenate
Read the list of elected officials in the United States Senate
readUSstateAbbreviations
Read a list of abbreviations of states and territories of the United States
checkNames
Check and return names
parseCommas
Convert character string with Dollar signs and commas to numerics
matchName
Match surname and givenName in a table
match.data.frame
Identify the row of
y
best matching each row of
x
nchar0
Zero characters or NULL
pmatch2
Value matching or partial matching
interpChar
Interpolate between numbers or numbers of characters
qqnorm2
Normal Probability Plot with Multiple Symbols
parseDollars
Convert character string with Dollar signs and commas to numerics
subNonStandardCharacters
sub nonstandard characters with replacement
parseName
Parse surname and given name
subNonStandardNames
sub for nonstandard names
qqnorm2t
Normal Probability Plot with Multiple Lines and Multiple Symbols
qqnorm2s
Normal Probability Plot with Multiple Lines and Multiple Symbols
countByYear
Allocate a total by year
sign
Sign function with zero option
rasterImageAdj
rasterImage adjusting to zero distortion
read.testURLs
Read a file produced by testURLs
recode2
bivariate recode
strsplit1
Split the first field
rgrep
Reverse grep
whichAeqB
Index of a single match
truncdist
Truncated distribution
interpPairs
interpolate between pairs of vectors in a list
logVarCor
Log-diagonal reprentation of a variance matrix
matchQuote
Match isolated quotes across records
mergeUShouse.senate
Expand a dataset on some members of the US Congress to the entire membership
readNIPA
Read a National Income and Product Accounts data table
readUShouse
Read the list of representatives in the United States House of Representatives
testURLs
Test URLs for intermittent download problems
trimImage
Trim zero rows or columns from an object of class
Image
.
Ping
ping a Uniform resource locator (URL)
UShouse.senate
Create a list of members of the US House and Senate
Date3to1
Convert three YMD vectors to a Date
Dates3to1
Convert 3-column dates in data to class Date
as.Date1970
Date from a number of days since the start of 1970.
USsenateClass
Election Class given state and surname of a US Senator
Arrows
Draw arrows between pairs of points.
Interp
Interpolate between numbers or numbers of characters
Newdata
Create a new data.frame for predict