Displaying 20 results from an estimated 2000 matches similar to: "Help in writing my own function"
2008 Nov 06
3
How to manipulate the time data without the date?
Hi,all
I only got the time data such as:
tms<-c("19:30:23","18:39:10".....)
I want to manipulate this time series data. For example, plus one second(or
minute) or minus one second
This data only has the time(h:m:s), without the date. I know that there are
chron package, ISOPix class and the timeDate class, but all these class need
the input of date.
How can we
2008 Nov 18
2
error in function: nls (urgent)
Hi,all:
I am running a nonlinear regression and there is a problem.
There is a data frame: data
p s x t
1 875.0 12392.5 11600 0.06967213
2 615.0 12332.5 12000 0.06967213
3 595.0 12332.5 12000 0.06967213
4 592.5 12337.0 12000 0.06967213
5 650.0 12430.0 12000 0.06967213
6 715.0 12477.5 12000 0.06967213
.
.
.
.
str(data):
'data.frame': 234 obs. of 4 variables:
2009 Mar 19
2
find the index of the smallest or biggest number in a vetor or data.frame
Dear R experts,
How to find out the index of minimum or maxmum number in a vetor or
data.frame?
For example,
a=
n price
1 50
-2 100
0 200
-1 300
......
I want to find out the row which the n is the smallest or largestest and
extract the price.
Thanks
Ted
--
View this message in context:
2009 Apr 30
2
problem in reading data
Dear R users
I am runing into a problem in reading data in R
This is the error information
a<-read.table("tt_mb_200409.txt",as.is=T)
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,
:
line 1653997 did not have 5 elements
It seams that some lines don't have equal variables. I want to try
>
2009 Mar 12
3
batch process file in R
Dear R experts,
I have a folder names "200209" and in this folder there are many data files,
such as:
"BA020902.txt","BA020903.txt","BA020904.txt",
"BA020905.txt","BA020906.txt","BA020909.txt",
"BA020910.txt","BA020911.txt","BA020912.txt",
2008 Nov 11
2
Manipulation in timeSeries object:how to use the function "applySeries" by daily?
Hi all
I have some tick-by-tick data and I have calculated the intraday returns. I
want to sum up the intraday squared returns to calculate the daily
volatility(or daily variance). I know that the s-plus FinMerics has the
function aggregateSeries function that can be apply to daily data:
aggregateSeries(x, Fun, by="daily"), but the counterpart function in
R:applySeries can not be apply
2008 Nov 24
6
optimization problem
Dear list,
hi !
I am a R beginner and I have a function to optimize .
alpha = argmin{ f(x,alpha) }
I want alpha to be in [0,1]. Is there any function that can work?
I use nlm() but i can't fix the domain of alpha.
thanks in advance
_______________________
Jiang Peng, Ph.D. Candidate
Department of Mathematics &
Antai college of Economics and Management
Shanghai Jiao
2009 Apr 05
4
extract the p value of F statistics from the lm class
Dear R users
I have run an regression and want to extract the p value of the F
statistics, but I can find a way to do that.
x<-summary(lm(log(RV2)~log(IV.m),data=b))
Call:
lm(formula = log(RV2) ~ log(IV.m), data = b[[11]])
Residuals:
Min 1Q Median 3Q Max
-0.26511 -0.09718 -0.01326 0.11095 0.29777
Coefficients:
Estimate Std. Error t value Pr(>|t|)
2001 Aug 05
2
Just out of interest whats this?
FIXME:pthread_rwlock_rdlock
FIXME:pthread_rwlock_unlock
what's this, what's causing it and what needs fixing (I'll give it a
look if it's needed) or is it just an old error that dosn't really need
fixing (I can run almost everything I want to and the all show this
error) just intersted
Rob
2008 Oct 24
2
how to simply the procedure of creating a group of data.frame?
Dear R users,
I want to creat a group of data frames, such as:
d1<-data.frame(x=factor(),y=numeric(),...)
d2<-data.frame(x=factor(),y=numeric(),...)
d3<-data.frame(x=factor(),y=numeric(),...)
:
:
d50<-data.frame(x=factor(),y=numeric())
How can I use the loop to simply my procedure?
Thanks advance
Ted
--
View this message in context:
2004 Aug 30
2
Suitable for Dynamic IVR Platform?
New to asterisk so please be gentle. I'm guessing I'm among a number of
recent additions to the list after the article in Linux Mag. I gotta say
I'm *very* intersted in the project and will be doing lots of reading
shortly. A couble quick questions first...
How suitable is Asterisk for use as an IVR providing callers with textual
data out of a database? Can it be combined easily
2006 Jul 12
1
how to install matlab using Wine in Debian (Knoppix) or Fedora?
Hello Frank,
I am a reserch student at the Indian Institute of Technology in Chennai,
India. I need to work in Matlab Release 12 or Release 14 for my research
purpose. The OS I like and use is Linux, (Debian, Fedora), is it possible to
install Matlab 6.5 or 7.x using wine? I saw your website
www.frankscorner.org and saw some instructions. Can you please give me a
step by step instruction step for
2005 Jul 19
1
two extensions for same phone
All,
I am intersted in having 2 extensions for the same sip phone...
The reason is when I am using the outgoing spool file to initiate a
SendText() command
to my SIP phone I dont want voicemail to answer the call and my text
message go there.
I want my outgoing call to FAIL and then I can try again some time later
to deliver the message.
Any suggestions on how to do this is appreciated.
2016 Dec 05
1
CentOS ISO Build process
Hello the list,
For a personal use, I would be intersted in creating my own custom CentOS ISO.
For that, I would love to use the build process used for the the official ISOs generation.
Is the documentation about this release process and the relative tools and configuration files are available and public for CentOS 7 ?
If yes, where is it possible to find them ?
I found data on
2006 May 17
1
Concurrency
Hello,
I'm very intersted in developing a site using your platform. I was
wondering if you've tested the theoretical maximums for this software and
can show me some numbers. How many simultaneous users could I expect to
handle at 128k (hardware not being the limiting factor)?
If you'd like to speak please send a number and a good time to call.
Sincerely,
--
Eric Haddad
2003 Oct 27
1
using variables in obj$model
dear all,
for some reason I am intersted in updating a glm taking variables from its
model argument, namely:
> dati<-data.frame(y=runif(10),x=1:10)
> obj<-glm(y~x,data=dati)
> obj$model[,c("A","a:b")]<-cbind(rnorm(10),runif(10))
> names(obj$model)
[1] "y" "x" "A" "a:b"
> update(obj,.~.+A,data=obj$model) #it
2006 Apr 24
1
omitting coefficients in summary.lm()
Hi,
I'm running a regression using lm(), in which one of the right-hand side
variables is factor with many levels (say, 80). I am not intersted in the
estimates of the resulting dummies, but I have to include them in my
regression equation. So, I don't want the estimates associated with theses
dummies to be printed by summary.lm( ). Is there an easy way to do this?
Thank you,
Dimitri
2006 Dec 01
1
Demand of help
Hi,
I'm a phd student of economics in Tunisia who is intersted now with the seasonal unit roots test of Canova and Hansen. So I've installed the package "uroot" in RGUI. I use R 2.4.0. The problem when I apply the function to my data, I've always a message from RConsole that it is impossible to find the function CH.test. Are there problems as for the use of this package?
2008 Nov 25
2
Heat Maps
Dear List,
Does there exist a function that produces a heat map like this one
(image 3 of 4):
http://www.tdameritrade.com/tradingtools/options360.html?a=HDY&referrer=http%3A%2F%2Fquery.nytimes.com%2Fsearch%2Fsitesearch%3Fquery%3Dheatmaptype%3Dnyt
In addition to colors, two other main features I am intersted in are:
1. Proportionality in the size of the grid.
2. Mose-over capability.
I may
2001 Apr 16
1
Problems compiling Mac Libs
Hey guys,
I just downloaded the latest beta 4 libraries and compiled using the
included Mac project files on Codewarrior 5.3. Everything compiled clean
except for a link error (multiple definition) on the vorbislib itself. I
suppressed the error, and got my newly compiled lib.
I then built the sample encoder and included the libs. I tried to encode a
file and BOOM! Frozen Mac!
So then I