# Mindanao State University
# General Santos City
# Submitted by: Roland Fritz C. Adam & Aj Ardaniel
# From a local directory
folder <- "C:\\home\\student\\Downloads"
filename <- "CornPalay.csv"
(file <- paste0(folder,"/",filename))
## [1] "C:\\home\\student\\Downloads/CornPalay.csv"
library(readr)
data <- read_csv("CornPalay.csv")
## Rows: 256 Columns: 18
## ── Column specification ────────────────────────────────────────────────────────
## Delimiter: ","
## chr  (2): Crop, TypeCrop
## dbl (16): ARMM.Region, CORDILLERA.REGION..CAR., MIMAROPA.REGION, REGION.I..I...
## 
## ℹ Use `spec()` to retrieve the full column specification for this data.
## ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
head(data)
## # A tibble: 6 × 18
##   ARMM.Region CORDILLERA.REGION..CAR. MIMAROPA.REGION REGION.I..ILOCOS.REGION.
##         <dbl>                   <dbl>           <dbl>                    <dbl>
## 1       35615                   44156           97221                   185215
## 2       28117                   58373          109447                    68461
## 3       28316                   29287           65620                    82150
## 4       40024                   92503          172723                   517037
## 5       37811                   42013           93821                   196722
## 6       33857                   90937          112360                    72749
## # ℹ 14 more variables: REGION.II..CAGAYAN.VALLEY. <dbl>,
## #   REGION.III..CENTRAL.LUZON. <dbl>, REGION.IV.A..CALABARZON. <dbl>,
## #   REGION.IX..ZAMBO.Penin. <dbl>, REGION.V..BICOL.REGION. <dbl>,
## #   REGION.VI..WEST.VISAYAS. <dbl>, REGION.VII..CENTRAL.VISAYAS. <dbl>,
## #   REGION.VIII..EAST.VISAYAS. <dbl>, REGION.X..NORTHERN.MIN. <dbl>,
## #   REGION.XI..DAVAO.REGION. <dbl>, REGION.XII..SOCCSKSARGEN. <dbl>,
## #   REGION.XIII..CARAGA. <dbl>, Crop <chr>, TypeCrop <chr>
tail(data)
## # A tibble: 6 × 18
##   ARMM.Region CORDILLERA.REGION..CAR. MIMAROPA.REGION REGION.I..ILOCOS.REGION.
##         <dbl>                   <dbl>           <dbl>                    <dbl>
## 1       56538                   83686           16594                     3336
## 2       44756                   26358            7736                     4058
## 3       43124                   89726           52786                   289127
## 4       17666                   31920           31693                   145734
## 5       40581                   72128           17931                     4256
## 6       55940                   24178            6675                     3624
## # ℹ 14 more variables: REGION.II..CAGAYAN.VALLEY. <dbl>,
## #   REGION.III..CENTRAL.LUZON. <dbl>, REGION.IV.A..CALABARZON. <dbl>,
## #   REGION.IX..ZAMBO.Penin. <dbl>, REGION.V..BICOL.REGION. <dbl>,
## #   REGION.VI..WEST.VISAYAS. <dbl>, REGION.VII..CENTRAL.VISAYAS. <dbl>,
## #   REGION.VIII..EAST.VISAYAS. <dbl>, REGION.X..NORTHERN.MIN. <dbl>,
## #   REGION.XI..DAVAO.REGION. <dbl>, REGION.XII..SOCCSKSARGEN. <dbl>,
## #   REGION.XIII..CARAGA. <dbl>, Crop <chr>, TypeCrop <chr>