GithubHelp home page GithubHelp logo

jvamisc's Introduction

jvamisc

jvamisc is a package of miscellaneous utility functions for the R programming language.

You can access the functions by installing the package from within R.

install.packages("remotes")
remotes::install_github("JVAdams/jvamisc")
library(jvamisc)

Thanks to Hilary Parker whose blog post Writing an R package from scratch encouraged me to create my first R package.


U.S. Geological Survey (USGS) Computer Program jvamisc version 1.0.2.9000. Written by Jean V. Adams, USGS - Great Lakes Science Center, Ann Arbor, Michigan, USA. Written in programming language R (R Core Team, 2021, www.R-project.org), version 4.1.0. Run on a PC with Intel(R) Core(TM) i7-7600U CPU, 2.80 GHz processor, 16.0 GB RAM, and Microsoft Windows 10 Enterprise operating system. Source code is available from Jean V. Adams on GitHub, jvadams (at) usgs (dot) gov.

Disclaimer: This software is preliminary or provisional and is subject to revision. It is being provided to meet the need for timely best science. The software has not received final approval by the U.S. Geological Survey (USGS). No warranty, expressed or implied, is made by the USGS or the U.S. Government as to the functionality of the software and related material nor shall the fact of release constitute any such warranty. The software is provided on the condition that neither the USGS nor the U.S. Government shall be held liable for any damages resulting from the authorized or unauthorized use of the software.

jvamisc's People

Contributors

jvadams avatar

Stargazers

 avatar mvdw avatar Adam D. Griffith avatar  avatar

Watchers

 avatar

jvamisc's Issues

Help with error

Hello,
When I run the sample code:

testPoints <- data.frame(x=c(-90, -120), y=c(44, 44), z=c("a", "b"))
latlong2(testPoints, to="county")

I get this error:

Error in strsplit(counties$names, ":") : non-character argument
In addition: Warning message:
Unknown or uninitialised column: names.

I did some digging and can't find a fix. Can you help? Thanks in advance.

latlong2 atomic error

The latlong2 function can not be called on the same list twice, such as in a loop. If it is attempted, an error is thrown that states "$ operator is invalid for atomic vectors". However, using the class and typeof function show that none of the data is atomic. The only fix is to rerun the function after clearing the environment and restarting the R session. This occurs whether using a loop or not. Even if I simply use the function on one set of lats and longs, I have to restart the session and clear my environment before using the function on another set. This also occurs if I call the function in separate scripts.

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.