Skip to content

Commit

Permalink
Working on merging MedStar and APS
Browse files Browse the repository at this point in the history
  • Loading branch information
mbcann01 committed Feb 21, 2020
1 parent bdf1ad9 commit 8836b9f
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 13 deletions.
15 changes: 13 additions & 2 deletions markdown/data_merge_test.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ Sys.setenv(TZ = "US/Central")

```{r message=FALSE}
library(dplyr)
library(bfuncs)
```

```{bash}
Expand Down Expand Up @@ -67,9 +66,21 @@ pairs_possible_matches <- pairs_possible_matches %>%
dim(pairs_possible_matches) # 683,132 14
```

Remove the is_match variable. It is NA in every row and causes problems below.

```{r}
pairs_possible_matches <- select(pairs_possible_matches, -is_match)
```

```{r}
dim(pairs_possible_matches) # 683,132 13
```


# Widen the data

Put the MedStar data next to the APS data. This makes it faster and easier to

```{r}
pairs_possible_matches_wide <- bind_cols(
# MedStar rows
Expand Down Expand Up @@ -257,7 +268,7 @@ review_matches <- bind_rows(
```

```{r}
dim(review_matches) # 1,332 30
dim(review_matches) # 1,332 29
```


Expand Down
Loading

0 comments on commit 8836b9f

Please sign in to comment.