z.b.util.diff: Util - DIfference

Description Usage Arguments Value Author(s) Examples

Description

To get (back) to the overview of all steps and functions use this link: a.a.main

Support function for z.a.util.gen.summary

Takes two numeric vectors and calculates the relative size of the numbers at the same positions.

Usage

1
z.b.util.diff(vec1, vec2)

Arguments

vec1

A numeric vector.

vec2

A numeric vector of the same size as vec1

Value

A character vector containing the relative sizes. Special cases for 0 elements in the vector.

Author(s)

Vitali Friesen

Examples

1
2
z.b.util.diff(c(8,0,10,0),c(4,3,15,0))
# [1] "50%" "only in 2nd" "150%" "Both 0"

Vitlik/DA1-16 documentation built on May 9, 2019, 10:01 p.m.