无法删除xdf文件中的列 [英] Unable to delete a column in xdf file

查看:56
本文介绍了无法删除xdf文件中的列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨专家

我想删除xdf文件中的一列。

I would like to delete a column in my xdf file.

我使用此代码执行此任务:

I use this code to do this task:

rxDataStep(inData=input_xdf ,outFile =input_xdf,overwrite =TRUE , transforms=list(card_vs_cash = NULL))

但此列仍保留在xdf文件中。虽然在运行这行代码后修改/更新了我的xdf文件的修改日期

But this column still remains in the xdf file. although after running this line of code modifieyng date of my xdf file is changed/updated

我该怎么做才能解决这个问题?

What should I do to solve this problem?

推荐答案

试试' rxDataStep的varsToKeep'或'varsToDrop'参数(当覆盖到同一文件时,使用其中一个,而不是两个)。您可以通过键入"?rxDataStep"来查看R控制台中rxDataStep功能的帮助。

try 'varsToKeep' or 'varsToDrop' parameters of rxDataStep (use either one, not both when overwriting to same file). You can view the help for rxDataStep function in R console by typing '?rxDataStep'.


这篇关于无法删除xdf文件中的列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆