Displaying 1 result from an estimated 1 matches for "newbest".
Did you mean:
newbes
2007 Sep 28
1
Converting to mode numeric within a matrix
Hello,
I create a matrix:
best <- matrix(0, ncol=2, nrow=num.selected,
dimnames=list(the.best$.Name, c("Probability(%)", "Inside")))
best[,1] <- as.numeric(the.best$Total*100)
best[,2] <- ifelse(the.best$Weight==0, "No", "Yes")
What I want is the second column of mode numeric, but it is of mode
character, despite the attempt to convert it to