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

Description Usage Arguments Value Examples

View source: R/utils.r

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)

markheckmann/OpenRepGrid documentation built on April 30, 2021, 2:33 a.m.