Displaying 4 results from an estimated 4 matches for "new_score".
2009 Aug 30
3
Sapply
...one of my variables per-group.
Normally, I would just write a huge "for each" loop, but have read that
is hugely inefficient with R.
The old way would be (just an example, syntax might not be perfect):
for (group in data$group){
for (score in data[data$group == group]){
new_score <- score / sum(data$score[data$group==group])
}
}
How would I simplify this with sapply?
Thanks!
--
Noah
2006 Jul 04
3
Recalculating the score
Hey ..
I''m using ferret to index various objects and i''m create a
Ferret::Document for each of these objects. Indexing and searching is
working fine.
Each of these Ferret::Documents has a ''relevance'' field, storing an
integer, how relevant this object is for the search. The ''relevance'' is
in the range of 1..10
Now i would like to
2006 Feb 27
4
prepared query with RODBC ?
Dear List,
Would anyone know how to perform prepared queries with ROBC ?
I had a shot with some of the internal (non-exported) functions of the package
but ended up with a segfault, so I prefer asking around before
experimenting further...
Thanks,
Laurent
2009 Sep 01
1
Logistic Politomic Regression in R
...one of my variables per-group.
Normally, I would just write a huge "for each" loop, but have read that
is hugely inefficient with R.
The old way would be (just an example, syntax might not be perfect):
for (group in data$group){
for (score in data[data$group == group]){
new_score <- score / sum(data$score[data$group==group])
}
}
How would I simplify this with sapply?
Thanks!
--
Noah
------------------------------
Message: 42
Date: Sun, 30 Aug 2009 15:10:09 -0700
From: Noah Silverman <noah@smartmediacorp.com>
Subject: [R] SVM coefficients
To: r help <...