Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

Problem

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

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)

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×