search for: zengzhenx

Displaying 19 results from an estimated 19 matches for "zengzhenx".

Did you mean: pengzhen
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 Feb 23
3
Help in writing my own function
Dear all I am very intersted in writing my own function to deal with some complicated task, but I don't know how to start. I can't find detial material with examples teaching me how to write my own functions. Can anyone help me and recommend me some learning material? Many 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",
2010 Oct 08
4
Bug in as.POSIXct regarding AM/PM
Dear All, I encounted in a problem with as.POSIXct() function. > as.POSIXct("2009/03/26 01:00:00 AM" , format="%Y/%m/%d %I:%M:%S %p") [1] NA > as.POSIXct("2009/03/26 02:00:00 PM" , format="%Y/%m/%d %I:%M:%S %p") [1] NA I have tried this in the R version 2.11.1, R version 2.10.1 and R version 2.9.2 . They all does not work. The operation system is
2010 Dec 06
1
as.xts error
Dear all, I am using the as.xts function to transfer a data frame to the xts The following is the code and result: a<-read.csv("price.csv") a$Date<-as.POSIXct(a$Date) str(a) 'data.frame': 15637 obs. of 2 variables: $ Date : POSIXct, format: "2010-01-04 09:45:01" "2010-01-04 09:45:02" "2010-01-04 09:45:03" ... $ bid_hsi: int 21850
2010 Jan 31
1
How to split data frame into groups by a list of factors?
Dear R users: I am dealing a data frame x as followings: Date trade_day IV.b IV.a 1 2003-03-02 19 0.1724818 0.1815687 2 2003-03-02 18 0.1733542 0.1763827 3 2003-03-02 19 0.1753308 0.1783653 4 2003-03-03 16 0.1751217 0.1781624 5 2003-03-03 16 0.1738580 0.1768961 6 2003-03-03 19 0.1733346 0.1763800 ...... I want to split the data flame
2008 Aug 26
1
bug in package chron (PR#12599)
Full_Name: Zeng, zhenxing Version: 2.7.1 (2008-06-23) OS: windows XP Submission from: (NULL) (158.182.1.30) Dear Author I have run into a trouble in using chron package The data frame: a date time_fut expiry_day bid ask trade_day 1 2004-09-01 09:45:00 2004-10 12860 12889 38 2 2004-09-01 09:45:01 2004-10 12885 12890 38 3 2004-09-01 09:45:04 2004-10 12883 12887
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
2008 Nov 21
3
HELP
[This email is either empty or too large to be displayed at this time]
2009 Jan 15
2
Interface to open source Reporting tools
...; Phone +358 (0)400 138 510 > FAX +358 (0)13 731 431 > Skype Andreas1.Scherer > > www.Spheromics.com <http://www.spheromics.com/> > > > > ------------------------------ > > Message: 18 > Date: Sat, 10 Jan 2009 08:16:21 -0800 (PST) > From: tedzzx <zengzhenxing@gmail.com> > Subject: [R] JGR editor setting problem > To: r-help@r-project.org > Message-ID: <21389631.post@talk.nabble.com> > Content-Type: text/plain; charset=us-ascii > > > Hi all, > > I am using the JGR (Java GUI for R ) and I am facing some problem. &gt...
2009 Jan 10
0
JGR editor setting problem
Hi all, I am using the JGR (Java GUI for R ) and I am facing some problem. I want to use the help agent in the editor. I try to change the setting in the preference to use the help agent in editor, but it does not work. Though I have apply and save this seting ,it will return to the default seting that only use the help agent in the console. Will you help me? Thanks R version: 2.7.2 JGR:1.6-2
2010 Feb 22
0
How to run the VECM BEKK model in R?
Dear all, I want to run the VECM BEKK model, but I cannot find the corresponding package to run this model. Anybody can help? Thanks a lot Ted -- View this message in context: http://n4.nabble.com/How-to-run-the-VECM-BEKK-model-in-R-tp1564555p1564555.html Sent from the R help mailing list archive at Nabble.com.
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:
2009 Jul 31
1
Tests for Two Independent Samples
Dear R users, I have got two samples: sample A with observation of 223: sample A has five categories: 1,2,3,4,5 (I use the numer 1,2,3,4,5 to define the five differen categories) there are 5 observations in category 1; 81 observations in category 2;110 observations in category 3; 27 observations in category 4; 0 observations in category 5; To present the sample in R: a<-rep(1:5,
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|)