Miscellaneous data sets [Engineering Economics, Environmental/ Water Resources Engineering, US Presidential Elections].
R data package with miscellaneous data sets [Engineering Economics, Environmental/Water Resources Engineering, US Presidential Elections].
This package currently contains 26 datasets:
nchannel: Manning's n for Channels (Chow, 1959)
npartfull: Manning's n for Closed Conduits Flowing Partly Full (Chow, 1959)
nmetalpipe: Manning's n for Corrugated Metal Pipe (AISI, 1980)
r* (3 data sets): Nominal Interest Rate Tables (Engineering Economics)
i* (19 data sets): Effective Interest Rate Tables (Engineering Economics)
pres_elect1: US Presidential Elections (Wikipedia)
library(install.load)load_package("iemisc", "iemiscdata", "data.table", "dplyr", "rpivotTable")# load needed packages using the load_package function from the install.load# package (it is assumed that you have already installed these packages)# Example 1# Future value given present valueFgivenP(8330, 6, 10, frequency = "annual") # the interest rate is 10%# orP <- 8330n <- 6P * i10[n, which(names(i10) == "F/P"), with = FALSE][]# use i10 for the 10 percent effective interest table values# n is the row number# which(names(i10) == "F/P"), with = FALSE provides the column number in a# data.table# [] provides the value of the vector# Example 2# Future value given annual value with continuously compounded interestFgivenAcont(4500, 5, 20) # 20% interest# orF <- 4500n <- 5F * r20[n, which(names(r20) == "F/A"), with = FALSE][]# use r20 for the 20 percent nominal interest table values# n is the row number# which(names(r20) == "F/A"), with = FALSE provides the column number in this# data.table# [] provides the value of the vector# Example 3# View the Manning's n data setsView(nchannel)View(nmetalpipe)View(npartfull)# Example 4# View the Wikipedia US Presidental Election Results TableView(pres_elect1)# The number of elections won by the Winners of the Presidential Election# using dplyr's count along with pipingpres_elect1 %>% count(Winner)# view the interactive pivot table of the whole tablerpivotTable(pres_elect1)# view the interactive pivot table using the Winner Party columnrpivotTable(pres_elect1, cols = "Winner Party")
This software is provided "AS IS." See the GPL License for more information.
iemiscdata is distributed under the GPL-3 (or later) license, as stated in the DESCRIPTION file. For more info, see the GNU General Public License (GPL) page.
ie2miscdataas suggested R packages
rmarkdownas suggested R packages