## # A tibble: 507 × 10
## Sample `SNP Score` `Obesity Score` CVDScore DiabetesScore `High BP Score`
## <chr> <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 24 0 2 0 2.5 1
## 2 29 0 1 0 0 0
## 3 30 0 2.5 0 0.5 2.5
## 4 46 0 0 0 0 1
## 5 47 0 0 0 0 0
## 6 56 0 0 0 0.5 1
## 7 67 0 1 0.5 0.5 1
## 8 76 0 0 0 1 0
## 9 78 0 0 0 0 0
## 10 95 0 0 0 0.5 0.5
## # ℹ 497 more rows
## # ℹ 4 more variables: `MI/CVA Before 65 Score` <dbl>,
## # `MI/CVA After 65 Score` <dbl>, TotalCVDScore <dbl>, `Personal Score` <dbl>
## # A tibble: 2 × 10
## Sample `SNP Score` `Obesity Score` CVDScore DiabetesScore `High BP Score`
## <chr> <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 223 0 0 1.5 1 0.5
## 2 317 0 1.5 0 1 1
## # ℹ 4 more variables: `MI/CVA Before 65 Score` <dbl>,
## # `MI/CVA After 65 Score` <dbl>, TotalCVDScore <dbl>, `Personal Score` <dbl>
## # A tibble: 507 × 10
## Sample `SNP Score` `Obesity Score` CVDScore DiabetesScore `High BP Score`
## <chr> <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 24 0 2 0 2.5 1
## 2 401 0 2.5 0.5 2.5 2.5
## 3 463 0 3.5 0 2.5 0
## 4 171 0 3 1 2 2
## 5 184 0 0 1 2 2.5
## 6 244 0 0 0 2 0
## 7 320 0 0 0 2 1
## 8 335 0 0.5 0.5 2 0.5
## 9 338 0 0 0 2 0
## 10 397 0 1 2 2 1
## # ℹ 497 more rows
## # ℹ 4 more variables: `MI/CVA Before 65 Score` <dbl>,
## # `MI/CVA After 65 Score` <dbl>, TotalCVDScore <dbl>, `Personal Score` <dbl>
## # A tibble: 507 × 1
## DiabetesScore
## <dbl>
## 1 2.5
## 2 0
## 3 0.5
## 4 0
## 5 0
## 6 0.5
## 7 0.5
## 8 1
## 9 0
## 10 0.5
## # ℹ 497 more rows
###Table only shows new column I have created from two existing columns, the new column is DIABETESPLUSTOTALCVD, a combination of both columns scores
## # A tibble: 507 × 1
## DIABETESPLUSTOTALCVD
## <dbl>
## 1 8
## 2 1
## 3 7.5
## 4 2
## 5 0
## 6 2.5
## 7 4
## 8 3
## 9 0
## 10 3
## # ℹ 497 more rows
## # A tibble: 7 × 3
## DiabetesScore count mean_value
## <dbl> <int> <dbl>
## 1 0 158 0
## 2 0.5 34 0.5
## 3 1 21 1
## 4 1.5 7 1.5
## 5 2 8 2
## 6 2.5 3 2.5
## 7 NA 276 NaN