Skip to content

Commit

Permalink
WIP - handling cumulative val
Browse files Browse the repository at this point in the history
checks
  • Loading branch information
gp1981 committed May 14, 2024
1 parent 6f6c99a commit 87b8db2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/Functions/data_retrieval.R
Original file line number Diff line number Diff line change
Expand Up @@ -811,10 +811,10 @@ IS_CF_std <- function(df_Facts) {
df_std_IS_CF <- df_std_IS_CF %>%
filter((Cumulative_quarters ==1 & !Modified_Quarterly_val) | (Cumulative_quarters !=1 & Modified_Quarterly_val))

# # Prepare dataframe for pivot
# df_std_IS_CF_pivot <- df_std_IS_CF %>%
# distinct(description, year_end, quarter_end, Quarterly_val, .keep_all = TRUE)
#
# Prepare dataframe for pivot ---->>>> TO CHECK - Cost of Revenue <<<<<
df_std_IS_CF_pivot <- df_std_IS_CF %>%
distinct(description, year_end, quarter_end, Quarterly_val, .keep_all = TRUE)

df_std_IS_CF_pivot <- df_std_IS_CF %>%
group_by(end,standardized_label,year_end,quarter_end,accn,form,cik,entityName,sic,sicDescription,tickers,Financial.Report) %>%
summarise(
Expand Down

0 comments on commit 87b8db2

Please sign in to comment.