aboutsummaryrefslogtreecommitdiff
path: root/R
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2018-03-30 21:16:49 +0100
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2018-03-30 21:16:49 +0100
commit45716e4d869af5da61677cc524da024f2573040d (patch)
tree9c08e0f1b9949d425b4ae429e4916414e6673126 /R
parentreturn invisibly (diff)
downloadrgensvm-45716e4d869af5da61677cc524da024f2573040d.tar.gz
rgensvm-45716e4d869af5da61677cc524da024f2573040d.zip
Get column names from x directly
Diffstat (limited to 'R')
-rw-r--r--R/coef.gensvm.R3
1 files changed, 2 insertions, 1 deletions
diff --git a/R/coef.gensvm.R b/R/coef.gensvm.R
index 60317aa..e34bba6 100644
--- a/R/coef.gensvm.R
+++ b/R/coef.gensvm.R
@@ -38,7 +38,8 @@
coef.gensvm <- function(fit, ...)
{
V <- fit$V
- name <- c("translation", fit$feature.names)
+ x <- eval.parent(fit$call$x)
+ name <- c("translation", colnames(x))
rownames(V) <- name
return(V)
}