Displaying 20 results from an estimated 800 matches similar to: "Scope problems - passing an argument from one function to another (LME) within"
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
>
2002 Nov 28
3
Running R away from windows (to Linux)
I want to migrate my R workspace databases (e.g., .Rdata) from Windows to Linux. The R help file for "save" says that "[a]ll R platforms use the XDR representation of binary objects in binary save-d files, and these are portable across all R platforms."
Is it is simple as that? Copy the Windows .Rdata file to the Linux .ext3 file system?
Thanks,
Derek
Derek N. Eder
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 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:
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)?
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
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
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
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
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
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
2003 Mar 20
0
Couldn't find user 'surson+eder' in passdb
We are using WINBIND that seem to get users from the domain correctly.Every
time that I create a password through the smbpasswd for an user using
smbpasswd -a USER, the password is created in the file but when I give
smbclient / /linux/share USE%Pass I receive msg saying that there was logon
mistake in the NT. If I try to use an user of the domain that I don't still
include below in the
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
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
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
2002 Aug 02
1
Cox regression
Hi!
I would like to do Cox regression using the available routines in
the survival package BUT I want to use an arbitrary link function, i.e.
want to use the model
h(t)=h_0(t)r(beta'z)
with arbitrary function r, instead of
h(t)=h_0(t)exp(beta'z)
Grateful for any comment on this,
Dragi
-----------------------------------------------------------
Dragi Anevski, PhD
Mathematical
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.