[R] need help with renaming a variable

Pavel Yakovlev pyakov01 at gmail.com
Thu Jan 22 18:53:09 CET 2015


I am new to R, so my question/problem might be very basic, but I cannot
figure out how to solve it.
So, I would really appreciate your help.

I would like to rename a variable in a very large file (181GB) called
"2013.xdf" that is saved on my external hard drive.

I tried running the following code to rename variable # 2 in the file and
save this change, which produced some errors that I cannot resolve:

> temp.data <- rxGetVarInfo("E:/2013.xdf")
> temp.data[2] <- "transsactionnumber"
> rxSetVarInfo(2013fixed.data, outfile)
Error: unexpected symbol in "rxSetVarInfo(2013fixed.data"
> rxSetVarInfo(temp.data, outfile)
Error in is.data.frame(file) : object 'outfile' not found
> rxSetVarInfo(outfile)
Error in rxSetVarInfoXdf(varInfo, file = data) :
  object 'outfile' not found

Please help me figure out how to do it right.


Pavel A. Yakovlev, Ph.D.
Associate Professor
819 Rockwell Hall
Department of Economics and Finance
Duquesne University
600 Forbes Avenue
Pittsburgh, PA 15282
Work Phone: 412-396-1908

	[[alternative HTML version deleted]]

More information about the R-help mailing list