Coder Social home page Coder Social logo

rmeteo's People

Contributors

aleksandarsekulic avatar milankili avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

rmeteo's Issues

Error when trying to predict the value at a single location.

Hi,

when I try to predict the value at a single location, the following error occurs: Error in cbind(knn1$nn.dists, near_o1) :
number of rows of matrices must match (see arg 2).

As soon as there are at least two locations for which the value is to be predicted, everything works.

can not install in 4.0.4

Hello

Very interested in trying this package for RFSI but I am not able to install it in R 4.0.4. I tried bot GitHub and RForge options and gives me an error for the CAST pkg not been available for this version of R when trying GitHub, and a general package β€˜meteo’ is not available for this version of R when trying RForge

Are there plans on updating it?! Also, are sf objects going to be possible as input?

Thanks

near.obs function returns an error message

Hello,
Was trying to execute a code example from the documentation for function near.obs, but the command

nearest_obs <- near.obs(locations = temp,
observations = temp,
zcol = "tempc",
n.obs = 5,
rm.dupl = TRUE)

returned an error message:

Error in if (class(knn1$nn.idx) != "integer") { :
the condition has length > 1

sessionInfo()
R version 4.2.1 (2022-06-23)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 22.04 LTS

Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.10.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.0

locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=uk_UA.UTF-8
[4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=uk_UA.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=uk_UA.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=uk_UA.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] spacetime_1.2-8 sp_1.4-6 meteo_1.0-1

Change to new cran checks badge URL

πŸ‘‹πŸ½ I maintain the cran checks badges. Please change to the new cran checks badge URL (e.g., https://badges.cranchecks.info/worst/dplyr.svg). Old badges at (e.g. https://cranchecks.info/badges/worst/dplyr) will be unavailable as of Jan 1st 2023.

"no slot of name "sp" for this object of class "SpatialPointsDataFrame"" error message for rfsi function

Hello,
Was trying to execute an RFSI example, but have got an error message for rfsi command:

[1] "Preparing data ..."
Error in rfsi(formula = fm.RFSI, data = meuse, zero.tol = 0, n.obs = 5, :
no slot of name "sp" for this object of class "SpatialPointsDataFrame"

sessionInfo()
R version 4.2.1 (2022-06-23)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 22.04 LTS

Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.10.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.0

locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=uk_UA.UTF-8
[4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=uk_UA.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=uk_UA.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=uk_UA.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] spacetime_1.2-8 sp_1.4-6 meteo_1.0-1

Waiting for stable version

if(class(knn1$nn.idx[1])!='integer') { near_o1 <- apply(knn1$nn.idx, 2, function(x) {variable[x]}) near_o1 <- cbind(near_o1) nl_df <- cbind(knn1$nn.dists, near_o1) } else { near_o1 <- variable[knn1$nn.idx] near_o1 <- matrix(near_o1, nrow = attributes(knn1$nn.idx)$dim[1], ncol = attributes(knn1$nn.idx)$dim[2]) # nl_df <- t(c(knn1$nn.dists, near_o1)) nl_df <- cbind(knn1$nn.dists, near_o1) } }

Iβ€˜ve spent lots of time to debug and solve this problems. But still get another problems bellow:

[1] "combination 1: " min.node.size num.trees mtry n.obs sample.fraction idw.p 10 10 250 12 6 0.95 3 [1] "Fold 1" Joining by: staid, date Joining by: staid, lon, lat, date [1] "Fold 2" Joining by: staid, date Joining by: staid, lon, lat, date [1] "Fold 3" Joining by: staid, date Joining by: staid, lon, lat, date [1] "Fold 4" Error in { : task 216 failed - "non-numeric matrix extent"
@AleksandarSekulic
It is a good work but there are too much problems. When can i get a stable version to learn ur idea?
Waiting for a stable version urgently!!!

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.