Why do you need to use scan()? read.table() would be much easier.

Sarah

On Thu, Oct 18, 2012 at 9:14 AM, killerkarthick <karthick....@gmail.com> wrote:
> Hi....
>      I have one text file which containing 4 variables with 10 observations.
> I would like to import with scan() function. Please give some
> suggestion............
> Thanks...
> Mydata set is.
>
> id      name    sex     age
> 111     HELEN   f       22
> 112     DONNA   f       22
> 113     ERIC    m       21
> 114     LINDA   f       23
> 115     AXEL    m       27
> 116     Madhuri f       32
> 117     Tarun   m       39
> 118     Aashirya        f       23
> 119     Nachik  m       24
> 120     Leena   f       32
>
>

-- 
Sarah Goslee
http://www.functionaldiversity.org

______________________________________________
R-help@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.

Reply via email to