Learn R Programming

This package contains functions and datasets for math taught in school. A main focus is set to prime calculation.

Copy Link

Version

Install

install.packages('schoolmath')

Monthly Downloads

655

Version

0.4.2

License

GPL (>= 2)

Maintainer

Joerg Schlarmann aka Produnis

Last Published

August 21st, 2023

Functions in schoolmath (0.4.2)

is.real.positive

check whether numbers of a vector are real positive. Real positive means, that zero is included as a positive number.
is.odd

checks if a number or vector is odd
gcd

Greatest common divisor of two numbers
is.prim

check whether a vector contains prime-numbers
is.even

checks if a number or vector is even
is.negative

check whether numbers of a vector are negative
is.positive

check whether numbers of a vector are positive
is.whole

check whether a vector contains numbers with decimal places
prime.factor

This function calculates the prime-factors of a number
is.decimal

checks if a number is decimal or integer
scm

calculating the smallest common multiple of two numbers
decimal2fraction

convert a decimal-number into fraction
cancel.fraction

cancel a fraction to the smallest numbers
primes

generate prime-numbers in a range from START to END
primlist

A vector containing primes from 0 to 9999999