[R] How to threshold point in time series

2018-06-08 Thread Rama shankar
Hi All, I am having very high-frequency data, captured between 3 to 7 seconds by sensor for liquid tank and capacity of tank is 50k dm3. When tank capacity reduce to 1k dm3, than tank refilling need to call. How in time series we can perform, refilling can call when tank capacity reduce to 1k dm3,

[R] How to predict time series high-frequency data?

2018-05-19 Thread Rama shankar
and which kinds of algorithm required to solve this problem using R. Thanks, Rama Shankar [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PL

[R] (no subject)

2013-01-30 Thread Meenakshi Shankar Santhakumar
Dear Team, I am getting the following error message when try to run vb application The program was running fine in 32 windows 7 machine. When i moved the same program to 64 bit windows 8 machine i am getting the following error Error in inDL(x, as.logical(local), as.logical(now), ...) : unable t

Re: [R] Identifying the particular X or Y in a sorted list

2012-05-03 Thread Shankar Lanke
__ > > 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, self-contained, reproducible code

Re: [R] Identifying the particular X or Y in a sorted list

2012-05-03 Thread Shankar Lanke
provide commented, minimal, self-contained, reproducible code. > > ________ > GET FREE SMILEYS FOR YOUR IM & EMAIL - Learn more at > http://www.inbox.com/smileys > Works with AIM®, MSN® Messenger, Yahoo!® Messenger, ICQ®, Google Ta

[R] Identifying the particular X or Y in a sorted list

2012-05-03 Thread Shankar Lanke
Dear All, I have a data sets as shown below A (Patient ID ), B and C are the Concentration of drug in blood on day 1 and day 4, D is the difference in conc. To do this in R I have written a code as follows, identified the number of patients who have more concentration on day 4 . Here I want to ide

[R] Identifying the particular X or Y in a sorted list

2012-05-02 Thread Shankar Lanke
Dear All, I have a data sets as shown below A (Patient ID ), B and C are the Concentration of drug in blood on day 1 and day 4, D is the difference in conc. To do this in R I have written a code as follows, identified the number of patients who have more concentration on day 4 . Here I want to ide

[R] Boxplot for X Vs Y variable grouped by ID

2011-02-26 Thread Shankar Lanke
graphs. Something like multiple boxplots in one graph. I am not in R mailing list please reply to me directly. Thank you very much for your help. -- Regards, Shankar Lanke Ph.D. University at Buffalo Office # 716-645-4853 Fax # 716-645-2886 Cell # 678-232-3567 [[alternative HTML version

[R] Help on write.xlsx library(xlsx)

2010-09-06 Thread Ravi S. Shankar
Hi Adrian, dat=data.frame(matrix(0,3,3)) write.xlsx(dat,"z:/dat.xlsx",sheetName="sheet1",append=F) write.xlsx(dat,"z:/dat.xlsx",sheetName="sheet2",append=F) The above code works and creates new worksheets. But if I want to append to an existing worksheet I seem to get an error. wri

Re: [R] Help on Select.list

2010-09-03 Thread Ravi S. Shankar
her heading (say GIRLS) and the remaining two names. Is there a way I can include headings in the select.list() Thank you once again for the help. Regards Ravi -Original Message- From: David Winsemius [mailto:dwinsem...@comcast.net] Sent: Friday, September 03, 2010 6:14 PM To: Ravi S.

[R] Help on Select.list

2010-09-03 Thread Ravi S. Shankar
Hi R, I am using select.list names=c("Ravi", "Raj","Shubha","Nivriti") select.list(names) provides a drop down to choose one of the 4 names. However I would like to know if it is possible to create a classification something like this select.list(names) should give Boys Ravi

[R] Barplots

2010-07-13 Thread Ravi S. Shankar
Hi R, I am examining the mean returns 10 days before and 10 days after a event. Now I have several events the corresponding pre and post event 10 day mean returns... something like this Pre_Start Pre_End Pre_MeanPre_SD Post_StartPost_End

[R] R 2.10 Read/write.table

2010-04-07 Thread shankar
your help. Thanks Shankar __ 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, self-contained, reproducible code.

[R] subtract a specified number of days from current date

2010-04-05 Thread Ravi S. Shankar
Hi R, I have a column with dates. I need to create a vector say from (current date-90 days: current date) For example I need to subtract 90 days from say Sys.Date()-92 If Sys.Date()-92 == "Sunday", Sys.Date()-92+1 if Sys.Date()-92 == "Saturday", Sys.Date()-92+2 i.e if subtractin

[R] skip for loop

2010-04-05 Thread Ravi S. Shankar
Hi R, I am running a for loop in which I am doing a certain calculation. As an outcome of calculation I get an out put say "a". Now in my for loop "I" needs to be initiated to "a". Based the below example if the output "a"=3 then the second iteration needs to be skipped. Is there a way to

Re: [R] Saving tab/csv delimited data with NaN's

2010-03-23 Thread Viswanathan Shankar
Thank you a ton - this simplifies my work considerably.- Shankar Rolf Turner wrote: On 24/03/2010, at 9:50 AM, shan...@bios.unc.edu wrote: Hello, I am working multiple simulated data sets with missing values, I would like to store these data sets in either tab delimited format for .csv

[R] Saving tab/csv delimited data with NaN's

2010-03-23 Thread shankar
Hello, I am working multiple simulated data sets with missing values, I would like to store these data sets in either tab delimited format for .csv format with missing values marked as NaN's instead of NA's. I read the import/export document which mentions that write.table command converts

[R] How to extract the theta values from coxph frailty models

2009-08-31 Thread Viswanathan Shankar
Hello, I am working on the frailty model using coxph functions. I am running some simulations and want to store the variance of frailty (theta) values from each simulation result. Can anyone help me how to extract the theta values from the results. I appreciate any help. Thanks Shankar

[R] How to extract the theta values from coxph frailty models

2009-08-30 Thread shankar
Hello, I am working on the frailty model using coxph function. I am running some simulations and want to store the variance of frailty (theta) values from each simulation result. Can anyone help me how to extract the theta values from the results. I appreciate any help. Thanks Shankar

[R] lattice xyplot strip colors and location

2009-08-19 Thread Ajay, Shankar Ajay (NIH/NHGRI) [F]
slightly away from the respective panels - all strip labels and values reflect only one conditional variable (s=2, s=3, etc.) Any help would be much appreciated Thanks, Shankar Postdoctoral Fellow National Human Genome Research Institute NIH Bethesda, MD _

[R] Calculating the trading days

2009-07-16 Thread Ravi S. Shankar
ing days between the two dates in col A and Col B. Any help would be appreciated! Thank you, Ravi Shankar S This e-mail may contain confidential and/or privileged i...{{dropped:10}} __ R-help@r-project.org mailing list https://stat.ethz.ch/mail

[R] combine words and dataframe

2009-04-08 Thread Ravi S. Shankar
Hi R, I am trying to get an output like this Hi Hello 1 a b 2 a b 3 a b 4 a b 5 a b And write it as a text file cat(paste("Hi",sep='\n',"Hello")) gives me Hi Hello And whe

[R] write text file as output without quotes

2009-04-07 Thread Ravi S. Shankar
tried try[,1]=noquote(try[,1]) try[,2]=noquote(try[,2]) Thank you, Regards, Ravi Shankar This e-mail may contain confidential and/or privileged i...{{dropped:13}} __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-he

[R] Overloading in R

2009-02-14 Thread SHRIKANTH SHANKAR
I have been trying to write a new class that reimplements the vector class. As a test of my overloading I decided to try and and call t.test on two vectors which were objects of my class rather than the default class. The overloaded length I wrote seems to work correctly. I used setMethod("length

[R] convert matrix to dataframe with repeating row names

2008-10-20 Thread Ravi S. Shankar
Hi R, I have a matrix x with repeating row names. > dim(x) [1] 862 19 zz<-matrix(0,4,4) rownames(zz)=c("a","a","b","b") data.frame(zz) (?) I need to use x in a linear regression lm(as.formula(paste("final_dat[,5]~",paste(colnames(x),collapse="+"))),x ) this gives me a error

[R] Time Interval calculation using R

2008-10-04 Thread Gouri Shankar Mishra
Hi I have two columns of data with time in form of HH:MM:SS - representing start time and end time of an activity. I am trying to calculate the time difference (duration of the activity). (1) I first tried > difftime(btime, etime, units = "mins") This however gave me the error - Error in as.POSIX

[R] Help with CrossTable

2008-09-30 Thread Ravi S. Shankar
Hi, I am using the CrossTable function from library(gmodels). x=unique(data[,c("L1","L1_Revenues","RIC")]) L1_Classification=CrossTable(x$L1,x$L1_Revenues,exclude = c("NA","","0%","0"),prop.r=FALSE,prop.c=FALSE,prop.t=FALSE,prop.chisq=FA LSE,dnn=c("L1_Classification","Revenue")) What I

[R] Reading CSV file with unequal record length

2008-07-02 Thread Viswanathan Shankar
ead as is with 10 records and 26 columns, any inputs to get this fixed is greatly appreciable. Thank you in advance. Shankar -- ### University of North Carolina-Chapel Hill Department of Biostatistics 3101 McGavran-Greenberg, CB#7420 Chapel Hill

Re: [R] Range across a List

2008-03-26 Thread Ravi S. Shankar
, range) > head(nn) $`2006-12-29` [1]0.0074638 1276.6772880 $`2006-12-31` [1] 4.673445 227.60 $`2007-01-31` [1]0.0030772 1255.2080450 $`2007-02-28` [1]0.003978 1316.638200 $`2007-03-29` [1] 5.25585 216.2 $`2007-03-30` [1]0.0047214 1266.8250000 Tha

Re: [R] Range across a List

2008-03-26 Thread Ravi S. Shankar
max(pp2[[i]]$New.Price[1])-min(pp2[[i]]$New.Price[1]) where i ranges from 1 to 1244 Thank you, Ravi -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2008 2:12 AM To: Ravi S. Shankar Subject: Re: [R] Range across a List >From: &quo

[R] Range across a List

2008-03-26 Thread Ravi S. Shankar
Hi R, I have a list > class(pp2) [1] "list" > length(pp2) [1] 1244 It is in the below format RIC Trade.Date Close.Price Currency.Code Convertion.Rate New.Price ABCD.SZ 2008/02/29 15.30CNY 0.1408 2.154240 ABCD.SZ 2008/01/31 15.27CNY 0.1392

[R] Replace with previous value

2008-03-26 Thread Ravi S. Shankar
h_United States.1252 attached base packages: [1] "stats" "graphics" "grDevices" "utils" "datasets" "methods" [7] "base" Thanks in advance Ravi Shankar S This e-mail may contain confidential and/or privileged

[R] Break up a data frame

2008-03-19 Thread Ravi S. Shankar
Hi R users, I have a dataframe in the below format xyz 01/03/200715.25USD xyz 01/04/200715.32USD xyz 01/02/200823.22USD abc 01/03/200745.2

[R] Read in date fomat while colClasses="character"

2007-10-09 Thread Ravi S. Shankar
Hi R users, I am using xlsReadWrite to read a particular excel file. In one of the columns I have dates ( say col=5). Now date column is read by default as numeric. So I used dateTimeAs= "isodatetime". This enables reading in the date format. However in the earlier column (say col=1) I have dat