tf = endsWith(str, pattern)
tf = endsWith(str, pattern,'IgnoreCase', true)
tf = endsWith(str, pattern,'IgnoreCase', false)
| Paramètre | Description |
|---|---|
| str | une chaîne, un tableau de chaînes, une cellule de chaînes ou un tableau catégoriel. |
| pattern | une chaîne à rechercher. |
| Paramètre | Description |
|---|---|
| tf | une matrice de booléens. |
endsWith renvoie vrai si str se termine parpattern.
Si str est un tableau catégoriel, endsWith teste le nom de catégorie de chaque élément et renvoie un tableau logique de même taille. Les éléments non définis renvoient false. pattern ne peut pas être catégoriel.
str = 'To make a mountain out of a molehill';
k = endsWith (str, 'hill')
k = endsWith (str, 'molehill')
k = endsWith (str, 'Hill', 'IgnoreCase', true)
A = {'Nel', 'son'; 'Nelson', 'Modules'}
k = endsWith(A, 'son')
A = ["Nel", "son"; "Nelson", "Modules"]
k = endsWith(A, "son")
C = categorical({'winter storm', 'fire', 'Thunder Storm', ''});
tf = endsWith(C, "storm", 'IgnoreCase', true)
| Version | Description |
|---|---|
| 1.0.0 | version initiale |
| 2.0.0 | tableau catégoriel accepté comme entrée str. |