apply_fy: Apply Fiscal Year

View source: R/utilities.R

apply_fyR Documentation

Apply Fiscal Year

Description

Apply fiscal year to each row, using the T or T_1 or R in 'indicator_code' to determine whether it's the current or a prior fiscal year. The fiscal year can be identified dynamically through 'grab_info()'.

Usage

apply_fy(df, year)

Arguments

df

DP dataframe to apply fiscal year to

year

fiscal year, derived from 'grab_info(filepath, "year")'

Value

data frame with fiscal year


USAID-OHA-SI/tameDP documentation built on March 16, 2024, 6:26 a.m.