Learn R Programming

This package contains functions and datasets for math taught in school. A main focus is set to prime calculation. The package also contains a dataset of all primes between 1 and 99,999,999.

Copy Link

Version

Install

install.packages('schoolmath')

Monthly Downloads

488

Version

0.5.1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Joerg Schlarmann aka Produnis

Last Published

August 27th, 2026

Functions in schoolmath (0.5.1)

is.prim

Check whether a vector contains prime numbers
is.real.positive

Check whether numbers are non-negative.
is.whole

checks if a number is decimal or integer and returns FALSE for decimal
is.even

Checks whether numbers are even.
is.negative

Check whether numbers are negative.
scm

calculating the smallest common multiple of two numbers
is.positive

Check whether numbers are positive.
cancel.fraction

cancel a fraction to the smallest numbers
is.odd

Checks whether numbers are odd.
decimal2fraction

convert a decimal-number into fraction
primes

generate prime-numbers in a range from START to END
is.decimal

checks if a number is decimal or integer and returns TRUE for decimal
gcd

Greatest common divisor of two numbers
prime.factor

This function calculates the prime-factors of a number
primlist

A vector containing primes between 1 and 99,999,999