Re: [S] several questions

David Favin (david.favin@worldnet.att.net)
Sun, 04 Oct 1998 05:49:36 +0000


Suzie:

Notw the difference between.
> -2:3
[1] -2 -1 0 1 2 3

and

> -(2:3)
[1] -2 -3

The latter is what you want.

David

At 09:50 PM 10/3/98 EDT, you wrote:
>I'm not sure how to modify a data frame object so that I can delete columns of
>data which are not necessary next to each other.
>
>Suppose I have 6 columns - Y LY SY X1 X2 X3 X4 in a data set called SUSAN
>
>where LY = log(Y)
>and SY = sqrt(Y).
>
>Suppose I have a function called stuff and I want to include Y and all the X
>columns but exclude LY and SY.
>
>>stuff(Susan[,-2:3], Susan[,1])
>
>isn't working.
>-----------------------------------------------------------------------
>This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
>send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
>message: unsubscribe s-news
>
David L. Favin
221 Queens Dr. S.
Little Silver NJ 07739
david.favinXXX@worldnet.att.net (Remove XXX to send e-mail)
732-741-6439

-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news