Giter Site home page Giter Site logo

inseefr / btb Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 7.0 2.92 MB

An R package which provides functions dedicated to urban analysis and kernel density estimation.

Home Page: https://inseefr.github.io/btb

License: GNU General Public License v3.0

R 39.27% C++ 58.45% C 2.28%
statistical-package

btb's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

btb's Issues

Invalid URLs in vignette

Hi,
While checking the package I get :

Found the following (possibly) invalid URLs:
  URL: http://r.iresmi.net/2019/05/11/kernel-spatial-smoothing-transforming-points-pattern-to-continuous-coverage/ (moved to https://r.iresmi.net/posts/2019/kernel_spatial_smoothing_transforming_points_pattern_to_continuous_coverage/)
    From: inst/doc/btb.html
    Status: 200
    Message: OK
  URL: https://githubmemory.com/repo/SNStatComp/awesome-official-statistics-software
    From: inst/doc/btb.html
    Status: Error
    Message: libcurl error code 7:
      	Failed to connect to githubmemory.com port 443 after 111 ms: Couldn't connect to server
  URL: https://inspire.ec.europa.eu/ (moved to https://knowledge-base.inspire.ec.europa.eu/index_en)
    From: inst/doc/btb.html
    Status: 200
    Message: OK
  URL: https://mobile.twitter.com/DavidZumbach/status/1373166163497213952
    From: inst/doc/btb.html
    Status: 403
    Message: Forbidden
  URL: https://mobile.twitter.com/raffverduzco/status/1128075094524350464?lang=bg
    From: inst/doc/btb.html
    Status: 403
    Message: Forbidden

(for the last 2, Twitter is no longer accessible without an user account)

Error: sEPSG not valid

Hello,

On line 177 of btb_smooth.R, you check that the length of the sEPSG argument is equal to 4 characters when the function is provided with a sf object:

stopifnot("sEPSG not valid "= identical(nchar(as.character(sEPSG)),4L))

However, the epsg code could be of a length greater than 4 character. You have such an instance in the second example that you provide:

 # Example 2
 data(reunion)
 # Call mode 1: classic smoothing - automatic grid
 reunionSmoothed <- btb_smooth( pts = reunion,
                                     sEPSG = "32740",
                                     iCellSize = 200L,
                                     iBandwidth = 400L)

reunion is a data.frame, but if you transform it to a sf object and try to run the code, it errors:

 # Example 2
 data(reunion)
reunion <- sf::st_as_sf(reunion, coords = c("x","y"), crs = 32740)
 # Call mode 1: classic smoothing - automatic grid
 reunionSmoothed <- btb_smooth( pts = reunion,
                                     iCellSize = 200L,
                                     iBandwidth = 400L)
Error in btb_smooth(pts = reunion, iCellSize = 200L, iBandwidth = 400L) : 
  sEPSG not valid 

Is there a reason I am not understanding for the check for a epsg length equal to 4?

Thank you, and thank you for your very useful package!

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.