Skip to content

Commit

Permalink
Fix: standardized_IS updated (Published)
Browse files Browse the repository at this point in the history
Figure from published filing showed different Net Income Loss due to the split of:
Net Income (loss) (operations)
Net Income (loss) to parent (incl. Non contr. Interest)
Now incorporated in the standardized_IS
Minor: update figures in output tables with 2 decimal digit
  • Loading branch information
gp1981 committed Jun 12, 2024
1 parent 4987c41 commit 0809510
Show file tree
Hide file tree
Showing 6 changed files with 7,144 additions and 6,787 deletions.
8 changes: 6 additions & 2 deletions code/Functions/data_retrieval.R
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,10 @@ IS_std <- function(df_Facts) {

## Step 1 - Check key financial Concepts -----------------------------------
# It checks whether specific columns exist or are empty. If so it stops or remove corresponding rows
if (!("Gross Profit" %in% colnames(df_std_IS)) || !("Operating Income" %in% colnames(df_std_IS)) || !("Net Income (loss)" %in% colnames(df_std_IS)) ) {
if (!("Gross Profit" %in% colnames(df_std_IS)) ||
!("Operating Income" %in% colnames(df_std_IS)) ||
!("Net Income (loss) (operations)" %in% colnames(df_std_IS)) ||
!("Net Income (loss) to parent (incl. Non contr. Interest)" %in% colnames(df_std_IS))) {
stop("Gross Profit or Operating Income or Net Income (loss) is missing. The entity is not adequate for financial analysis.")
}

Expand All @@ -611,7 +614,8 @@ IS_std <- function(df_Facts) {
filter(
any(!is.na(`Gross Profit`) | `Gross Profit` != ""),
any(!is.na(`Operating Income`) | `Operating Income` != ""),
any(!is.na(`Net Income (loss)`) | `Net Income (loss)` != "")
any(!is.na(`Net Income (loss) (operations)`) | `Net Income (loss) (operations)` != ""),
any(!is.na(`Net Income (loss) to parent (incl. Non contr. Interest)`) | `Net Income (loss) to parent (incl. Non contr. Interest)` != "")
)

## Step 2 - Add missing columns -----------------------------------
Expand Down
Binary file modified data/standardized_IS.xlsx
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/01_data_retrieval.html
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ <h2 class="anchored" data-anchor-id="selecting-a-company-jakks-pacific-inc.-jakk
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">4073</td>
<td style="text-align: left;">4090</td>
<td style="text-align: left;">0001009829</td>
<td style="text-align: left;">JAKK</td>
<td style="text-align: left;">JAKKS PACIFIC INC</td>
Expand Down
Loading

0 comments on commit 0809510

Please sign in to comment.