Giter VIP home page Giter VIP logo

Comments (4)

raymondben avatar raymondben commented on June 23, 2024

Good suggestion.

(I'm often caught - in R more generally - with factors where I wanted strings. I'm never game to set options(stringsAsFactors=FALSE) globally because I'm sure there's plenty of code that relies on the default TRUE setting for this.)

from ala4r.

raymondben avatar raymondben commented on June 23, 2024

Can you give an example please? I'm obviously missing something, because I don't see factors in the output from search_names.

Thanks ...

from ala4r.

johnbaums avatar johnbaums commented on June 23, 2024

Ah, sorry - I was unclear... I was referring to factor input.

    dat <- read.table(text='species
               Burramys parvus
               Cygnus atratus', sep='\n', header=TRUE)
    search_names(dat$species)
    ## Error: taxa is not a character vector

from ala4r.

raymondben avatar raymondben commented on June 23, 2024

Done in v1.12 (in functions search_names, species_info, taxinfo_download, occurrences, and search_fulltext)

> search_names(factor("Burramys parvus"))
  searchTerm        name              commonName                                                                       rank     
1 "Burramys parvus" "Burramys parvus" " Broom's Pygmy-possum,  Burramys, Mountain Pygmy Possum, Mountain Pygmy-possum" "species"
  guid                                                                         
1 "urn:lsid:biodiversity.org.au:afd.taxon:3f17cf84-982a-48f2-9500-e44dcd30710a"

from ala4r.

Related Issues (20)

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.