Category Archives: R Basics

Data Expressions in R

Data Expressions

The following list defines data expressions in R that are used to compute basic numerical results for scalars, vectors, and rectangular data objects.  Scroll through the table to see all functions:

FunctionDescriptionComment
abs()Absolute valuen/a
approx()Linear interpolation of pointsn/a
asin(); acos(); atan()Inverse trigonometric functionsn/a
asinh(); acosh(); atanh()Inverse hyperbolic functionsn/a
ceiling()Round up to nearest integerImpacts stored precision
Posted in R Basics, R Data Syntax | Comments Off on Data Expressions in R

Principles of Tidy Data

Introduction to Tidy Data

Despite the enormous amount of data available, there is surprisingly little alignment or information on how to create clean, consistent and easy to use data.

Human interface with data and code can benefit from some simple principles to facilitate repeatable research and results. The “tidy” approach to data requires that:

  • Data is structured consistently and reusable;
  • Code flow relies on simple function calls using the pipe;
Posted in Data, R Basics, R Data Objects, R Data Syntax, Scientific Computing | Comments Off on Principles of Tidy Data