Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Error in paste("Variable type cannot be changed from", varTypeOrig, "to", : argument "varName" is missing, with no default


View products that this article applies to.

Problem

Error in paste("Variable type cannot be changed from", varTypeOrig, "to", : argument "varName" is missing, with no default

↑ Back to the top


Solution

The nameVarInfo object expects to be a list of variables with each variable in the list having a list of properties set, of which 'newName' is one. The correct way to set the nameVarInfo with updated column names would be:

nameVarInfo <- list(existingName1 = list(newName = "nameiwant1"), 
existingName2 = list(newName = "nameiwant2"), 
existingName3 = list(newName = "nameiwant3), 
...) 
rxSetVarInfoXdf(nameVarInfo, retStubxdf)

↑ Back to the top


Keywords: kb

↑ Back to the top

Article Info
Article ID : 3104231
Revision : 1
Created on : 1/7/2017
Published on : 10/29/2015
Exists online : False
Views : 59