Is there a way to extract list of words in BioWordVec in R
Thank you
Tjun Kiat
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do
Subject: How long does it take to learn the R programming language?
Good day from Singapore,
How long does it take to learn the R programming language?
Is it easy? Is there a steep learning curve?
Thank you.
Regards,
Mr. Turritopsis Dohrnii Teo En Ming
Targeted Individual in Singapore
Blogs
Suppose I have a dataframe in this from
a b c
g 2 3
h 4 5
i 6 7
I want to apply a function to individual elements of column C where the
function value depends on the value of column A
[[alternative HTML version deleted]]
__
I am trying to work clustering problem where I actually know the sublcass. For
example
Suppose I am trying to predict cluster patients a group of people into male and
female where I actually know the label male and female but I take it I don't
know
Suppose my clustering method produces
I am trying to install the package but am I keep getting this error messages
installation of
package ��minqa�� had non-zero exit status
2: In install.packages("caret", repos =
"http://cran.stat.ucla.edu/;) :
installation of
package ��RcppEigen�� had non-zero exit status
3: In
ins
> To: teotj...@hotmail.com
> CC: r-help@r-project.org
>
> Hi Tjun Kiat,
> This seems to work:
>
> daily_date<-as.Date(paste("2000-01",1:28,sep="-"),"%Y-%m-%d")
> weekly_date<-as.Date(paste(c(1,8,15,22,28),"01/2000",sep="
Here is my sample code
TunePar<-matrix(list(Null),2,2)
TunePar[[1,1]]=list(subclasses=3,model="gen.ridge")
tune=paste(colnames(Temp),Temp,sep="=")
tune=paste(tune,collapse=",")
However when I type tune
This is what I get
"subclasses=3,model=1"
The text "gen.ridge has been converted to the
I
have a matrix of lists in R that looks like this
Crabs Glass nnet List,2 List,2rf List,1 List,1
An
example of what a list looks like in the matrix
size decay63 0.1
How can I write it into a csv file in R so I can retrieve it
in the same format?
Thanks
Does anyone knows how to return the prediction probabilities for CSimca
function for rrcovHD package?
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and
Suppose I have a object in time format
2014-08-13 00:30:00
I want to convert it to a character string 20140813003000
Is is possible ?
Tjun Kiat
[[alternative HTML version deleted]]
__
This is my code
BSUPred-(forecast(BSU,h=h)[[2]])
PressurePred-(forecast(Pressure,h=h)[[2]])
Placer-(rep(1,h))
test-as.data.frame(cbind(BSUPred,PressurePred))
test$Placer-rep(1:2,h/12)
test$Placer-i
test-as.data.frame((test[c(Placer,BSUPred,PressurePred)]))
Is there a guide somewhere on how to set the tuning parameters for logistic
regression in Caret ?
Tjun Kiat
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
I tried this
fit-glm(Pred~Pressure+MissingStep, data = Test, family=binomial)
save(fit,file=pred.rda)
pred-load(pred.rda)
predict(pred,Testsamp,type=response)
I created an an empty data frame this way:
forsentest-data.frame(matrix(nrow=nod,ncol=f)).
Then I tried to assign one row of another data frame forsen to it
forsentest[1,]-forsen[1,]
But the factors in forsen gets converted to numbers in forsentest which is
not what I want.
Is there another
I am trying to use the package mda
And this is my command
mdfit-mda(factor(forsen[,f]) ~ .,data=forsen[,-f],subclasses=sc)
But I keep getting this error message on a particular data set
Error in maxdist[l] - x[l, i] :
NAs are not allowed in subscripted assignments
Can anyone help ? Thanks
Is the R package EMMIX available ? I tried installing it and it keeps
saying the package is not available for R verseion 3.0.1
teotjunk
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
distributions ?
Tjun Kiat Teo
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide
Yap. I did load the package bdsmatrix
On Fri, Jun 21, 2013 at 8:26 AM, Pascal Oettli kri...@ymail.com wrote:
Hi,
Did you load bdsmatrix?
Regards,
Pascal
2013/6/21 Tjun Kiat Teo teotj...@gmail.com
What are the possible options I have for Generalized choleksy Inverse in
R. I tried
I know this has been covered before but I have read all the posts on this
subject but I still cannot resolve it. I tried to install rjags on a 64bit
Fedora 17 and I got this error message
Error : .onLoad failed in loadNamespace() for 'rjags', details:
call: dyn.load(file, DLLpath = DLLpath,
What are the possible options I have for Generalized choleksy Inverse in
R. I tried to use the package bdsmatrix and and was given the error message
function solve.gchol does not exist. Thanks
Tjun Kiat
[[alternative HTML version deleted]]
__
I am trying to use the package Bayes Logit and I keep getting this error
message.
chol2inv(chol(P1.j)) :
error in evaluating the argument 'x' in selecting a method for function
'chol2inv': Error in chol.default(P1.j) :
the leading minor of order 5 is not positive definite
I can't see why
I am trying to use the package ode and periodically it will come up with
this error message
Warning..Internal T (=R1) and H (=R2) are
such that in the machine, T + H = T on the next step
(H = step size). Solver will continue anyway.
And then the program just take very long to run. Is there
I am using the package Multicore/Parallel to do importance sampling. I have
5 cores on my computer. And I have
let's say 10 000 particles to generate. What I did was to send 5 particles
in each time, calling the package parallel. Which means in all I am calling
the parallel command 2000 times.
Suppose I have a matrix of data
A
1 2 3
4 5 6
7 8 9
And I have a vector of indexes 2,1,3
For row 1 of matrix A I want the 2nd element 2
For row 2 of matrix A I want the 1st element 4
For row 3 of matrix A I want the 3rd element 9.
Is there a quick way to do it ?
Tjun Kiat
I tried to use mlogit.R in the package Bayes Logit and got this error
message
Error in .C(rpg_devroye, x, as.integer(n), z, as.integer(num), PACKAGE =
BayesLogit) :
C symbol name rpg_devroye not in DLL for package BayesLogit)
Can anyone help?
Thanks
Tjun Kiat
[[alternative HTML
I am using R on Fedora 17 and the up arrow is not the previous
command. On my command line on my terminal, the up arrow is the
previous command
Tjun Kiat
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read
Is there anyway to simulate random deviates from probit ?
Tjun Kiat
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented,
Does the function parallel work for windows ?
Tjun Kiat
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal,
I am trying to do parallel programming and I tried this
library(doSNOW)
library(foreach)
testfunc-function(x){
x-x+1
x
}
noc-2
cl - makeCluster(do.call(rbind,rep(list(localhost),noc)), type = SOCK)
registerDoSNOW(cl)
clusterExport(cl=cl,c(testfunc.r))
testl-foreach(pp=1:2) %dopar% {
This is applicable to either using optim or the differential equation
solver or any similar solver
Suppose I want to use the differential equation solver and this is my code
d-y[2]
vdpol-function(t,y)
{
list(c(1,
d,
3,
4
)
}
I am trying to to write a wrapper function for the ode solver (under
the package desolve) to enable it to take multivariate arrays. I know
how to do it for 1 dimension arrays but my code breaks down when I try
to do it for 2 dimensional arrays. Here is my code
Hi:
Could you please guide me how to plot weekly.t2. Below are my values and I
am only able to plot weekly t1 but failing to add a second line
representng weekly t2.
Thanks.
weekly.t1
[1] 228.5204 326.1224 387.2449 415.4082 443.6735 454.6939 451.5306 475.1020
483.2653 483.0612 488.9362
I was working on a teaching example, but came across this weird result:
q-c(1.6,2.6, -3.4)
q
[1] 1.6 2.6 -3.4
sum(q)
[1] 0.8
sum(q)- 0.8
[1] 2.22044605e-16
Why is the result not precisely zero?
Thanks!
AT
__
R-help@r-project.org mailing list
33 matches
Mail list logo