Coder Social home page Coder Social logo

Comments (1)

patrickmdnet avatar patrickmdnet commented on July 4, 2024

"C81" and "C96" are both valid short and decimal codes. The "short_code" parameter refers to the input, not the output. So what you observe is the expected behavior.

If you want the range to return decimal codes use short_to_decimal:

> short_to_decimal(expand_range("C81", "C81"))
 [1] "C81"    "C81.0"  "C81.00" "C81.01" "C81.02" "C81.03" "C81.04" "C81.05" "C81.06" "C81.07"
[11] "C81.08" "C81.09" "C81.1"  "C81.10" "C81.11" "C81.12" "C81.13" "C81.14" "C81.15" "C81.16"
[21] "C81.17" "C81.18" "C81.19" "C81.2"  "C81.20" "C81.21" "C81.22" "C81.23" "C81.24" "C81.25"
[31] "C81.26" "C81.27" "C81.28" "C81.29" "C81.3"  "C81.30" "C81.31" "C81.32" "C81.33" "C81.34"
[41] "C81.35" "C81.36" "C81.37" "C81.38" "C81.39" "C81.4"  "C81.40" "C81.41" "C81.42" "C81.43"
[51] "C81.44" "C81.45" "C81.46" "C81.47" "C81.48" "C81.49" "C81.7"  "C81.70" "C81.71" "C81.72"
[61] "C81.73" "C81.74" "C81.75" "C81.76" "C81.77" "C81.78" "C81.79" "C81.9"  "C81.90" "C81.91"
[71] "C81.92" "C81.93" "C81.94" "C81.95" "C81.96" "C81.97" "C81.98" "C81.99"

from icd.

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.