Displaying 20 results from an estimated 300 matches similar to: "strange behaviour when converting from char to POSIX (PR#6422)"
2004 Jan 11
1
strange behaviour when converting from char to POSIX (PR#6427)
On Sun, 11 Jan 2004, Dirk Eddelbuettel wrote:
> On Fri, Jan 09, 2004 at 06:01:27PM +0100, christoph.schmutz@meteoschweiz.ch wrote:
> > Full_Name: Christoph Schmutz, MeteoSchweiz, Switzerland
> > Version: R1.7.1, R1.8.1
> > OS: windows2000, solaris sunOS 5.8
> > Submission from: (NULL) (141.249.133.6)
> >
> >
> >
> > I'm not sure if I
2004 Jan 09
0
strange behaviour when converting from char to POSIX (PR#6423)
What exactly is strange, apart from posting a question as a bug report?
Please do read the R FAQ and don't misuse R-bugs to ask questions.
Hint: you most likely specified a non-existent time. When did your locale
switch to DST in 1993? I don't know, of course (you haven't told us your
locale) but I bet it was that day. That means the time you specified does
not exist if your locale
2004 Oct 04
2
call step inside a function
I am wondering why my function works fine in R1.7.1 and R1.8.1 but not in
R1.9.0. I thought it's an environment related problem but I can't solve it.
>data
weta jd
1 1 4
2 2 13
3 2 13
4 6 4
5 1 3
6 1 7
7 2 10
8 3 10
9 1 8
10 1 8
11 3 6
12 1 9
13 1 5
14 1 1
15 3 13
16 1 2
17 2 2
18 7 11
19 1 3
20 5 4
2006 Mar 07
4
POSIX time zone codes
The manual entry for as.POSIX says this about time zone codes...
Usage
as.POSIXct(x, tz = "")
tz
A timezone specification to be used for the conversion...
but it fails to mention what these "specifications" are. So far, I
have tried...
as.POSIX(x, tz="UTC") ... works, gives UTC times
as.POSIX(x, tz="UTC") ... works, gives EST times
as.POSIX(x,
2002 Oct 15
4
win2000 and samba
Hi,
We have a samba server 2.2.4 in a RH 6.2 Linux system. I should say that
the samba server is working well except for a win2000 workstation. For
this win2000, the user can mount network drive to the samba server, e.g.
H: to \\sambaserver\username, it asks the password, if entered correctly.
it is connected. No problem at all. However, if the user reboots the
win2000, the poblem comes.
2003 Aug 12
3
Sorting a dataframe
Undoubtedly a simple question:
I've looked at order() and sort() in the help pages for
R1.7.1. It doesn't appear that these functions are immediately
suited to doing the same thing as
PROC SORT DATA = BLAH;
BY X Y Z;
RUN;
in SAS. I have also checked Frank Harrell's Hmisc library.
Could someone point me in the right direction so I can sort
by the levels of Z within the levels of
2006 Jan 06
4
Design flaw with Fixtures?
I''ve been trying to add unit testing for collection of models with
complex relationships -- and failing miserably.
Because of the complexity of the relationships, I''m using a database
which validates foreign key constraints (PostgreSQL 8).
I''m finding it nearly impossible to generate tests that are independent
of each other. The basic problem is the DELETE then
2007 Nov 09
1
fisher.test, chisq.test
Hi,
I want to analyse a contigency table (3 x 12) with a fisher.test
beacause there are cells that are less than 5.
?mmen Anken Baf Belchen H?chi Hof Porti R?m Schmutz Sch?n Sissa Tann
class14 7 26 150 2 46 68 126 66 3 31 7 61
class24 7 6 55 5 49 71 93 90 1 18 16 79
class34 1 1 4 3 19 8 29 61
2004 Feb 11
3
RGui (Windows) crashes after use of a Salford Fortran DLL
Anybody out there successfully using the Salford Fortran compilers
with R?
I have created a DLL using the Salford FTN95 compiler and it works
in as far I can dyn.load it, run the routines and get the right
answers back. Unfortunately subsequently, sometime later, the
Rgui crashes (access violation I think from the DrWatson log). The
crashes depend on whether or not I paste the code as one
2006 Mar 07
1
How to change time zones?
Say you have a POSIX object that is in UTC. How do you change the
values to another timezone?
If I do this:
times <- strptime(times, "%H:%M:%S")
times1 <- as.POSIXct(times, tz="UTC")
times2 <- as.POSIXct(times, tz="CDT6CST")
times1 id UTC, but times2 is still UTC, not CTD. Why? Is the only
was to change time zones to add seconds to POSIX objects?
2004 Feb 09
2
data.frame to matrix
Hello all,
I've had trouble converting a data.frame to a matrix (numeric) using either
data.matrix() and as.matrix().
After executing one of those I end up with another data.frame with only the
first column of the original data.frame.
I use a window (tcltk) to let the user choose the columns he wants and then
I retrieve them using the following:
varstemp <-
2005 Feb 07
2
sys.on.exit not working (PR#7665)
Full_Name: Mark Bravington
Version: 2.0.1
OS: Windows XP
Submission from: (NULL) (140.79.22.104)
'sys.on.exit()' doesn't seem to be working, since R1.7.1 at least:
soe.test <- function() {
on.exit( cat( 'In exit code\n'))
str( sys.on.exit()) # should display "language..." I think
12
}
(A similar bug was apparently fixed for version 0.65!)
2002 Nov 08
1
Memory R and Windows2000
Hello,
when using: rm(list=ls(all=TRUE)) and gc() command , and looking at the
memory
used by Rgui.exe in window2000 there is no change.
this is strange .
Actually I need to be sure that memory is given back to the system
because the users of the application I wrote under R are opening and closing
big files of data;
can I rely on the gc() function under win2k?
Vincent Demolombe
2004 Mar 11
3
making operators act on rows of a data frame
Dear R helpers,
I wish to use the "sum" operator for each row of a data frame.
However, it appears that the operator acts on the entire data
frame, over all columns. What is the best way to obtain row-
wise operation?
The following code shows my attempts so far, and their problems:-
test1=array(rbinom(120,1,0.5),c(20,3))
test1[,3]=NA
sum(test1[,1:2])
test1[,3][sum(test1[,1:2])>=2]=1
2004 Mar 30
2
Sweave and graphic output locations
Hello,
I'm using R1.8.1 on windows 2000 and version 1.8.1 of the tools package.
I am attempting to have Sweave write files to a different directory via:
testfile <- system.file("Sweave", "Sweave-test-1.Rnw",
package = "tools")
## create a LaTeX file
Sweave(
testfile,
output = "C:/temp/Sweave-test-1.tex",
2004 May 11
2
- making a Windows library from Unix source code
Hi All,
I'm using R1.8.1 on Windows XP.
I'm having trouble producing an R library from source code. A colleague has written the source code, in Unix. I've copied the source code across to Windows (with the help files, data files, description and index) and am trying to compile it into a library.
I've "sourced" each of the *.r files and they appear to work.
2004 May 20
2
ifelse when test is shorter than yes/no
Hi,
It turns out that the 'test' vector in ifelse(test, yes, no) is not
recycled if it is shorter than the other arguments, e.g.
> ifelse(TRUE, seq(10), -seq(10))
[1] 1
Is there any particular reason it is not recycled? If there is one
indeed a warning message might be in order when someone calls ifelse
with a shorter 'test'.
This is R1.8.1 on RH-7.3
Thanks,
Vadim
2004 Aug 05
1
R interface to Python (in Windows)
I put a copy of R 1.8.1 for Windows on our FTP site at:
ftp://ftp.odot.state.or.us/outgoing/Test/. It should be there for a few
days before it gets deleted.
Benjamin Stabler
Transportation Planning Analysis Unit
Oregon Department of Transportation
555 13th Street NE, Suite 2
Salem, OR 97301 Ph: 503-986-4104
-----Original Message-----
From: Peter Wilkinson [mailto:pwilkinson at videotron.ca]
2004 Apr 20
10
Error with 1.9.0 - Invalid HOMEDRIVE
I installed R project 1.9.0 on Windows XP. The installation went well.
Then, I rebooted. Next, I clicked the icon under Programs in the Start
menu and received this error, "Fatal Error: Invalid HOMEDRIVE". I
clicked OK to the error message. The program does not start. I went to
a DOS prompt and did "echo %HOMEDRIVE%" and it returned "C:". This
letter is a valid
2004 May 25
4
Object "silhouette.default" not found. But I knew that it is there.
Hi!
>library(cluster)
In this lib a function called silhoutte.default is defined
than on the R prompt it type
>silhouette.default
Error: Object "silhouette.default" not found
R1.9.0
The same error are at R1.8.1
And I knew that a function silhoutte.default are present.
But the same piece of code works in R1.6.2
???
Eryk
Dipl. bio-chem. Eryk Witold Wolski @