R error Unused arguments

+1 vote

 Hi, I'm a newbee to R. When I try to run  the below code, I get this error,  unused argument (InformationCriterion = InformationCriterion[j]) 

library(rebmix)
devAskNewPage(ask = TRUE)
data("galaxy")
write.table(galaxy, file = "galaxy.txt", sep = "\t",eol = "\n", row.names = FALSE,    col.names = FALSE)
REBMIX <- array(list(NULL), c(3, 3, 3))
Table <- NULL
Preprocessing <- c("histogram", "Parzen window", "k-nearest neighbour")
InformationCriterion <- c("AIC", "BIC", "CLC")
pdf <- c("normal", "lognormal", "Weibull")
K <- list(7:20, 7:20, 2:10)
for (i in 1:3) {
for (j in 1:3) {
for (k in 1:3) {
REBMIX[[i, j, k]] <- REBMIX(Dataset = "galaxy.txt",
Preprocessing = Preprocessing[k], D = 0.0025,
cmax = 12, InformationCriterion = InformationCriterion[j],
pdf = pdf[i], K = K[[k]])
if (is.null(Table))
Table <- REBMIX[[i, j, k]]$summary
else Table <- merge(Table, REBMIX[[i, j,k]]$summary, all = TRUE, sort = FALSE)
    }
 }
}
Dec 14, 2018 in Data Analytics by Tyrion anex
• 8,700 points
6,488 views

1 answer to this question.

0 votes

 invoke REBMIX by trying this:

REBMIX[[i, j, k]] <- REBMIX(Dataset = "galaxy.txt",
    Preprocessing = Preprocessing[k], D = 0.0025,
    cmax = 12, Criterion = InformationCriterion[j],
    pdf = pdf[i], K = K[[k]])
answered Dec 14, 2018 by Sophie may
• 10,620 points

Related Questions In Data Analytics

0 votes
1 answer

R - Error: Duplicate identifiers for rows

You can try the below code as ...READ MORE

answered Apr 9, 2018 in Data Analytics by kappa3010
• 2,090 points
2,971 views
0 votes
1 answer

Drop unused levels from a data frame in R

You can use this command droplevels() y <- ...READ MORE

answered Jun 14, 2018 in Data Analytics by DataKing99
• 8,250 points
1,980 views
+3 votes
2 answers

Error: could not find function - R Programming

Yes, Just like @Maverik said, It happens ...READ MORE

answered Aug 23, 2019 in Data Analytics by anonymous
• 33,030 points
33,703 views
0 votes
1 answer

Error saying "Error in rnorm() : argument "n" is missing, with no default" in R

Hey @ali, rnorm() function requires an argument, ...READ MORE

answered Oct 30, 2018 in Data Analytics by Maverick
• 10,840 points
3,332 views
+1 vote
1 answer

Error saying "could not find function "shinyUI"" in shiny R

Its a small spelling mistake that you've ...READ MORE

answered Nov 28, 2018 in Data Analytics by Maverick
• 10,840 points
2,626 views
+1 vote
1 answer

Error saying "could not find function dashboardPage" in shiny R

Include this line in the code: Library(shinydashboard) READ MORE

answered Nov 29, 2018 in Data Analytics by Maverick
• 10,840 points
3,659 views
+1 vote
1 answer

R & MySQl : Error connecting to Database

Check the dbConnect's documentation, you must pass values ...READ MORE

answered Dec 14, 2018 in Data Analytics by Sophie may
• 10,620 points
2,089 views
0 votes
1 answer

R error: when installing packages from terminal

I faced the same problem, you must set ...READ MORE

answered Dec 14, 2018 in Data Analytics by Sophie may
• 10,620 points
2,816 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP