Re: [R] Line numbers of scan(0

From: David Winsemius <dwinsemius_at_comcast.net>
Date: Thu, 28 Apr 2011 21:41:21 -0400

On Apr 28, 2011, at 5:40 PM, Lisa wrote:

> Dear all,
>
> Does everyone know how to change the line numbers of scan()? For
> example,
>
>> scan(n = 3)
> 1: 4
> 2: 6
> 3: 9
> Read 3 items
> [1] 4 6 9
>
> I just want to change the line numbers 1, 2, and 3 to, say a, b, and
> c that
> look like this:
>
>> scan(n = 3)
> a: 4
> b: 6
> c: 9
> Read 3 items
> [1] 4 6 9
>
> Any help will be appreciated.

If I were an actor I would be asking: "So what is my motivation?"

-- 

David Winsemius, MD
West Hartford, CT

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 29 Apr 2011 - 01:56:14 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 29 Apr 2011 - 04:10:34 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive