Methods for Lorem Ipsum generation. Lorem Ipsum is a placeholder text commonly used to demonstrate the visual form of a document or a typeface without relying on meaningful content.
See also
Other en:
AddressProvider_en_GB
,
AddressProvider_en_NZ
,
AddressProvider_en_US
,
ColorProvider_en_US
,
CompanyProvider_en_US
,
ElementProvider_en_US
,
FileProvider_en_US
,
InternetProvider_en_AU
,
InternetProvider_en_US
,
JobProvider_en_US
,
PersonProvider_en_GB
,
PersonProvider_en_NZ
,
PersonProvider_en_US
,
PhoneNumberProvider_en_AU
,
PhoneNumberProvider_en_CA
,
PhoneNumberProvider_en_GB
,
PhoneNumberProvider_en_NZ
,
PhoneNumberProvider_en_US
,
PhoneNumberProvider_es_MX
,
SSNProvider_en_US
,
TaxonomyProvider_en_US
,
UserAgentProvider_en_US
,
english-language
Other US:
AddressProvider_en_US
,
ColorProvider_en_US
,
CompanyProvider_en_US
,
ElementProvider_en_US
,
FileProvider_en_US
,
InternetProvider_en_US
,
JobProvider_en_US
,
PersonProvider_en_US
,
PhoneNumberProvider_en_US
,
SSNProvider_en_US
,
TaxonomyProvider_en_US
,
UserAgentProvider_en_US
Super classes
charlatan::BareProvider
-> charlatan::BaseProvider
-> charlatan::LoremProvider
-> LoremProvider_en_US
Methods
Inherited methods
charlatan::BareProvider$bothify()
charlatan::BareProvider$lexify()
charlatan::BareProvider$numerify()
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()
charlatan::BaseProvider$allowed_locales()
charlatan::BaseProvider$check_locale()
charlatan::BaseProvider$print()
charlatan::LoremProvider$initialize()
charlatan::LoremProvider$paragraph()
charlatan::LoremProvider$paragraphs()
charlatan::LoremProvider$sentence()
charlatan::LoremProvider$sentences()
charlatan::LoremProvider$text()
charlatan::LoremProvider$word()
charlatan::LoremProvider$words()
Examples
x <- LoremProvider_en_US$new()
x$word()
#> [1] "military"
x$words(3)
#> [1] "together" "enter" "place"
x$words(6)
#> [1] "or" "try" "student" "guess" "however" "whether"
x$sentence()
#> [1] "Common difference job."
x$paragraph()
#> [1] "Hot body market religious."
x$paragraphs(3)
#> [1] "Hospital on letter decision base. Team green production down of."
#> [2] "System my site blood. Oil wait task free six dog hair."
#> [3] "Gas right bit car movie much. Main president approach give."
cat(x$paragraphs(6), sep = "\n")
#> Baby weight together lot great sing improve. Vote me inside let by part.
#> Sister deal world set wrong. Our nation fund cover.
#> Expect policy first board tough one between. Professor either class identify get particular. Technology thought not let green exactly wide ten.
#> Article stay time though interview join fly. Recently yard keep deal. Show seem use value.
#> View scientist move property feeling later poor. Tend week either never north.
#> Memory participant analysis positive cut garden lead. Black face local finish teach industry discover.
x$text(19)
#> [1] "Approach candidate."
x <- LoremProvider_en_US$new(word_connector = " --- ")
x$paragraph(4)
#> [1] "Become --- family --- long. --- Street --- friend --- meet --- big --- attention --- write --- left. --- Can --- my --- southern --- beautiful --- reduce --- begin. --- Tax --- last --- off --- opportunity --- Mr --- hear --- these."