knitr::opts_chunk$set(echo = TRUE, messsage = FALSE, warning = FALSE)
The package stat585lab3package was created for lab3 in STAT 585. This package contains four functions (team_1,team_10,team_11,?) which can convert sf shape files to data frames. These functions are based on lab 2 activity in the stat585.
Here is a link to our GitHub \ Link to the github repo where all code of the package is deposited.
First, load the package.
library(stat585lab3package)
The team_1 was written by Gani Agadilov. This is the function created by team 1 in lab2 activity.\
input
\
file: file path is a file path to a shape file\
tolerance: value used for thinning the polygon
Aus_t1 <- team_1("./data/gadm36_AUS_shp/gadm36_AUS_1.shp", 0.1) head(Aus_t1)
The team_10 function was written by Gulzina Kuttubekova. This is the function created by team 10 in lab2 activity.\
input
\
file: file path to a shapefile\
tolerance: tolerance
Value
geo_info: dataframe containing geographic and additional information on polygons.
Aus_t10 <- team_10("./data/gadm36_AUS_shp/gadm36_AUS_1.shp",0.1) head(Aus_t10)
The team_11 function was written by Jing Zhao. This is the function created by team 11 in lab2 activity.\
input
\
file : input shape file datsest (.shp)\
tolerance: the value for thining the shape file. The tolerance is a single numeric value (e.g., 0.1)
# Use the team_11 function to convert the shape file to a dataframe using example data Aus_t11 <- team_11("./data/gadm36_AUS_shp/gadm36_AUS_1.shp",0.1) # pring the head of the dataframe head(Aus_t11)
The team_3 function was written by Joshua Budi. This is the function created by team 11 in lab2 activity.\
input
\
file : input shape file datsest (.shp)\
tolerance: the value for thining the shape file. The tolerance is a single numeric value (e.g., 0.1)
# Use the team_11 function to convert the shape file to a dataframe using example data Aus_t3 <- team_3("./data/gadm36_AUS_shp/gadm36_AUS_1.shp",0.1) # pring the head of the dataframe head(Aus_t3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.