MyNixOS website logo
Description

Solutions for Common Problems in Base R.

Contains functions for solving commonly encountered problems while programming in R. This package is intended to provide a lightweight supplement to Base R, and will be useful for almost any R user.

common version common lifecycle common downloads common total downloads R-CMD-check

Introduction to common

When working in Base R, there are some situations where you stop and wonder: "Why isn't there a function to do that?" For example:

<tab>- Why isn't there a function in Base R to sort a data frame by multiple columns?
<tab>- Why isn't there a function in Base R to get the path of the current program?
<tab>- In Base R, why is there no infix operator for concatenation?
<tab>- Why isn't there a function in Base R to add/modify data frame labels?

The answer to all of the above questions is that there should be. The purpose of the common package is to encapsulate these types of functions, and provide them to R users in a lightweight package. These functions are particularly useful for package developers, who might want to add these capabilities to their package without creating dependencies on tidyverse.

If you have ideas for more common functions, please submit your suggestion to the github issue list.

Installation

The easiest way to install the common package is to run the following command from your R console:

install.packages("common")

Then put the following line at the top of your script:

library(common)

For examples and usage information, please visit the common documentation site at common.r-sassy.org/articles/common.html

Getting Help

If you need help, the first place to turn to is the web site at common.r-sassy.org

If you want to look at the code for the common package, visit the github page here.

If you encounter a bug or have a feature request, please submit an issue here.

See Also

The common package is part of the sassy meta-package. The sassy meta-package includes several packages that help make R easier for everyone, especially people with a background in SAS®. You can read more about the sassy package here.

Metadata

Version

1.1.3

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows