orderByString: find the order of a string vector so it will match the order...

Description Usage Arguments Value Examples

Description

find the order of a string vector so it will match the order of another

Usage

1

Arguments

x

a vector of strings

y

a vector of strings

Value

a vector of strings

Examples

1
2
3
4
5
6
7
8
## Not run: 
a <- c("c", "a", "b")
b <- c("b", "c", "a")
index <- orderByString(a, b)    # to order b like a needs what indexes?
index
b[index]

## End(Not run)

OpenRepGrid documentation built on May 2, 2019, 4:54 p.m.