Print first few lines of output
21 views (last 30 days)
Suppose I do
Then it will print out statistics of all the variables in the table, which is good. But at the same time it will output all the information and will create "auto-scroll" that is very cumbersome. Thus I want to print out the first five lines of the output.
does not work.
Walter Roberson on 23 Jan 2021
Edited: Walter Roberson on 23 Jan 2021
If summary() was just being used as an example, then
temp = regexp(evalc("Put The Command Here"), '\n', 'split');
temp = regexp(evalc("summary(T)"), '\n', 'split');
You can build a function to do this for you.