Code Monkey home page Code Monkey logo

ambzre's Introduction

ambzre

Lifecycle: experimental CRAN status

El objetivo de ambzre es permitir la revisión y estandarización de las tablas de atributos de los shapefiles producidos por el componente ambiental del proyecto ZRE41.

Instalacion

Para instalar ambzre desde el repositoriod e GitHub:

remotes::install_github("PaulESantos/ambzre")

Ejemplo

  • Lista de archivos shp:
library(ambzre)
library(here)
library(tidyverse)

Para modificar los diccionarios de datos de los diferentes shapefiles:

df <- diccionario_cv(system.file("extdata/cobertura_vegetal_sa01.shp",
                     package = "ambzre"))
Reading layer `cobertura_vegetal_sa01' from data source `D:\ambzre\inst\extdata\cobertura_vegetal_sa01.shp' using driver `ESRI Shapefile'
Simple feature collection with 230 features and 7 fields
Geometry type: MULTIPOLYGON
Dimension:     XY
Bounding box:  xmin: 175506.5 ymin: 8502019 xmax: 176404.5 ymax: 8502925
Projected CRS: WGS 84 / UTM zone 19S
Simple feature collection with 6 features and 7 fields
Geometry type: MULTIPOLYGON
Dimension:     XY
Bounding box:  xmin: 175560.4 ymin: 8502077 xmax: 175694.6 ymax: 8502163
Projected CRS: WGS 84 / UTM zone 19S
  objectid gridcode origfid    aream2 coberveg shapeleng shapearea                       geometry
1        1        1       0  17.26362  Arborea  17.53265  17.26362 MULTIPOLYGON (((175567.7 85...
2        2        1       0  19.54285  Arborea  28.04657  19.54285 MULTIPOLYGON (((175595.8 85...
3        3        1       0 317.44111  Arborea 193.35411 317.44111 MULTIPOLYGON (((175574.5 85...
4        4        1       0  26.30083  Arborea  19.41983  26.30083 MULTIPOLYGON (((175640.4 85...
5        5        1       0  24.83902  Arborea  27.95120  24.83902 MULTIPOLYGON (((175662 8502...
6        6        1       0  88.82461  Arborea  56.55997  88.82461 MULTIPOLYGON (((175691.1 85...

Esta función solicita ingresar información referente al código de la ZRE

Ingresar codigo de la ZRE:

Ingresar el nombre de la columna que contiene la información del tipo de cobertura (Natural o antropica)

Seleccionar la variable TIPO COBERTURA:

Ingresar el nombre de la columna que contiene la información de la categoría de Cobertura vegetal:

Seleccionar la variable COBERTURA VEGETAL:

Una vez ingresada esta información y ejecutada la función el shapefile puede ser exportado con la función ´shape_write()´

df |> 
shp_write(folder = "path de la cartepa donde se guardara los datos",
           filename = "nombrecon el cual se guardara el archivo shp"
           )

ambzre's People

Watchers

James Cloos avatar Paul Efren avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.