[R] Convert Text File Data into *.RData

Uwe Ligges ligges at statistik.uni-dortmund.de
Tue May 9 09:10:16 CEST 2006


j.joshua thomas wrote:

> Dear R Users,
> 
> It works fine. while i read the dataset from the text file. (refered R-data
> import -export*.pdf)
> 
> 
>>read.table("c:\\DataES.txt")
> 
>        V1 V2
> 1  ACW261 33
> 2  ACW311  7
> 3  ACW321 31
> 4  ACW342 39
> 5
> 6
> 7
> Now my question is how do i /*convert  text file Data into *.RData* which i
> can use as a dataset/data.matrix whereby
> i can use it for clusplot.

I think you should assign it to a value and simply use it:

DataES <- read.table("c:\\DataES.txt")
foo(..., DataES, ...)

If you really want to generate a file in the Rdata format, see ?save.


Uwe Ligges



> Thanks in Advance,
> 
> JJ
> ---
> 
> --
> Lecturer J. Joshua Thomas
> KDU College Penang Campus
> Research Student,
> University Sains Malaysia
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list