From bernd.funovits at helsinki.fi  Thu Jun 22 17:11:49 2017
From: bernd.funovits at helsinki.fi (Bernd Funovits)
Date: Thu, 22 Jun 2017 18:11:49 +0300
Subject: [Rd] Unexpected behaviour of base::qr()$rank
Message-ID: <e5526d3d-b517-95a5-67c5-ea588cfe6a06@helsinki.fi>

Hello,

I experienced some unexpected behaviour while determining the rank of 
matrices (sometimes 1x1 matrices):
base::qr(matrix(1e-20))$rank returns 1 (incorrect)
base::qr(diag(c(1, 1e-20)))$rank returns 2 (incorrect)

Best regards,
Bernd

 > R.version
                _
platform       x86_64-w64-mingw32
arch           x86_64
os             mingw32
system         x86_64, mingw32
status
major          3
minor          4.0
year           2017
month          04
day            21
svn rev        72570
language       R
version.string R version 3.4.0 (2017-04-21)
nickname       You Stupid Darkness



[Rd] Unexpected behaviour of base::qr()$rank
Bernd Funovits