Displaying 13 results from an estimated 13 matches for "dimerization".
2010 Dec 16
1
my function does not work for large data set
Dear R community,
I have one function, it works for small data set, but does not work on large
data set, can anyone help me with this?
> #creat new variable by dividing each aa dimer by total_length.
> imper<-function(x, file) {
+ round(x/file$length, 5)
+ }
> dim(test)
[1] 999 2402
> test[varname[2:2401]]<-
2010 May 12
1
exact the variables used in tree construction
> fit.dimer <- rpart(as.factor(out) ~ ., method="class", data=p_df)
>
> fit.dimer$frame[, "var"]
[1] NE WC <leaf> TA <leaf> <leaf> WG WD WW WC
[11] <leaf> <leaf> <leaf> CT <leaf> FC <leaf> YG QT <leaf>
[21] <leaf> <leaf> NW DP DY <leaf> SK
2010 Apr 19
0
help in output file
HI, Dear R-community,
I AM using the following codes to grow tree and plot tree:
# Classification Tree with rpart
library(rpart)
pdf(file="/home/cdu/changbin/dimer_tree.pdf")
# grow tree
fit.dimer <- rpart(outcome ~ ., method="class", data=p.dimer[,2:402])
plotcp(fit.dimer) # visualize cross-validation results
# plot tree
plot(fit.dimer, uniform=TRUE,
2010 Sep 07
1
change the for loops with lapply
cv.fold<-function(i, size=3, rang=0.3){
cat('Fold ', i, '\n')
out.fold.c <-((i-1)*c.each.part +1):(i*c.each.part)
out.fold.n <-((i-1)*n.each.part +1):(i*n.each.part)
train.cv <- n.cc[-out.fold.c, c(2:2401, 2417)]
train.nv <- n.nn[-out.fold.n, c(2:2401, 2417)]
train.v<-rbind(train.cv, train.nv) #training data for feature
2010 May 26
1
how to Store loop output from a function
HI, Dear R community,
I am writing the following function to create one data set(*tree.pred*) and
one vector(*valid.out*) from loops. Later, I want to use the data set from
this loop to plot curves. I have tried return, list, but I can not use the
*tree.pred* data and *valid.out* vector.
auc.tree<- function(msplit,mbucket) {
* tree.pred<-data.frame()
2010 Apr 21
2
?rpart
HI, Dear R community,
Last friday, I used the codes, it works, but today, it does not run?
> fit.dimer <- rpart(outcome ~., method="class", data=p.df)
Error in `[.data.frame`(frame, predictors) : undefined columns selected
DOEs anyone have comments or suggestions? Thanks in advance!
--
Sincerely,
Changbin
--
[[alternative HTML version deleted]]
2010 May 11
1
how to extract the variables used in decision tree
HI, Dear R community,
How to extract the variables actually used in tree construction? I want to
extract these variables and combine other variable as my features in next
step model building.
> printcp(fit.dimer)
Classification tree:
rpart(formula = outcome ~ ., data = p_df, method = "class")
Variables actually used in tree construction:
[1] CT DP DY FC NE NW QT SK TA WC WD WG WW
2011 Jun 22
1
question about read.columns
HI, Dear R community,
I have a large data set names dd.txt, the columns are: there are 2402
variables.
a1, b1, ..z1, a11, b11, ...z11, a111, b111, ..z111..
IF I dont know the relative position of the columns, but I know I need the
following variables:
var<-c(a1, c1,a11,b11,f111)
Can I use read.columns to read the data into R?
I have tried the following codes, but it does not work
2009 Mar 03
2
macro-stdexten question
I am running asterisk 1.4 and the Digium GUI SVN-branch-2.0-r4489.
When one phone calls another, I see the following on the console
(here, 6223 dials 6123)
-- Executing [6123 at DLPN_DefaultDialPlan:1] Macro("IAX2/6223-10489",
"stdexten|6123|SIP/6123&IAX2/6123") in new stack
-- Executing [s at macro-stdexten:1] Set("IAX2/6223-10489",
2009 Feb 26
3
Question about Do Not Disturb
Hello,
Some of my users have phones lacking a DND button. I need to provide
an extension they can dial that will put them in DND, i.e. tell the
server not to send them any calls until they get off the DND.
I've researched it for almost 3 days now and tried a range of
configurations. I'm hoping somebody here has an answer. Currently, I
have this in extensions.conf
[app-dnd-on]
2007 Oct 04
0
New version of GillespieSSA package uploaded to CRAN
...the Direct method, Explicit
tau-leaping, Binomial tau-leaping, and Optimized tau-leaping. The
package also provides a library of molecular, ecological and
epidemiological example models (as demos) that can easily be customized
and extended. Currently the following models are included,
Decaying-Dimerization Reaction Set, Linear Molecular Chain System,
single-species logistic growth model, Lotka predator-prey model,
Rosenzweig-MacArthur predator-prey model, and Kermack-McKendrick SIR model.
The release consists of several bug fixes, improved documentation, and a
revised more 'R-like' manage...
2007 Oct 04
0
New version of GillespieSSA package uploaded to CRAN
...the Direct method, Explicit
tau-leaping, Binomial tau-leaping, and Optimized tau-leaping. The
package also provides a library of molecular, ecological and
epidemiological example models (as demos) that can easily be customized
and extended. Currently the following models are included,
Decaying-Dimerization Reaction Set, Linear Molecular Chain System,
single-species logistic growth model, Lotka predator-prey model,
Rosenzweig-MacArthur predator-prey model, and Kermack-McKendrick SIR model.
The release consists of several bug fixes, improved documentation, and a
revised more 'R-like' manage...
2009 Apr 02
1
Simple Queue question
Hello,
I have a fairly standard call center. I'm running 1.4.23.1. I am
trying to get a mechanism where :
1- Employee A can have the phone at his desk ring when a call comes in the queue
2- When already on a call, employee A does not hear a "beep" in his
phone because another call is trying to come in
It's fairly simple. I tried a few different things:
in queues.conf
[559]