caret | R Documentation |
Machine Learning
caret(
data,
dep,
covs,
facs,
trans = "bagImpute",
method = "pls",
cm1 = "ctree",
mecon = "cv",
number = 10,
repeats = 5,
tune = 10,
per = 0.7,
over1 = TRUE,
over = FALSE,
cla = FALSE,
cla1 = FALSE,
tra = TRUE,
tes = FALSE,
plot = FALSE,
plot1 = FALSE,
plot2 = FALSE,
plot3 = FALSE,
plot4 = FALSE,
plot5 = FALSE,
plot6 = FALSE,
plot7 = FALSE,
ml = "pls,ctree,knn,rf",
me = "cv",
num = 10,
rep = 5,
tune1 = 10,
accu = FALSE,
kapp = FALSE,
width = 500,
height = 500,
width1 = 500,
height1 = 500,
width2 = 500,
height2 = 500,
width3 = 500,
height3 = 500,
width4 = 500,
height4 = 500,
width5 = 500,
height5 = 500,
width6 = 500,
height6 = 500,
width7 = 500,
height7 = 500,
plot8 = FALSE,
width8 = 500,
height8 = 500
)
data |
. |
dep |
. |
covs |
. |
facs |
. |
trans |
. |
method |
. |
cm1 |
. |
mecon |
. |
number |
. |
repeats |
. |
tune |
. |
per |
. |
over1 |
. |
over |
. |
cla |
. |
cla1 |
. |
tra |
. |
tes |
. |
plot |
. |
plot1 |
. |
plot2 |
. |
plot3 |
. |
plot4 |
. |
plot5 |
. |
plot6 |
. |
plot7 |
. |
ml |
. |
me |
. |
num |
. |
rep |
. |
tune1 |
. |
accu |
. |
kapp |
. |
width |
. |
height |
. |
width1 |
. |
height1 |
. |
width2 |
. |
height2 |
. |
width3 |
. |
height3 |
. |
width4 |
. |
height4 |
. |
width5 |
. |
height5 |
. |
width6 |
. |
height6 |
. |
width7 |
. |
height7 |
. |
plot8 |
. |
width8 |
. |
height8 |
. |
A results object containing:
results$instructions | a html | ||||
results$text1 | a preformatted | ||||
results$text | a preformatted | ||||
results$over1 | a table | ||||
results$over | a table | ||||
results$tra | a table | ||||
results$tes | a table | ||||
results$cla1 | a table | ||||
results$cla | a table | ||||
results$plot2 | an image | ||||
results$plot8 | an image | ||||
results$plot | an image | ||||
results$plot4 | an image | ||||
results$plot1 | an image | ||||
results$plot3 | an image | ||||
results$plot5 | an image | ||||
results$plot6 | an image | ||||
results$mf$accu | a table | ||||
results$mf$kapp | a table | ||||
results$plot7 | an image | ||||
results$pred | an output | ||||
Tables can be converted to data frames with asDF
or as.data.frame
. For example:
results$over1$asDF
as.data.frame(results$over1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.