From otoomet @ending from gm@il@com  Sun Jul  8 06:44:24 2018
From: otoomet @ending from gm@il@com (Ott Toomet)
Date: Sat, 7 Jul 2018 21:44:24 -0700
Subject: [Rd] Testing for vectors
In-Reply-To: <CAMFmJsmYxCmHx1zNQ3mgwEWA_-98rAusE3bunTKwavHYaiHDAA@mail.gmail.com>
References: <CABdHhvF5gqJt3kDj-QuU92BWPiLWwGugxnNzOfHOHo9tp_AigA@mail.gmail.com>
 <2b0f1462-99d1-d908-5ea6-e9d21be02d11@gmail.com>
 <CABdHhvHuqb82RjNwD4US_oD1pEXLdc2C3YRYpCaV7QTYhUVB9g@mail.gmail.com>
 <CAMFmJs=Fybj+FA1anmPSsWBnak+msX5C2524G=sZ9jFOnJtCTw@mail.gmail.com>
 <CABdHhvHkRcx=S5ShWkK4Y-yipX-F=xOx=8R1qm8qxeEDojrrCw@mail.gmail.com>
 <CAMFmJsmYxCmHx1zNQ3mgwEWA_-98rAusE3bunTKwavHYaiHDAA@mail.gmail.com>
Message-ID: <CAMMJQ0Z9ObfQQZ_dWkBwODsLWqCQtL7-8n+gF1ptQu_yPS5Bbw@mail.gmail.com>

Gabe,
I agree that

If by standard you mean commonly used/understood, though, I doubt
> most R users would understand a list to be a vector. I think most people
> think of atomic vectors exclusively when they hear "vector" unless they've
> very specifically been trained not to do so.


However, a common way to create lists is by a construct like
'vector("list", n)'.  Also, 'is.vector' reports TRUE for lists (but FALSE
for many other vectors).  This causes quite a bit of confusion, unless
everyone understands the different 'vector' concepts, embedded in R.

Cheers,
Ott

	[[alternative HTML version deleted]]



[Rd] Testing for vectors
Ott Toomet