| To: | duo wan <duo_wan@yahoo.com> |
|---|---|
| Subject: | Re: help with trucation |
| From: | Spencer Graves <spencer.graves@pdf.com> |
| Date: | Fri, 25 Feb 2005 09:01:19 -0800 |
| Cc: | s-news@lists.biostat.wustl.edu |
| In-reply-to: | <20050225012812.71980.qmail@web50807.mail.yahoo.com> |
| References: | <20050225012812.71980.qmail@web50807.mail.yahoo.com> |
| User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) |
cv <- c("Now is the time", "for all good")
substring(cv, 1,1)
[1] "N" "f"
Is this what you want?
spencer graves
duo wan wrote: Dear S-users:I have a character variable with 100 records and now I want to read the first letter from each record into a new variable. how can I do it in S-plus? thanks, Vincent------------------------------------------------------------------------ Do you Yahoo!?Yahoo! Mail <http://us.rd.yahoo.com/mail_us/taglines/virus/*http://promotions.yahoo.com/new_mail/static/protection.html> - Helps protect you from nasty viruses. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Isotonic Regression, Prof Brian Ripley |
|---|---|
| Next by Date: | Re: Bio_equivalence, Lanre Okusanya |
| Previous by Thread: | help with trucation, duo wan |
| Next by Thread: | Usefulness of chisqr.gof, John Fennick |
| Indexes: | [Date] [Thread] [Top] [All Lists] |