R: Generate random strings

randomStrings {qs} | R Documentation

## Generate random strings

### Description

A function for generating a character vector of random strings, for testing purposes.

### Usage

    randomStrings(N, string_size)

### Arguments

`N` | The number of random strings to generate
`string_size` | The number of characters in each string (default 50).

### Value

A character vector of random alpha-numeric strings.

### Examples

    randomStrings(N=10, string_size=20) # returns 10 alphanumeric strings of length 20
    randomStrings(N=100, string_size=200) # returns 100 alphanumeric strings of length 200

[Package qs version 0.23.5 Index]