Re: [R] Strange results from Windows 7

2010-01-17 Thread Rolf Turner
On 18/01/2010, at 9:02 AM, Joshua Wiley wrote: Hello Alan, Following up on Gabor's suggestion, if you have different packages loaded, one of those packages could have a function Object? 'diff' that would not show up with a call to ls() so you could also try search() which will

Re: [R] Strange results from Windows 7

2010-01-17 Thread Joshua Wiley
Hello Alan, Following up on Gabor's suggestion, if you have different packages loaded, one of those packages could have a function 'diff' that would not show up with a call to ls() so you could also try search() which will show you what packages are loaded. HTH, Joshua On Sun, Jan 17, 2010 a

Re: [R] Strange results from Windows 7

2010-01-17 Thread Gabor Grothendieck
Its likely that in one of your sessions you do have a diff and in the other you don't and this has nothing to do with XP vs. Windows 7. In the session with no diff, the only diff around is the function, diff, and you can't subscript a function. Try this to see what variables are in your workspace

[R] Strange results from Windows 7

2010-01-17 Thread Tse Ching Biu, Alan (MKT)
Hello, I am a newbie. I can run the following code stored in "test.txt" without error using my XP machine: x <- scan("C:\\Rwork\\A.txt") x10 = filter(x, rep(1/10,10), sides=1) x x10 for(i in 10:length(x)){ if (x[i] > x10[i]) diff[i]="b" else diff[i]="s" } However, if I run it in another PC