This book provides a practical introduction to mathematics for economics using R software. The book is organized in order of increasing difficulty, beginning with a rudimentary introduction to R and progressing through exercises that require the reader to code their own functions in R.