Skip to content

Commit

Permalink
lintr
Browse files Browse the repository at this point in the history
  • Loading branch information
Damonamajor committed Aug 6, 2024
1 parent 90aad66 commit 9cfce31
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions analyses/Data_transformation.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ card_individual <- shap_new %>%
rename(!!sym(target_feature_shap) := !!sym(target_feature_value)) %>%
inner_join(
assessment_card_new %>%
select(meta_pin, meta_nbhd_code,
meta_card_num,
pred_card_initial_fmv,
{{ target_feature_value }}),
select(
meta_pin, meta_nbhd_code,
meta_card_num,
pred_card_initial_fmv,
{{ target_feature_value }}
),
by = c("meta_pin", "meta_card_num")
)

Expand Down Expand Up @@ -55,12 +57,12 @@ pin_individual <- assessment_pin_new %>%
mutate(
diff_pred_pin_final_fmv =
round(((pred_pin_final_fmv_new - pred_pin_final_fmv_comp) /
pred_pin_final_fmv_comp), 4),
pred_pin_final_fmv_comp), 4),

Check warning on line 60 in analyses/Data_transformation.R

View workflow job for this annotation

GitHub Actions / pre-commit

file=/home/runner/work/model-res-avm/model-res-avm/analyses/Data_transformation.R,line=60,col=8,[indentation_linter] Indentation should be 15 spaces but is 8 spaces.
pred_pin_final_fmv_new = dollar(pred_pin_final_fmv_new),
pred_pin_final_fmv_comp = dollar(pred_pin_final_fmv_comp),
diff_pred_pin_initial_fmv =
round(((pred_pin_initial_fmv_new - pred_pin_initial_fmv_comp) /
pred_pin_initial_fmv_comp), 4),
pred_pin_initial_fmv_comp), 4),

Check warning on line 65 in analyses/Data_transformation.R

View workflow job for this annotation

GitHub Actions / pre-commit

file=/home/runner/work/model-res-avm/model-res-avm/analyses/Data_transformation.R,line=65,col=8,[indentation_linter] Indentation should be 15 spaces but is 8 spaces.
pred_pin_initial_fmv_new = dollar(pred_pin_initial_fmv_new),
pred_pin_initial_fmv_comp = dollar(pred_pin_initial_fmv_comp)
) %>%
Expand Down Expand Up @@ -99,9 +101,12 @@ leaflet_data <- card_individual %>%
mutate(
shap_total = sum(!!sym({{ target_feature_shap }})),
variable_index = row_number(),
name_col = paste0(deparse(substitute(
target_feature_shap)), "_",
variable_index)
name_col = paste0(
deparse(substitute(
target_feature_shap
)), "_",
variable_index
)
) %>%
pivot_wider(
id_cols = c("meta_pin", "shap_total"),
Expand Down

0 comments on commit 9cfce31

Please sign in to comment.