function Line = commandLineXDisplay(this, XTable)
%

%   Copyright 2016-2022 The MathWorks, Inc.

nvars = size(XTable,2);
Line = '';
for v = 1:nvars
    val = XTable.(v);
    if iscategorical(val)
        if ismissing(val)
            Name = '-';
        else
            Name = char(val);
        end
        Line = [Line, sprintf(' %12s |', Name(1:min(numel(Name),12)))];
    else
        if ismissing(val)
            Name = '-';
            Line = [Line, sprintf(' %12s |', Name(1:min(numel(Name),12)))];
        else
            Line = [Line, sprintf(' %12.5g |', val)];
        end
    end
end
end
