Skip to content

Commit aee86b7

Browse files
authored
Data Cleanup Comparison
-Compared original dataset (`aro_index.tsv`) with cleaned dataset (`resistance_profile_data.tsv`). -Saved snippets of the pre-cleanup data (`aro_index.tsv`) and post-cleanup data (`resistance_profile_data.tsv`) for comparison.
1 parent bcbd971 commit aee86b7

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Load required libraries
2+
library(dplyr)
3+
library(readr)
4+
5+
# File paths
6+
original_file <- "CARD_data/aro_index.tsv"
7+
cleaned_file <- "CARD_data/resistance_profile_data.tsv"
8+
9+
# Load datasets
10+
aro_index <- read_delim("CARD_data/aro_index.tsv", delim = "\t", col_names = TRUE)
11+
resistance_profile_data <- read_delim("CARD_data/resistance_profile_data.tsv", delim = "\t", col_names = TRUE)
12+
13+
# Extract the first 10rows from each file
14+
aro_index_snippet <- head(aro_index, 10)
15+
resistance_profile_data_snippet <- head(resistance_profile_data, 10)
16+
17+
# View the pre-cleanup snippet
18+
View(aro_index_snippet)
19+
20+
# View the post-cleanup snippet
21+
View(resistance_profile_data_snippet)
22+

0 commit comments

Comments
 (0)