Skip to content
Prev 396641 / 398502 Next

round and trailing zero

On 2024-07-29 10:06 a.m., G?ran Brostr?m wrote:
R uses the same format for every element in each column when printing a 
matrix or dataframe, and for every element in a vector.

Your first example had only one element per column.  If you had printed 
t(haz) you'd get numbers displayed like the second version, where 
haz[1,] converts that row to a vector.

Duncan Murdoch