[R] Left/right hand side characters

2007-05-14 Thread Brooks, Anthony B
Hello all Is there a way reducing the number of characters in a list so that just the left n numbers of characters is given? For example, If I have a list, listnames, which consists of 4 strings of 6 characters; listnames [1] item12 item34 item56 item78 Is there a way to reduce this so

Re: [R] Left/right hand side characters

2007-05-14 Thread Gabor Csardi
See ?substr. Gabor On Mon, May 14, 2007 at 05:49:25PM +0100, Brooks, Anthony B wrote: Hello all Is there a way reducing the number of characters in a list so that just the left n numbers of characters is given? For example, If I have a list, listnames, which consists of 4 strings of 6

Re: [R] Left/right hand side characters

2007-05-14 Thread J . delasHeras
check ?substr substr(item54,1,5) [1] item5 Jose Quoting Brooks, Anthony B [EMAIL PROTECTED]: Hello all Is there a way reducing the number of characters in a list so that just the left n numbers of characters is given? For example, If I have a list, listnames, which consists of 4