[R] need help with renaming a variable

Jim Lemon drjimlemon at gmail.com
Thu Jan 22 23:50:35 CET 2015


Hi Pavel,
The problem may be with the name "2013fixed.data". I don't know where
that came from, but try naming it "fixed2013.data".

Jim


On Fri, Jan 23, 2015 at 4:53 AM, Pavel Yakovlev <pyakov01 at gmail.com> wrote:
> Hello.
>
> 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.
>
> Gratefully,
> --
>
> 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]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.



More information about the R-help mailing list