You are not logged in. You can browse but not post. Login or Register by clicking 'Login or Register' at the top-right of this page. For more information on Statalist, see the FAQ.
That error appears because -strltrim- is not a command, it is a function. You can enter something like the following
Code:
generate newvar = strltrim(oldvar)
where the -generate-command uses the strltrimfunction.
I tried but still not working, the data in excel are in a new line, so the first line is empty, then the second line is the input. How should I delete the empty row?
I would opt to use -ustrltrim()- instead of its non-Unicode counterpart because the Unicode version handles Unicode whitespace and blanks, including new line and linefeed characters from the ASCII subset.
I tried but still not working, the data in excel are in a new line, so the first line is empty, then the second line is the input. How should I delete the empty row?
Please use -dataex- to post a sample of your data so that it is easier for others to understand your issue, replicate it, and solve the problem.
I would opt to use -ustrltrim()- instead of its non-Unicode counterpart because the Unicode version handles Unicode whitespace and blanks, including new line and linefeed characters from the ASCII subset.
Comment