Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renaming fails on composite Xdf if rownames present #31

Open
hongooi73 opened this issue Jul 3, 2017 · 2 comments
Open

Renaming fails on composite Xdf if rownames present #31

hongooi73 opened this issue Jul 3, 2017 · 2 comments

Comments

@hongooi73
Copy link
Contributor

# explicitly create a composite Xdf (directory)
mtc <- RxXdfData("mtcarsc", createCompositeSet=TRUE)
rxDataStep(mtcars, mtc, overwrite=TRUE)

names(mtc)[1] <- "mpg2"
# In 'UpdateMetaInfo()' the two headers have different numbers of variables: 12 vs 11.
# Error in doTryCatch(return(expr), name, parentenv, handler) : 
#   In 'UpdateMetaInfo()' the two headers have different numbers of variables: 12 vs 11.
@hongooi73
Copy link
Contributor Author

This happens if dataset has row names. Following works:

irc <- RxXdfData("misc/irisc", createComposite=TRUE)
rxDataStep(iris, irc)
names(irc)[1] <- "sl"

@hongooi73 hongooi73 changed the title Renaming fails on composite Xdf Renaming fails on composite Xdf if rownames present Jul 31, 2017
@hongooi73
Copy link
Contributor Author

TFS item 78050

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant