search for: welfare_group_160

Displaying 1 result from an estimated 1 matches for "welfare_group_160".

2006 Nov 14
1
greatest common substring
Dear R-members, Suppose I have a vector with the following strings: V = c("Welfare_Group_1024", "Welfare_Group_1536", "Welfare_Group_160") I want to 'automatically generate a nice y-axis label for this data. A good candidate is something close to "Welfare Group". Is there an easy way to compute something close to the greatest common substring? It would be nice if it also works in this case: V = c("xxxWelfar...