Page 1 of 1

How to delete a substring

Posted: Tue Jun 30, 2015 9:19 am
by piotrw
Hi, EViews 8.1, I would like to delete a substring from a string at specified position. If I use

%coefSigns = @wdrop(%coefSigns, @word(%coefSigns, !word))

it works fine but if there are the same names in coefSigns, all of them are deleted. I need a solution as follows:

%coefSigns = @...(%coefSigns, !position)

to iteratively get rid of a character from a specified position and not based od "pattern_list".

best regards

Re: How to delete a substring

Posted: Tue Jun 30, 2015 10:00 am
by EViews Gareth
I think you'll have to use a combination of @left and @mid to join together the parts not including the character you want.

Re: How to delete a substring

Posted: Tue Jun 30, 2015 10:02 am
by piotrw
Thanks for reply