| Search Locate Previous Next | Contents |
Table cells may be Left, Centre, Right or Decimal aligned. This gives a vector of alignments, with one value for each column. If required it will be reshaped to match the number of columns. Note that alignment by individual cell is supported by nltList, but nltSpread aligns by column only.
nltAlign 'left' 'centre' 'dec2' 'dec1'
Note that you must give the expected number of places after the decimal point with the decimal alignment. If any numbers in the column have more places than you give, they will overflow to the right. There is adequate space for a closing parenthesis after the final digit, so decimal2 is fine for (23.45). You can use nlDecimal to over-ride the default separator character.
Tip: to get correct alignment on integer data with parenthesised negatives, use decimal0 alignment which will leave sufficient space after the last digit to exdent the closing parenthesis.
Only the initial letters of the alignments are required, but be sure to pass these as a vector of vectors, not as a single word:
nltAlign ,¨3 7½'crcl' nltList 3 7½¼99
This will make a pattern of cell alignments, centre, right, centre, left ... and so on.