International Standard Book Number - Provider. ISBN starts with group code, all English language ISBN-10 codes start with a 0 or 1, and all German language books start with a 3. see https://en.wikipedia.org/wiki/List_of_ISBN_registration_groups.
Charlatan does not provide further helpers for you, but you can supply the prefix yourself, if for instance you want to create Mexican ISBNs you can by supplying the ISBN10 prefix 970, or for Andorra supply the ISBN 13 prefix 97899920 (that is 978 for ISBN13, and 99920 for Andorra).
charlatan::BareProvider
-> ISBNProvider
Inherited methods
charlatan::BareProvider$bothify()
charlatan::BareProvider$lexify()
charlatan::BareProvider$numerify()
charlatan::BareProvider$print()
charlatan::BareProvider$random_digit()
charlatan::BareProvider$random_digit_not_zero()
charlatan::BareProvider$random_digit_not_zero_or_empty()
charlatan::BareProvider$random_digit_or_empty()
charlatan::BareProvider$random_element()
charlatan::BareProvider$random_element_prob()
charlatan::BareProvider$random_int()
charlatan::BareProvider$random_letter()
charlatan::BareProvider$randomize_nb_elements()
isbn10()
Make a ISBN10 This is a completely random (apart from the prefix), but valid ISBN10 number.
ISBNProvider$isbn10(n = 1, prefix = NULL)
n
(integer) number of ISBN10s to make, default=1
prefix
(integer/character) prefix for ISBN
isbn13()
Make a ISBN13. This is a completely random (apart from the prefix), but valid ISBN13 number.
ISBNProvider$isbn13(n = 1, prefix = NULL)
n
(integer) number of ISBN10s to make, default=1
prefix
(integer/character) prefix for ISBN
clone()
The objects of this class are cloneable with this method.
ISBNProvider$clone(deep = FALSE)
deep
Whether to make a deep clone.
z <- ISBNProvider$new()
z$isbn10()
z$isbn13()
z$isbn10(10)
z$isbn13(100)
# or even z$isbn10(500)
Run the code above in your browser using DataLab