<< standardize Data management strseek >>

fact >> Data management > str2conj

str2conj

yields a conjunctive vector of classes identified within strings

Calling sequence

[obtained_classes, name_classes, size_classes] = str2conj(string_id,startpos,endpos);

Arguments

string_id:

the identifier of the observations, a string vector of dimension n

startpos, endpos:

the first and last characters within string_id which define a name used as a class identifier

obtained_classes:

a conjunctive vector of dimension n which contains the integers: 1, 2, ...nclasses where nclasses is the number of the different classes

name_classes:

the name of the classes extracted from string_id; a string vector of dimensions (nclasses X 1)

size_classes:

the number of observations in each group; an integer vector of dimensions (nclasses X 1)

Examples

[og,ng,sg]=str2conj(x.i,3,6)
[og,ng,sg]=str2conj(x.i,4 )

Authors


Report an issue
<< standardize Data management strseek >>