Quantcast

File Handling in R

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

File Handling in R

HIMANSHU MITTAL
Hello all,
I have a txt file with some data which isn't in any organized form like a
table, but just simple text.
Is there any way to read the file char by char and store the necessary
characters?

Regards,
Himanshu Mittal

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] 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 | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: File Handling in R

Michael Weylandt
Take a look at scan and/or readLines

Michael

On Jun 28, 2012, at 9:02 AM, HIMANSHU MITTAL <[hidden email]> wrote:

> Hello all,
> I have a txt file with some data which isn't in any organized form like a
> table, but just simple text.
> Is there any way to read the file char by char and store the necessary
> characters?
>
> Regards,
> Himanshu Mittal
>
>    [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] 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.

______________________________________________
[hidden email] 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.
Loading...