Displaying 20 results from an estimated 1000 matches similar to: "X-window graphics -- preventing window coming to front?"
2009 Aug 05
7
why is 0 not an integer?
Why when I assign 0 to an element of an integer vector does the type change
to numeric?
Here is a particularly perplexing example:
> v <- 0:10
> v
[1] 0 1 2 3 4 5 6 7 8 9 10
> class(v)
[1] "integer"
> v[1] <- 0
> class(v)
[1] "numeric" #!!
>
--
View this message in context:
2009 Aug 05
7
why is 0 not an integer?
Why when I assign 0 to an element of an integer vector does the type change
to numeric?
Here is a particularly perplexing example:
> v <- 0:10
> v
[1] 0 1 2 3 4 5 6 7 8 9 10
> class(v)
[1] "integer"
> v[1] <- 0
> class(v)
[1] "numeric" #!!
>
--
View this message in context:
2009 Jul 08
2
print() to file?
I'd like to write some objects (eg arrays) to a log file. cat() flattens them
out. I'd like them formatted as in 'print' but print only writes to stdout.
Is there a simple way to achieve this result?
Thanks
--
View this message in context: http://www.nabble.com/print%28%29-to-file--tp24397445p24397445.html
Sent from the R help mailing list archive at Nabble.com.
2009 Aug 04
4
array slice notation?
Suppose I have an n-diml array A and I want to extract the first "row" -- ie
all elements A[1, ...]
Interactively if I know 'n' I can write A[1,,,,,] with (n-1) commas.
How do I do the same more generally, eg in a script?
(I can think of doing this by converting A to a vector then extracting the
approp elements then reshaping it to an array, but I wonder if there isn't a
2009 Jul 01
2
sorting question
I've asked about custom sorting before and it appears that -- in terms of a
user-defined order -- it can only be done either by defining a custom class
or using various tricks with "order"
Just wondering if anyone has a clever way to order "vintages" of the form
2002, 2003H1, 2003H2, 2004, 2005Q1, 2005Q2, etc
some have H1 or H2, some have Q1,Q2,Q3,Q4, some are just plain
2010 Feb 01
5
regular expression submatch?
What is the simplest way to extract a matched subexpression?
Eg. in perl you can do
"hello world" =~ m/hello (.*)/
which would return 1(true) and set $1 to the matched subexpression "world".
--
View this message in context: http://n4.nabble.com/regular-expression-submatch-tp1459146p1459146.html
Sent from the R help mailing list archive at Nabble.com.
2009 Apr 24
4
omit empty cells in crosstab?
Perhaps this is a common question but I haven't been able to find the answer.
I have data with many factors, each taking many values. However, only
relatively few combinations appear in the data, ie have nonzero counts, in
other words the resulting table is sparse. Say we have 10 factors each with
10 levels. The result of table() would exceed the memory space (on a 32bit
machine). Is there
2004 Apr 06
1
Minimize a plot window
Is it possible to start a X11() device in a minimized state? I have many
windows, each with useful data, which clutter the screen. Having each
window minimize upon creation would help.
Mark
--
Mark O. Kimball
Gasparinilab, University of Buffalo | Low temp physics
mok2 at physics.buffalo.edu | URL: enthalpy.physics.buffalo.edu
lab phone: 716-645-2017x122 Fax: 716-645-2507
2001 Aug 09
1
more on Diablo II (wierd problem)
Ok, I do have Diablo II working, mostly. At the moment, it only works
under TWM (not fvwm which is what I normally use) and only in -win
mode.
The problem is that the first time that my mouse leaves the diablo
window, diablo iconifies. Not a major issue, I just have to make sure
that it's before I start playing. HOWEVER, after it's de-iconified,
the keyboard get's somewhat screwy. I
2009 Feb 13
3
R Help
Hi,
I have a list of numbers (classified as a list) that contains integer(0)
empty vectors. How do I convert those integer(0) into NAs? Thanks
[[alternative HTML version deleted]]
2004 Jul 30
2
mirroring in both directions with rsync
When operating in daemon mode, will rsync check to see which file is newer and decide which direction to transfer based on that?
Example,
We have 2 terminal servers, A and B. I want users to be able to work on either server and have their home directories on both stay in sync. If a user logs into server A and changes files, the server would know to transfer the file from A to B. If they log
2009 Jun 17
4
searching help for partial matches
The situation is that I know there is a function and know approximately what
the name is, and want to find the exact name. Is there a way of searching
for near-matches (similar to unix apropos). For example, I know there is a
function called something like allequal (or allequals or AllEquals or...).
But ?allequal, etc, return nothing, only if I remember the name can I get
help via ?all.equal.
2008 Apr 28
3
R on X11 under Linux (newbie)
I just installed R on my 64 bit SUSE Linux system -- I compiled with the default x windows support on..
This may be a newbie question (apologies in advance)-- but how does this show up in X?
I have SSH'd in to my box and set my display -- I can run xcalc OK -- but when I hit the R binary it just goes to the command line -- if does not give me an x-window.
I suspect I need another
2009 Jul 07
3
vectorizing a function
I'm sure I'm missing something obvious but I'm not seeing how to simply
"vectorize" a function of two or more variables.
Say I have
f <- function(x,y) if (x>0) y else -y
Now I have vectors x and y of equal length and I'd like to apply f
element-wise. I.e. conceptually
z <- f(x,y) where x, y, z are vectors of the same length
Some magic involving apply?
2010 Feb 02
3
tapply for function taking of >1 argument?
I'm sure I can put this together from the various 'apply's and split, but I
wonder if anyone has a quick incantation:
E.g. I can do tapply( data, groups, mean)
but how can I do something like: tapply( list(data,weights), groups,
weighted.mean ) ?
(or: mapply is to sapply as ? is to tapply )
Thanks for your help.
--
View this message in context:
2017 Sep 14
7
[Bug 102722] New: [regression] changing resolution hangs the display on Lenovo Thinkpad p51
https://bugs.freedesktop.org/show_bug.cgi?id=102722
Bug ID: 102722
Summary: [regression] changing resolution hangs the display on
Lenovo Thinkpad p51
Product: xorg
Version: unspecified
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: critical
Priority: medium
2009 Jun 17
2
list of data.frames?
I'm trying to build up a list of data.frames by "appending" one by one.
If x,y,z are data.frames, I can do
somelist <- list(x, y, z) (or even somelist <- list(x=x, y=y, z=z) to get
names)
But if I start with
somelist <- list(x,y) and now want to go from this to list(x,y,z) I'm stuck.
I've tried
append(somelist, z)
c(somelist, z)
list(somelist, z)
Each gives
2017 Aug 12
2
Keep on losing communication: Raspberry Pi, CyberPower PR1500LCD
Everything runs fine for several hours, then communication is lost and nut
doesn't reestablish communication on its own.
Running sudo upsdrvctl stop then sudo upsdrvctl start reestablishes
communication.
OS Version: Linux piaware 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017
armv7l GNU/Linux
Nut Version: 2.7.2-4
Nut Installation Method: apt
Device: CyberPower PR1500LCD
Uses
? ?
Generic
2004 May 23
5
OpenSSH v3.8p1 fails to interoperate for GSSAPI (Kerberos) and X-Windows
Versions: openssh-3.8p1-33, heimdal-0.6.1rc3-51, XFree86-4.3.99.902-40,
tk-8.4.6-37, all from SuSE 9.1 (unhacked); back-version peers have
openssh-3.5p1, XFree86-4.3.0-115, etc. from SuSE 8.2.
Symptoms:
1. When the client and server versions are unequal, the Kerberos ticket
is not accepted for authentication. All the clients have
PreferredAuthentications gssapi-with-mic, gssapi, others.
2.
2010 Mar 23
2
rpad ?
Is anyone using rpad? Is there any documentation or examples beyond that in
the 'man' directory of the source?
--
View this message in context: http://n4.nabble.com/rpad-tp1679534p1679534.html
Sent from the R help mailing list archive at Nabble.com.