Displaying 20 results from an estimated 1000 matches similar to: "Running R away from windows (to Linux)"
2002 Nov 29
2
Regular Expressionsionism
Isn't there a cryptic footnote somewhere in the blue book that describes regular expressions as "a funny little language ..." ? Well, I'm not laughing!
I've googled and Man paged, but the GREP-style solution to the following problem still eludes me:
... Using a regular expression in the "pattern" argument to list.files() to restrict the return to filenames which
2002 Sep 06
1
Scope problems - passing an argument from one function to another (LME) within
I am having trouble understanding what must be a quite simple rule of scope.
In the code example below, the argument to the main function, my.subset, would like to be passed to the function LME. This does not happen however. Curiously, the other argument (my.data) is passed to LME.
This problem goes away with this: assign("my.subset", my.subset, env = sys.frame()).
It works, but it
2002 May 15
1
Fwd: Re: Combining many dataframes from listings of objects?
> I want to combine (rbind) many dataframes into a single data frame, but "automatically"
> specifying the names of the dataframes as listing of object names.
> E.g., combine these 18 df objects into one big df using something conceptually like this :
> rbind(objects(pattern="*.df"))
Brian Ripley suggested that something along the lines of:
2002 Sep 27
3
? Exact pattern matching in GREP ?
How is exact pattern matching achieved in GREP (and GREPlike) functions ?
# Want: listing of all object names that end in *.lm
> objects(pattern="*.lm",pos=1)
# ... but get: all objects that partially match *.lm, e.g., *.lme
[1] "j3.lm" "J3.lme" "j8.lm" "J8.lme"
# Want: position of string "4jan2002" in vector
>
2001 Mar 28
1
Returning position of mouse cursor (without button press) ?
I would like a function that return the X,Y position of the mouse cursor
whenever it is called PERIOD, i.e., without the button presses of locator()
or identify().
E.G.,
> where.is.mouse()
[1] 123 34 # X and Y coordinates of present mouse position in current
graphics window
Is this a conceivable R function or does it need to be addressed with a call
to the OS (Windows 2000 in my case)?
2006 Oct 19
3
Time conversion from Win32 64bit FILETIME?
Windows-32 has a time structure called FILETIME, a 64-bit value
representing the number of 100-nanosecond intervals since January 1,
1601 (UTC). That is not a typo, the year is 1601.
Does anyone have a clue(or algorhithm)for how this is converted to
something a little more POSIX-like ?
Thank you,
Derek
--
Derek N. Eder
Gothenburg University
VINKLA - Vigilance and Neurocognition
2000 Oct 02
2
binom.test bug?
R. 1.1.0
The example below is self explanatory.
## 1 ## # works fine
> binom.test((50*.64),50,.5,alt='g')
... Exact binomial test ...
## 2 ## # WHAT ! ?
> binom.test((50*.65),50,.5,alt='g')
Error in binom.test((50 * 0.65), 50, 0.5, alt = "g") :
x must be an
2007 Jan 03
2
Lattice / Trellis analog of axis(graphics) ?
My question is so basic that I am (almost too) embarrassed to admit that
I could not find an answer after an hour's worth of homework.
What is the Trellis / Lattice analog for the axis(graphics) function
that enables the creation of axes in locations other than the default
(i.e., bottom for X axis and right for Y axis) ?
For example when plotting mileage against weight (in American
2006 Dec 06
1
POSIX and summer savings time
I have a time stamp in UTC (GMT) time:
> format(ISOdatetime(1970,1,1,0,0,0)+1165398135729/1000,"%Y-%m-%d
%H:%M:%OS3")
"2006-12-06 09:42:18.823" (note millisecond accuracy, but not relevant
to question here)
Now, this time stamp actually "happened" at local (Swedish) time one
hour later (10:42).
Regarding summer/winter adjustments in time ("spring
2005 Apr 13
5
R binaries for UMBUTU Linux?
Has anyone out there compiled R for the Umbutu Linux* (ne? Debian) v.
5.04 distribution for Intel-type platforms (32 and 64 bit) ?
Thank you,
Derek Eder
* Umbutu, a popular new Linux distribution, not a Nigerian scam, I
promise! http://www.ubuntulinux.org/
--
Derek Eder
SDS KLINIKEN
Vasaplatsen 8
SE 411 34 G?teborg (Gothenburg) Sweden
phone: +46 (31)* - 10 77 80
fax: +46 (31)* - 10 77
2000 Jun 06
1
Binary file input to R
I suspect that the recent queries about reading database files into R
implicitely answered my question here, but I'll ask anyway.
Are there any native binary file read routines in R?
I need to a binary data file consisting of 2 byte records, strip off the
upper 6 bits (using a logical AND, leaving a ten bit word), and then write
the ten bit number in text form for R.
Assuming that R
2003 Jun 11
1
COX PH models for event histories?
This is a question about the use of the Cox proportional hazards model to analyze event histories.
I am looking at the responses of sympathetic nervous system activity to a stimulus. The activity I observe is a burst that can only occur once per heart beat cycle (e.g., a binary count). Typically bursts occur in 60-80% of the heart cycles * sensory stimuli can modify these burst probabilities.
2005 Nov 30
2
R binomial RNG stuck at 1 via Fortran call
Hi,
I have some trouble with the result of a fortran function calling the R
binomial RNG:
The C function rbinom is wrapped as in the file attached.
My main fortran program starts as
call rndstart()
and ends as
call rndend()
I happen to call the binomial RNG within a loop as
b = ggrbinom(1.d0,0.5d0)
write(*,*) 'b=',b
In certain cases, after a few iterations in the loop,
b get
2009 May 26
1
interactive file choosing in Linux?
I am used to using the [R] function choose.files() for interactive file selection in MS-Windows.
What is the comparable function in Linux? I expected the function file.choose() to display similar behavior, i.e., a graphical interface diplaying a file listing, but all I seem to get is a "text input prompt". This does not seem correct.
> file.choose()
Enter file
2023 Jan 12
1
Reg: ggplot error
Hallo
I am not familiar with any of packages you use (except of MASS and ggplot2) and the code is too complicated without any hint where the error could come from and what is the message you get. I wonder if anybody would like to go through your whole code.
1. data seems to be read correctly
ICUData <- read.csv(file = "ICUData.csv", stringsAsFactors = TRUE)
ICUData.neuro <-
2006 Oct 04
2
rendering date/times from 64bit julian format?
Hellos,
I have date/times in 64-bit Julian format, that is the number of
milliseconds since 1 jan 1970 (or something like that). E.g.,
"1159884877406"
For the life of me I can't figure out how to render these in a more
readable format, e.g., "2006-10-04 23:12:93.191" (and I have tried to
do my best searching the archives and help etc ...)
Thank you most
1999 Nov 11
0
NT logon problem
Hi!
I have Samba 2.0.0 running on a SPARC Solaris 2.6 box with a minimal smb.conf. I
have enabled WINS support and this works as well. Everything works fine except
for one NT box. Test 8 in Diagnosis.txt fails with:
System error 5 has occurred.
Access denied.
The NT box is setup as a server, though only used as an ftp-server. Samba
recognizes the NT server. Being a Unix guy myself, I
1999 Jun 14
1
Win95 and wsock32.dll...
Hi, everyone!
Can someone tell me why after configuring our Win95 clients as Samba clients
(using tcp/ip and Microsoft Network) all browsers as well as ftp complain that
there is no socket connection or that wsock32.dll is not available? Samba as
well as email works fine and I did not have this problem with Win98 clients. The
clients I am talking about use older versions of Win95. Earlier
2006 Jul 14
2
Export to LaTeX
Dear Everybody!
I want to export data to LaTeX. As I want to employ the data as freely as
possible I want to avoid the xtable-command and instead generate some List
like
\MyOwnPrettyCommand{Adam}{Auer}{17}
\MyOwnPrettyCommand{Bertram}{Bauer}{14}
\MyOwnPrettyCommand{Christoph}{Huber}{75}
\MyOwnPrettyCommand{Damian}{Dorfer}{69}
\MyOwnPrettyCommand{Emanuel}{Eder}{43}
with \MyOwnPrittyCommand
2012 Apr 15
2
xyplot type="l"
Probably a stupidly simple question, but I wouldn't know how to google it:
xyplot(neuro ~ time | UserID, data=data_sub)
creates a proper plot.
However, if I add
type = "l"
the lines do not go first through time1, then time2, then time3 etc but in
about 50% of all subjects the lines go through points seemingly random
(e.g. from 1 to 4 to 2 to 5 to 3).
The lines always start at time