| To: | <s-news@wubios.wustl.edu> |
|---|---|
| Subject: | [S] sampling from a vector subset |
| From: | "Valerie Zartarian" <VZARTARIAN@usgs.gov> |
| Date: | Tue, 20 Apr 1999 17:55:54 -0400 |
| Sender: | owner-s-news@wubios.wustl.edu |
I have a vector of the following form:
temp_c("R","N","N","R","M","M","R","R","M","R","R","N","R","R","N")
I want to replace a random sample of 3 of the "R"s with a "Z". I would greatly
appreciate any insight into how to do this.
Thank you very much.
Valerie Zartarian
-----------------------------------------------------------------------
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
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [S] powerpoint wizard, Ed Callahan |
|---|---|
| Next by Date: | [S] nls() finds mystery NA's?, Joe Mortzheim |
| Previous by Thread: | [S] powerpoint wizard, Ed Callahan |
| Next by Thread: | Re: [S] sampling from a vector subset, John Wallace |
| Indexes: | [Date] [Thread] [Top] [All Lists] |