create_item: Creates a budget item

Description Usage Arguments Details Value Examples

View source: R/create_item.R

Description

create_item returns a budget item.

Usage

1
create_item(name, amount, day, recurring)

Arguments

name

The name describing the budget item.

amount

The amount associated with the budget item. Positive values result in addition and negative values result in subtraction.

day

The day associated with the budget item. See Details for more information.

recurring

The frequency of recurrence for the budget item. See Details for more information.

Details

day

The day argument must be one of the following types:

recurring

No recurring argument means that the item is one-time (the default). If provided, recurring must be one of the following values:

Value

The output of create_item is a budget item.

Examples

1
2
3
4
5
6
7
8
# Create a paycheck item
paycheck <- create_item( name = "Paycheck"
                       , amount = 1000
                       , day = "2016-01-01"
                       , recurring = "monthly"
                       )
# Inspect
paycheck

derek-damron/budgetr documentation built on Aug. 11, 2020, 2:41 a.m.