Package 'lipsum'

Title: Generate dummy text
Description: Functions that generate dummy text. This is useful when developping a corporate identity for documents.
Authors: Thierry Onkelinx [aut, cre] , Research Institute for Nature and Forest [cph, fnd]
Maintainer: Thierry Onkelinx <[email protected]>
License: GPL-3
Version: 0.1.0
Built: 2024-08-19 02:30:08 UTC
Source: https://github.com/inbo/lipsum

Help Index


The lipsum corpus

Description

A data frame with sentences from the lipsum corpuse

Format

A data frame with 3189 rows and 4 variables:

paragraph

an integer id of the paragraph

characters

the number of characters in the sentence

words

the number of words in the sentence

sentence

the actual sentence


return lipsum paragraphs

Description

return lipsum paragraphs

Usage

paragraph(id, words, characters, n = 1)

Arguments

id

the id of the paragraph

words

an optional prefered number of words. Only used when ìd is not given.

characters

an optional prefered number of characters. Only used when ìd and words are not given.

n

the number of random paragraphs. Only used when id is not given.

Value

an string of paragraphs. The paragraphs are separated by a double newline character.

Examples

paragraph()
paragraph(n = 2)
paragraph(10)
paragraph(c(7, 1))
paragraph(words = 12, n = 2)
paragraph(characters = 90)

Return sentences from the lipsum corpus

Description

A single paragraph with the sentences will be displayed

Usage

sentence(id, n = 1, words, characters)

Arguments

id

the number of the sentence

n

the number of random sentences. Only used when id is not given.

words

an optional prefered number of words. Only used when ìd is not given.

characters

an optional prefered number of characters. Only used when ìd and words are not given.

Value

a string of sentences

Examples

sentence()
sentence(1)
sentence(2:3)
sentence(words = 5)