first_diff: first_diff

View source: R/first_diff.R

first_diffR Documentation

first_diff

Description

Takes a vector and calculates the difference between the first element and the sum of the other elements.

Usage

first_diff(x)

Arguments

x

a numeric vector.


camkay/panoply documentation built on Jan. 17, 2025, 6:31 a.m.