@wcross returns an error message when parenthesis are involved and @winterleave results are incorrect
%x = "a b c "
string a = @winterleave("log( log( log(",%x)
%t = @wcross("""log(""", %x)
string b = @wcross(%t, """)""")
@wcross error
Moderators: EViews Gareth, EViews Moderator
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: @wcross error
We'll take a look.
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: @wcross error
@winterleave looks right to me.
@wcross error is a bug. It will be fixed next patch.
@wcross error is a bug. It will be fixed next patch.
Re: @wcross error
results of @winterleave are different depending on whether the parentheses are present or not - it is a bug. By the way, you could also fix the same bug in other string functions @wsort (wrong order of sorting), @wdelim (produces error message), @wsplit (produces error message)
%x = "a b c "
string a = @winterleave("log log log",%x)
string b = @winterleave("log( log( log(",%x)
'a equals: log a log b log c
'b equals: log( log( log( a "" b "" c
%x = "a b c log( x"
%y = "a, b, c, log("
string s1 = @wsort(%x, "D")
string s2 = @wdelim(%y, ",", "-")
svector s3 = @wsplit(%y, ",")
%x = "a b c "
string a = @winterleave("log log log",%x)
string b = @winterleave("log( log( log(",%x)
'a equals: log a log b log c
'b equals: log( log( log( a "" b "" c
%x = "a b c log( x"
%y = "a, b, c, log("
string s1 = @wsort(%x, "D")
string s2 = @wdelim(%y, ",", "-")
svector s3 = @wsplit(%y, ",")
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: @wcross error
That isn't a bug - all of the W functions treat open parens as part of a word.
"log( log( log(" is all one word. By design.
"log( log( log(" is all one word. By design.
Who is online
Users browsing this forum: No registered users and 2 guests
