Learn R Programming

nsm3data

Additional Datasets to Accompany Hollander, Wolfe, and Chicken - Nonparametric Statistical Methods, Third Edition

Designed to add datasets which are used in the textbook.

THIS IS NOT a substitute for the textbook. You will almost certainly not be able to use anything in this package without having the textbook. Rather, this package is supplemental and is only designed to save you time that you would otherwise spend typing data into R or into a spreadsheet.

Installation

devtools method

Install the package from GitHub using the devtools library.

install.packages("devtools") # if it isn't already installed on your system
devtools::install_github("kim3-sudo/nsm3data")

After the package is installed, load the library into your current environment using the library() function.

library(nsm3data)

Naive method

To install the package from a release instead of with the devtools library, download the tar.gz file from the latest GitHub release. Then use

R CMD INSTALL nsm3data_X.Y.ZZZZ.tar.gz

in a terminal window, replacing X.Y.ZZZZ with the actual version number of the release. After the package is installed, load the library into yur current environment using the library() function.

Start R and type library(nsm3data) to see that it was installed, then try out some of its functions.

Usage

nsm3data contributes no additional functions, but it does have data and documentation. You need not specify the location of a dataset; simply use the data() function to read the data into your current environment after you have loaded the library.

All datasets have accompanying descriptions that have varying degrees of helpfulness. The package itself also has a help description. To view this description, use the help() function in R to view the object's documentation. For example, use

help(nsm3data)
help(pokeweed)

to view the pokeweed dataset documentation.

Table of Contents

nsm3data contains its own table of contents for the datasets that it includes. This table of contents may not be up-to-date, and we would appreciate your contributions if you find a dataset that doesn't have an entry. Instructions on how to do so are in CONTRIBUTING.md.

To view the table of contents, use the help() function in R to view the toc object documentation

help(toc)

Please note that the toc object doesn't actually exist in any meaningful way, so trying to reference it will result in just a message.

Loading Data

All datasets in nsm3data are provided as R datasets, so to use a dataset, simply use the data() function after you have loaded in the library. Consult the table of contents to find the name of a dataset. For example, use

data(pokeweed)

to load the pokeweed dataset into your environment. The data will be loaded in as a dataframe, so you can use any method to view or manipulate that data as you would any other dataframe, including using tidyr:: functions. If you are new to R, you need not fear overwriting the library datasets, since you are editing data that is in your own environment.

Get started with:

View(pokeweed)
head(pokeweed)
str(pokeweed)

Need help?

Please use the GitHub issues feature to get help. The maintainer encourages you to use the pink "question" label to get help.

Copy Link

Version

Install

install.packages('nsm3data')

Monthly Downloads

142

Version

0.1

License

GPL-2

Maintainer

Sejin Kim

Last Published

January 18th, 2022

Functions in nsm3data (0.1)

apcalcm

apcalcm
catheter

catheter
assembly

assembly
cenosphereresin

cenosphereresin
grouse

grouse
ciliarybeat

ciliarybeat
chorioamnion

chorioamnion
cotton

cotton
insecticide

insecticide
guinea

guinea
ironsup

ironsup
motivational

motivational
cysticerci

cysticerci
mucociliary

mucociliary
hemidiaphragms

hemidiaphragms
ratskin

ratskin
acidred

acidred
adaptation

adaptation
flux

flux
cloudseeding

cloudseeding
coatacidity

coatacidity
roundingfirst

roundingfirst
salivation

salivation
salaries

salaries
tremors

tremors
triglyceride

triglyceride
gizzard

gizzard
hebbwilliams

hebbwilliams
hepatitis

hepatitis
hamiltondepression

hamiltondepression
aircon

aircon
larvae

larvae
albumin

albumin
isomers

isomers
bleedingtime

bleedingtime
methyl

methyl
brainweight

brainweight
metabolic

metabolic
alcohol

alcohol
nsm3data

nsm3data
nursing

nursing
serumiron

serumiron
apcalcf

apcalcf
settlingvelocity

settlingvelocity
glucoseimpedance

glucoseimpedance
granulocytic

granulocytic
beakclapping

beakclapping
niacin

niacin
pokeweed

pokeweed
nasturtiums

nasturtiums
pollution

pollution
bedmaking

bedmaking
pine

pine
concrete

concrete
plasma.glucose

plasma.glucose
snowy

snowy
smokers

smokers
sodiumion

sodiumion
shelterbeltsnov

shelterbeltsnov
shelterbelts

shelterbelts
ddt

ddt
hydroxyproline

hydroxyproline
dewoxidant

dewoxidant
coronary

coronary
fastfood

fastfood
soiltemp

soiltemp
dogs

dogs
stockreturn

stockreturn
highschool

highschool
hodgkins

hodgkins
stuttering

stuttering
tapeworms

tapeworms
liver

liver
toc

toc
hypnotic

hypnotic
oxidant

oxidant
tubercle

tubercle
mayfly

mayfly
ozone

ozone
prednisone

prednisone
proline

proline
leadpoisoning

leadpoisoning
squirrelmonkey

squirrelmonkey
stainless

stainless
welds

welds
leukocyte

leukocyte
oakstands

oakstands
psychoactive

psychoactive
odors

odors
tuna

tuna
psychotic

psychotic
sample

sample
serum

serum
survival

survival
twins

twins
violence

violence
syllables

syllables