Displaying 8 results from an estimated 8 matches for "clovermail".
2009 Dec 09
1
Exporting Contingency Tables with xtable
Dear R-philes:
I am having an issue with exporting contingency tables with xtable().
I set up a contingency and convert it to a matrix for passing to
xtable() as shown below.
v.cont.table <- table(v_lda$class, grps,
dnn=c("predicted", "observed"))
v.cont.mat <- as.matrix(v.cont.table)
Both produce output as follows:
observed
predicted uh uh~
uh 201
2009 Oct 22
1
Converting a Vector into a 2-level Factor
Hello Everyone,
Let's say I have a vector as follows:
vowels = c("aa", "aa", "ah", "ao", "eh)
I want to make a factor consisting of two levels: the things that are
"aa" and those that are not "aa". How would I do that?
I tried using factor(vowels, levels=c("aa", "~aa"), exclude=NULL), but
this gives
2010 Jul 29
1
Displaying Counts of Unused Factors in Contingency Tables with table()
R-philes,
I have a question about displaying counts of unused factors using the
table() function. I have two vectors with character data in them:
local.labels("ah", "ah", "ah~")
local.preds("ah", "ah", "ah")
If I use the table function as shown below, I get an error because the
number of levels do not match up.
v.cont.table <-
2011 Jun 09
2
Coercing Output from mget() into Proper Data Frame
Hello R-philes:
I have the following function that gets the output of mget() and
converts it to a data frame to return. What I am finding is that the
dimensions are wrong. Basically, I get:
bridesmaid wed u see m gt lt like love X.0 dress pagetrack one go X3 get
1 56 35 27 30 24 20 20 23 28 17 25 16 16 28 15 26
Instead, I want something like:
[1] bridesmaid
2009 Nov 25
0
ROCR Issue: Averaging Across Multiple Classifier Runs in ROC Curve
Dear R-philes,
I am having some trouble averaging across multiple runs of a
classifier in an ROC Curve. I am using the ROCR package and the
plot() method.
First, I initialize a list with two elements where each element is a
list of predictions and labels:
vowel.ROC <- list(predictions=list(), labels=list())
For every run of the classifier, I append the scores and labels to
their
2017 Jun 12
3
Bug: rsync erroneously changes modification time
How exactly does rsync determine that the copy has the incorrect
timestamp and not the source file?
Does it assume that the copy must be incorrect or are there other
criteria that have to be considered?
Quoting Kevin Korb via rsync <rsync at lists.samba.org>:
> Whenever you use --times (included in --archive) rsync will fix
> incorrect time stamps. The only thing --size-only is
2010 Jan 22
2
Computing Confidence Intervals for AUC in ROCR Package
Dear R-philes,
I am plotting ROC curves for several cross-validation runs of a
classifier (using the function below). In addition to the average
AUC, I am interested in obtaining a confidence interval for the
average AUC. Is there a straightforward way to do this via the ROCR
package?
plot_roc_curve <- function(roc.dat, plt.title) {
#print(str(vowel.ROC))
pred <-
2017 Jun 11
2
Bug: rsync erroneously changes modification time
When a file of same length already exists at the destination then the
command 'rsync --archive --size-only' (--archive is same as -rlptgoD)
may change the modification time of the destination file even if no
modification was made.
Type the following commands in a terminal in order to reproduce the problem:
$ mkdir source
$ mkdir target
$ echo "file one" > source/file
$