Difference between revisions of "G1-Group01 Datacleaning"
Jump to navigation
Jump to search
Line 23: | Line 23: | ||
Thus, our team used R and tableau for our data cleaning and data Visualization. However, in this section, we will only share how we use the R code to "Geocode" and "data clean". | Thus, our team used R and tableau for our data cleaning and data Visualization. However, in this section, we will only share how we use the R code to "Geocode" and "data clean". | ||
− | + | ==Geocode== | |
Our group used R package "ggmap" and the function "geocode". And the coordinate it has generated will be base on projection 4326. Thus we need to export the file again to become projection 3414 for our further analysis. | Our group used R package "ggmap" and the function "geocode". And the coordinate it has generated will be base on projection 4326. Thus we need to export the file again to become projection 3414 for our further analysis. | ||
Requirement of using ggmap: | Requirement of using ggmap: | ||
Line 31: | Line 31: | ||
[[File:Geocode.jpg|600px]] | [[File:Geocode.jpg|600px]] | ||
+ | |||
+ | |||
+ | == Data Cleaning with R == | ||
+ | As mentioned above, our team used R to clean up data for our analysis. Thus, we use one of age group as example. | ||
+ | [[File:1.loading.jpg|thumb]] | ||
+ | [[File:2..jpg|thumb]] | ||
+ | [[File:Outputa1.jpg|thumb]] | ||
+ | [[File:Outputb1.jpg|thumb]] | ||
+ | [[File:Outputc1.jpg|thumb]] | ||
+ | [[File:Outputd1.jpg|thumb]] | ||
+ | [[File:Outpute1.jpg|thumb]] |
Revision as of 15:05, 16 November 2019
Due to some of files were not in the proper format for our analysis.
Thus, our team used R and tableau for our data cleaning and data Visualization. However, in this section, we will only share how we use the R code to "Geocode" and "data clean".
Geocode
Our group used R package "ggmap" and the function "geocode". And the coordinate it has generated will be base on projection 4326. Thus we need to export the file again to become projection 3414 for our further analysis. Requirement of using ggmap:
1. "ggmap" must be installed in your R studio
2. Must have google API in order to require information from google
Data Cleaning with R
As mentioned above, our team used R to clean up data for our analysis. Thus, we use one of age group as example.