Displaying 10 results from an estimated 10 matches for "yourfunct".
Did you mean:
yourfunc
2011 May 23
6
Reading Data from mle into excel?
Hi there,
I ran the following code:
vols=read.csv(file="C:/Documents and Settings/Hugh/My Documents/PhD/Swaption
vols.csv"
, header=TRUE, sep=",")
X<-ts(vols[,2])
#X
dcOU<-function(x,t,x0,theta,log=FALSE){
Ex<-theta[1]/theta[2]+(x0-theta[1]/theta[2])*exp(-theta[2]*t)
Vx<-theta[3]^2*(1-exp(-2*theta[2]*t))/(2*theta[2])
dnorm(x,mean=Ex,sd=sqrt(Vx),log=log)
}
2009 Oct 13
2
How to read plain text documents into a vector?
I'm new to R. I'm working with the text mining package tm. I have several
plain text documents in a directory, and I would like to read all the files
with extension .txt in that directory into a vector, one text document per
vector element. That is, v[1] would be the first document, v[2] the second,
etc.
I know how to read the documents into a tm Corpus, but that's not what I
want
2006 Feb 03
3
overloading dragdrop.js
Hi everybody-
First time poster, please be gentle.
I have written a little rails app where you can create
divs and move them around via Thomas'' wonderful
dragdrop.js. I would like to be able to fire an AJAX
event to update the top and left of the dragged object
upon release. I see many AJAX link_to_remote and
observe_field.
What is the proper way to observe that the position
(not
2008 May 21
1
generating help files
Hi R People!
Is there a quick way to generate help files for functions, please?
I know that if you use "package.skeleton", that will work. However,
I'm not using that for a new package.
(Hope this make sense)
this is for SUSE10.1, please.
thanks,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto:
2010 Mar 18
1
IRT simulation repeated
Hello R:
i work on an IRT simulation research. I've written a code to generate a
single dataset.As i will repeat simulating the data 100 times under every
condition, how can i write the R code to make it run the single simulation
code 100 times and save the generate results each time?
Thanks so much~
2008 Jul 15
1
tryCatch - return from function to main script
Dear helpers,
I've got a main script, which calls 4 times a function on 4 different
datasets respectively. This function runs "nls" and is located in
another R script which is sourced into my main script.
What I would like to have is this:
If, e.g. in the 3rd call of the function, nls fails, because it can't
converge, I would like it to return an error (value or message), and
2011 Oct 05
4
dynamically creating functions in r
it is possible to dynamically create functions in R using lists? what I want
to do is something like this:
a = list()
for (i in 1:10) a[[i]] = function(seed = i) runif(seed)
so that when I call a[i] I get random draws 1,2,....i unfortunately R only
uses the last i . I would also like to know if there is a run-all function
without explicitly looping or using lapply. for example if I
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()
2013 Feb 22
7
Newbie Question
What are some Great resources to get into Rails?
Keep in mind this is for someone that has little to no programming
experience.
So starting from scratch...
A little background is that I want to create a program for personal use
that uses Databases to store lots of information. They wopuld draw from
each other and work to help in large scale event planning and management.
Any help is
2005 Aug 16
2
problem using model.frame()
Hi I'm having a problem with model.frame, encapsulated in this example:
y1 <- matrix(c(3,1,0,1,0,1,1,0,0,0,1,0,0,0,1,1,0,1,1,1),
nrow = 5, byrow = TRUE)
y1 <- as.data.frame(y1)
rownames(y1) <- paste("site", 1:5, sep = "")
colnames(y1) <- paste("spp", 1:4, sep = "")
y1
model.frame(~ y1)
Error in model.frame(formula, rownames,