Skip to content
Prev 257258 / 398506 Next

How to remove the double or single quote from a string(unquote?)?

Hi, Jing Jiang,

maybe

as.formula( paste( "V12 ~ V", i, sep = ""))

inside the call to glm() does what you need.

Hth  --  Gerrit
On Tue, 19 Apr 2011, JingJiang Yan wrote:

            
---------------------------------------------------------------------
Dr. Gerrit Eichner                   Mathematical Institute, Room 212
gerrit.eichner at math.uni-giessen.de   Justus-Liebig-University Giessen
Tel: +49-(0)641-99-32104          Arndtstr. 2, 35392 Giessen, Germany
Fax: +49-(0)641-99-32109        http://www.uni-giessen.de/cms/eichner