Re: [R] Line numbers of scan(0

From: David Winsemius <dwinsemius_at_comcast.net>
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

______________________________________________
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 - 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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive