[R] t.trellis doesn't invert

2017-12-15 Thread Richard M. Heiberger
> version _ platform x86_64-w64-mingw32 arch x86_64 os mingw32 system x86_64, mingw32 status Patched major 3 minor 4.3 year 2017 month 12 day12 svn rev73903 language R version.s

Re: [R] [FORGED] something weird has happened....!!!!!!!!!!

2017-12-15 Thread Rolf Turner
On 16/12/17 01:45, akshay kulkarni wrote: dear Members, Today something weird has happened on my R console. I have attached two screenshots of the same vector in my R console but they differ. Also one of my function returns negative values, even after double checking the code, which should

Re: [R] Errors in reading in txt files

2017-12-15 Thread Jeff Newmiller
Your times are formatted as 01.01.2001-24:00:00 but the default format is 2001-01-01 24:00:00 so you need to specify a format argument with as.POSIXct. Read about format strings in ?strptime. -- Sent from my phone. Please excuse my brevity. On December 15, 2017 9:21:54 AM PST, lily li wrote

Re: [R] Errors in reading in txt files

2017-12-15 Thread David Winsemius
> On Dec 15, 2017, at 9:21 AM, lily li wrote: > > I use the method, df$Time = as.POSIXct(df$Time), but it has the warning > message: > Error in as.POSIXlt.character(x, tz, ...) : > character string is not in a standard unambiguous format That's because your date-time data is not in "%Y-%m-%d %

Re: [R] something weird has happened....!!!!!!!!!!

2017-12-15 Thread Jeff Newmiller
Be sure to keep the mailing list in the loop by using reply-all or equivalent in your email program. You can use the set.seed function with any fixed value before you call functions that use randomness to create a reproducible output. -- Sent from my phone. Please excuse my brevity. On Decem

Re: [R] something weird has happened....!!!!!!!!!!

2017-12-15 Thread David Winsemius
> On Dec 15, 2017, at 4:45 AM, akshay kulkarni wrote: > > dear Members, > > > > Today something weird has happened on my R console. I have attached two > screenshots of the same vector in my R console but they differ. > > > Also one of my function returns negative values, even after double

Re: [R] Errors in reading in txt files

2017-12-15 Thread lily li
I use the method, df$Time = as.POSIXct(df$Time), but it has the warning message: Error in as.POSIXlt.character(x, tz, ...) : character string is not in a standard unambiguous format On Thu, Dec 14, 2017 at 1:31 PM, MacQueen, Don wrote: > In addition to which, I would recommend > > df <- read.t

Re: [R] something weird has happened....!!!!!!!!!!

2017-12-15 Thread William Dunlap via R-help
You can see if your function uses R's random number generator with the following function. isRandom <- function(expr) { randomSeedBefore <- get0(".Random.seed") force(expr) !identical(randomSeedBefore, get0(".Random.seed")) } isRandom(1:10) #[1] FALSE isRandom(runif(3)>.4) #[1] TRUE I

Re: [R] something weird has happened....!!!!!!!!!!

2017-12-15 Thread MacQueen, Don
You could try this and see what you get: unique( yguii(ZEEL.NS, "o") - yguii(ZEEL.NS, "o") ) or maybe table( yguii(ZEEL.NS, "o") - yguii(ZEEL.NS, "o") ) You showed two sets of output from the expression yguii(ZEEL.NS, "o") Were they done one right after the other? Or could ZEEL.NS h

Re: [R] something weird has happened....!!!!!!!!!!

2017-12-15 Thread Jeff Newmiller
Entry 250 is different between the two. However, I (we?) have no idea what that function is so it might be using randomness as part of its calculation. -- Sent from my phone. Please excuse my brevity. On December 15, 2017 7:11:30 AM PST, Duncan Murdoch wrote: >On 15/12/2017 7:45 AM, akshay kul

Re: [R] something weird has happened....!!!!!!!!!!

2017-12-15 Thread Mohammad Tanvir Ahamed via R-help
Dear Akshay, Where is the problem !!Two data set seems identical  except one of them show 10 column and other showing 11 column on r console .   Regards.Tanvir AhamedStockholm, Sweden | mashra...@yahoo.com On Friday, December 15, 2017, 3:49:03 PM GMT+1, akshay kulkarni

Re: [R] something weird has happened....!!!!!!!!!!

2017-12-15 Thread Duncan Murdoch
On 15/12/2017 7:45 AM, akshay kulkarni wrote: dear Members, Today something weird has happened on my R console. I have attached two screenshots of the same vector in my R console but they differ. Those are function calls, you aren't just printing the same vector twice, you're producing two

Re: [R] match and new columns

2017-12-15 Thread Ek Esawi
Hi Val— Here is something similar to what Bill suggested. wainb <- which(tdat$A %in% tdat$B) tdat[c(length(tdat$D)-1,length(tdat$D)),c("D","E")] <- tdat[wainb,c("B","C")] HTH EK On Wed, Dec 13, 2017 at 4:36 PM, Val wrote: > Hi all, > > I have a data frame > tdat <- read.table(textConnection(

Re: [R] delta and sd parameters for power.t.test [solved]

2017-12-15 Thread Lasse Kliemann
Lasse Kliemann writes: > What is the rationale behind having both the delta and sd parameters for > the power.t.test function? For the relevant noncentrality parameter, we > only need the ratio delta/sd. If my effect size is given as Cohen's d, > then I only got that ratio and not sd. > > As far