Learn R Programming

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

ibawds

ibawds provides useful functions and datasets for the Data Science course at IBAW.

Installation

You can install the released version of ibawds from CRAN with:

install.packages("ibawds")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("stibu81/ibawds")

Setting up for the course

Install R

Windows and Mac Users can download the installer for their operating system from https://cran.r-project.org/. For Windows, installation should be possible also for non-admin users. Mac users may also need to install XQuartz.

Linux users find instructions for installation under Debian, Fedora/Redhat, and Ubuntu under the same link. Note that the official package sources may contain an outdated version of R, but usually the current version can be installed from some other source. Make sure that you install version 4.0 or newer.

Install RStudio

We will use RStudio as our IDE in the course. You can download it from this link. Usually, it is easiest to use the installer for your operating system. However, if you don’t have admin access on your computer, you should instead download the appropriate zip-file / tarball. Under Windows, extract the zip-file to a folder where you have write access. The executable file is located under bin/rstudio.exe.

When you run RStudio for the first time, you have to select the R version that you want to use. Usually, the dialogue box should list available R versions for you to choose. If not, click on “Browse…” and navigate to the folder where you installed R.

Install R Packages

We will use a variety of R Packages during the course. To set them up, first install ibawds with

install.packages("ibawds")

and then run the following to install additional packages:

library(ibawds)
install_ibawds()

You will be asked to install missing packages. Confirm to install them. Note that this may take more than 30 minutes depending on your system and configuration.

Check the Setup

In order to check that everything is set up correctly for the course, run the following command:

check_ibawds_setup()

The function verifies that

  • R and RStudio are up to date,
  • the ibawds package is up to date, and
  • all the required packages are installed

The function must be run from RStudio in order to run properly. If everything is set up correctly, you will see a message that confirms that your system is ready for the course. If not, the function will inform you about the steps that are needed to fix the remaining issues.

Copy Link

Version

Install

install.packages('ibawds')

Monthly Downloads

18,541

Version

1.0.0

License

MIT + file LICENSE

Maintainer

Stefan Lanz

Last Published

September 30th, 2024

Functions in ibawds (1.0.0)

define_latex_stats

Define LaTeX commands for statistical symbols
bills

Summarised Data on Restaurant Bills
n_available_packages

Number of Available R Packages and R Versions from CRAN
dentition

Dentition of Mammals
distribution_plot

Plot Density and Distribution Function With Markings
install_ibawds

Install the R-Packages Required for the Course
breast_cancer

Wisconsin Breast Cancer Database
noisy_data

Noisy Data From a Tenth Order Polynomial
downgrade_packages

Downgrade Packages to an Older Version
mtcars2

Dataset mtcars without row names
protein

Protein Consumption in European Countries
rand_with_cor

Create a Random Vector With Fixed Correlation With Another Vector
check_ibawds_setup

Check If the User Is Ready for the Course
cluster_with_centers

Cluster Data According to Centres and Recompute Centres
find_similar_colour

Find a Named Colour that is Similar to Any Given Colour
rescale

Rescale Mean And/Or Standard Deviation of a Vector
grading_tables

Tables Used for Grading the Papers
ibawds-package

Functionality for Data Science at IBAW
seatbelts

Road Casualties in Great Britain 1969-84
set_slide_options

Set Options for Slides
voronoi_diagram

Create a Voronoi Diagram for a Clustering
wine_quality

Wine Quality
galton_sons

Galton's data on the heights of fathers and their children
get_reading_exercise_files

Get Files for File Reading Exercise
cran_history

History of the Number of Available CRAN Packages