Re: [R] Line numbers of scan(0

From: David Winsemius <>
Date: Fri, 29 Apr 2011 00:28:49 -0400

On Apr 28, 2011, at 11:07 PM, Lisa wrote:

> I am trying to write a function to check unusual values in my
> datasets and
> correct them. As some R users suggested, I try to use readline() and
> scan()
> in my function. Suppose there are several unusual values in a
> dataset. I
> want to change the line numbers in scan() to something like: unusual
> value
> 1, unusual value 2 and so on. I think this can make the correction
> much
> easier.

Read the data in and process them. scan() is not the right tool for that. It is a low level function on which read.table and its kin are based.

(Also ... do read the Posting Guide and learn to include context in your questions.)


David Winsemius, MD
West Hartford, CT

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 29 Apr 2011 - 04:34:08 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 - 05:10:36 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive