| To: | "'s-news@lists.biostat.wustl.edu'" <s-news@lists.biostat.wustl.edu> |
|---|---|
| Subject: | abbreviate long names |
| From: | "Rosenfeld, Simon (NIH/NCI)" <rosenfes@mail.nih.gov> |
| Date: | Tue, 25 Mar 2003 15:48:45 -0500 |
Many thanks to John Fox, Spencer Graves and Peter Sherer for help with my
request about abbreviation of long names.
John Fox suggested a good solution:
> name <- "ABCD~~blablablablablablablablabla"
> substring(name, 1, regexpr("~", name) - 1)
[1] "ABCD"
which works nice for me
Simon
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Course***R/S-plus Programming Techniques II this April 28-29 in San Francisco by XLSolutions Corp., elvis |
|---|---|
| Next by Date: | t(x)%*%x is non-symmetric in S-plus 6.1 on HP xw8000, Tony Plate |
| Previous by Thread: | Re: abbreviate long names, Spencer Graves |
| Next by Thread: | name of object as text?, Todd Hatfield |
| Indexes: | [Date] [Thread] [Top] [All Lists] |