-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdata.Rmd
More file actions
47 lines (35 loc) · 701 Bytes
/
Copy pathdata.Rmd
File metadata and controls
47 lines (35 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
title: "Standard Charges Data"
author: "OHANA Project"
date: "5/10/2019"
output: html_document
---
## Libraries
```{r}
#install.packages("RCurl")
library(RCurl)
library(DataExplorer)
```
## File Download
```{r}
URL <- "https://raw.githubusercontent.com/ohana-project/StandardChargesData/master/chargelevel.csv"
Files <- getURL(URL)
Data <- read.csv(textConnection(Files))
```
## Download Data for Specified State (To Do)
### Append Hospital Information to Data (To Do)
## View Data
```{r}
head(Data[1:2])
```
```{r}
Meds <- Data[grepl("ACETAMINOPHEN",Data$Charge),]
print(Meds)
```
```{r}
Card <- Data[grepl("NASAL.*CAN.*[0O]2 ",Data$Charge),]
print(Card)
```
```{r}
summary(Data)
```