Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201894

How can I select the nth digit from a number in R?

$
0
0

Given some number with at least 2 digits how do I pick a specific digit?

x <- 4856

nth_digit(123, 4)

6

Viewing all articles
Browse latest Browse all 201894

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>