s-news
[Top] [All Lists]

filling multiple inserted columns redux

To: s-news@lists.biostat.wustl.edu
Subject: filling multiple inserted columns redux
From: Sarah Henderson <sarah.henderson@ubc.ca>
Date: Wed, 13 Sep 2006 12:37:30 -0700
In-reply-to: <6.0.3.0.2.20060913120648.02143ec0@mail.interchange.ubc.ca>
References: <6.0.3.0.2.20060913120648.02143ec0@mail.interchange.ubc.ca>

Hello to all --

My apologies for not providing a complete example.

This is what I am trying to do:

my.data.frame <- insert.col(my.data.frame, "@END", 10, fill.expression=???)

Where I have a different fill expression (and column name) for each of the columns being inserted. I tried to provide a list of expressions with c(), but it didn't work out.

This is a trivial example, but I suspect that the solution would be helpful for something else I'm trying to do.

Thanks again!

Sarah


Hello all --

Does anyone know if/how it's possible to fill multiple inserted columns with different expressions?

Thanks!

Sarah


______________________________________________

Sarah Henderson
Department of Health Care & Epidemiology
University of British Columbia
www.firesmoke.ubc.ca

Office: 604.822.1274
Cell: 604-910-9144
Fax: 604.822.9588

Michael Smith Foundation for Health Research Trainee
Canadian Institutes of Health Research Trainee
--------------------------------------------------------------------
This message was distributed by s-news@lists.biostat.wustl.edu.  To
unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
the BODY of the message:  unsubscribe s-news


<Prev in Thread] Current Thread [Next in Thread>