Stata 15 help for strdup()

[FN] String functions

Function

strdup(s1,n) Description: there is no strdup() function; instead the multiplication operator is used to create multiple copies of strings

"hello" * 3 = "hellohellohello" 3 * "hello" = "hellohellohello" 0 * "hello" = "" "hello" * 1 = "hello" "Здравствуйте " * 2 = "Здравствуйте Здравствуйте " Domain s1: strings Domain n: nonnegative integers 0, 1, 2, ... Range: strings


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index