Displaying 20 results from an estimated 6000 matches similar to: "print tables to figure in R"
2018 Jun 08
4
Subsetting the "ROW"s of an object
> On Jun 8, 2018, at 11:52 AM, Hadley Wickham <h.wickham at gmail.com> wrote:
>
> On Fri, Jun 8, 2018 at 11:38 AM, Berry, Charles <ccberry at ucsd.edu> wrote:
>>
>>
>>> On Jun 8, 2018, at 10:37 AM, Herv? Pag?s <hpages at fredhutch.org> wrote:
>>>
>>> Also the TRUEs cause problems if some dimensions are 0:
>>>
2018 Jun 08
3
Subsetting the "ROW"s of an object
> On Jun 8, 2018, at 10:37 AM, Herv? Pag?s <hpages at fredhutch.org> wrote:
>
> Also the TRUEs cause problems if some dimensions are 0:
>
> > matrix(raw(0), nrow=5, ncol=0)[1:3 , TRUE]
> Error in matrix(raw(0), nrow = 5, ncol = 0)[1:3, TRUE] :
> (subscript) logical subscript too long
OK. But this is easy enough to handle.
>
> H.
>
> On
2018 Jun 08
3
Subsetting the "ROW"s of an object
> On Jun 8, 2018, at 1:49 PM, Hadley Wickham <h.wickham at gmail.com> wrote:
>
> Hmmm, yes, there must be some special case in the C code to avoid
> recycling a length-1 logical vector:
Here is a version that (I think) handles Herve's issue of arrays having one or more 0 dimensions.
subset_ROW <-
function(x,i)
{
dims <- dim(x)
index_list <-
2018 Aug 13
1
substitute() on arguments in ellipsis ("dot dot dot")?
Since you're already using bang-bang ;)
library(rlang)
dots1 <- function(...) as.list(substitute(list(...)))[-1L]
dots2 <- function(...) as.list(substitute(...()))
dots3 <- function(...) match.call(expand.dots = FALSE)[["..."]]
dots4 <- function(...) exprs(...)
bench::mark(
dots1(1+2, "a", rnorm(3), stop("bang!")),
dots2(1+2, "a",
2003 Apr 05
1
samba, ncurses, and sysV printing?
Dear SAMBA Group,
I've playing around with getting SAMBA to do things for me.
I have an Ultra-1 running Solaris 2.6 and a Win-XP system with
a Canon BJC-2000 printer attached to it.
I'm trying to get the SUN to print to the printer on the XP box.
I have followed various instructions but now when I print as "root"
with "lp -d bjc <file>" I get an email message
2018 Sep 20
5
Bias in R's random integers?
On 9/20/18 1:43 AM, Carl Boettiger wrote:
> For a well-tested C algorithm, based on my reading of Lemire, the unbiased
> "algorithm 3" in https://arxiv.org/abs/1805.10941 is part already of the C
> standard library in OpenBSD and macOS (as arc4random_uniform), and in the
> GNU standard library. Lemire also provides C++ code in the appendix of his
> piece for both this and
2003 Nov 16
2
prevent conversion to factors in aggregate?
I've been trying to figure out how to prevent a column that is the result of
an aggregate function call so that I can use it in further calculations. For
example, I would like to aggregate the expf for the data.frame by sp
(character) and dbh (double d=rounded to integer) using the command:
> st2 <- aggregate( ntrs$expf, by=list(sp=ntrs$sp,dbh=ntrs$dbh), sum )
> st2$expf <- st2$x
2018 Aug 13
2
substitute() on arguments in ellipsis ("dot dot dot")?
Interestingly,
as.list(substitute(...()))
also works.
On Sun, Aug 12, 2018 at 1:16 PM, Duncan Murdoch
<murdoch.duncan at gmail.com> wrote:
> On 12/08/2018 4:00 PM, Henrik Bengtsson wrote:
>>
>> Hi. For any number of *known* arguments, we can do:
>>
>> one <- function(a) list(a = substitute(a))
>> two <- function(a, b) list(a = substitute(a), b =
2009 Jul 04
4
Rsync with spaces in source or destination path
Hi, I am trying to transfer a file that has spaces in its name. The rsync
gives me below error. Am I doing anything wrong?
#ls -l /tmp/test\ file
-rw-rw-r-- 1 xxx xxx 0 Jul 5 02:23 /tmp//test file
# /usr/local/bin/rsync --archive /u/masanip/ACH/test\\\ file /tmp/mydir/
rsync: link_stat "/tmp/test\ file" failed: No such file or directory (2)
Number of files: 0
Number of
2004 Jun 08
1
level assignment
Hi,
i would like recocde some numeric variables in one
step, but hanging unexpected in a level asignment problem?
for(i in 2:length(msegmente))
{ msegmente[,i] <- as.factor(msegmente[,i])
}
Problem is that not every level is in every variable, so the
asignment is necessary!?
levels(LT.200301) <- c(1=AK,3=GC,10=OC,
29=AM,32=IA,38=ACH,52=ZBA,53=A9L,59=EHK)
Error: syntax error
>
2010 Jan 24
1
lattice ltext
Dear friends - please give me a hand.
I have a dataset of 40 patients in two groups observed on three
occasions. I only want to plot a line
for each patient in the two groups. I use the ltext function to put the
patient number but fail to make lattice understand the numbers as
unique since apparently it starts all over with 1:20 for each panel
instead of respecting my desires to have 1:20
2006 Jan 24
13
Nortel Meridian Opt 81C and PRI
We've been trying unsuccessfully to connect our Meridian Option 81C to a
TE110P via PRI. We've followed the directions in
asterisk-meridian-a1.pdf (link on
http://www.voip-info.org/wiki/view/Asterisk+legacy+integration), but it
doesn't seem to work on our 81C (even though many, many users report it
works very well on Option 11's).
Has anyone had any success in getting the above
2011 Aug 04
1
Plotting just a portion of a smoother graph in ggplot2
Hi,
I am using ggplot2 to with the following code:
gmathk2 <-
qplot(time,math,colour=Kids,data=kids.ach.lm.k5,geom="smooth",method="lm",formula=y~ns(x,1))
+ opts(title="Smoother Plot: Math K-5") + xlab("Time") + ylab("Math") +
scale_colour_brewer(pal="Set1"); gmathk2
This plots all the smoother for all the x values. What I'd like
2001 Feb 09
1
samba server with 98 clients
I am trying to replace an old novel server that is used only as a fileserver for two legacy dos database programs with a samba server. I am new to samba so am not sure if it will be able to do what I need.
Basicly, I want to run Samba on a linux machine that will authenticate Win98 clients allowing logon scripts, and profile storage on the server. User's who have to use the dos based database
2006 Apr 18
12
Formatting data drawn from a DB
Question for all:
Right now i have a Table in a mySQL DB that has a row called
Ingredients. When the data is entered into the DB its enter like so
from a text area:
1 1/2 lbs. beef top sirloin, thinly sliced
1/3 cup white sugar
1/3 cup rice wine vinegar
2 tablespoons frozen OJ concentrate
1 teaspoon salt
1 tablespoon soy sauce
1 cup long grain rice
2 cups water
1/4 cup cornstarch
2 teaspoons
2000 Feb 07
1
remote browse sync
HELP! I am becoming quite frustrated with trying to set up
remote browse sync. I have several subnets and ONE workgroup. I want
one host in the entire workgroup to have a complete browse list that
it has collected from all of the local master browsers.
One the master:
local master = yes
domain master = yes
On one clients in each subnet:
local master = yes
remote browse sync = 1.2.3.4
2007 May 17
4
help with executing instruction every i-th run of loop
I am running a very long loop and would like to save intermediate
results in case of a system or program crash. Here is the skeleton of
what my code would be:
for (i in 1:zillion)
{
results[[i]]<-do.something.function()
if (logical.test(i)) {save(results, "results.tmp")}
}
logical.test would test to see if i/1000 has no remainder. What R
function would test that?
2005 Nov 23
5
ntlm_auth from pppd help
Hello all,
I am working on a VPN solution using FC3-2.6.12-1.1381 - openswan
2.4.4-1 - l2tpd 0.69-13 - pppd 2.4.3-5 - samba 3.0.10-1.
When attempting a connection from an XP-SP2 box pppd dies without
authenticating the user (see below).
I have run ntlm_auth from the command line with success.
What tools can I use to identify the failure?
Is there an obvious error in the ppp options file?
2006 Mar 14
1
ruby/rails and NACHA
I am looking for ruby/gem support for ACH transactions, that is
bank-bank electronic funds transfers.
I have found a gem (Payment) for credit card payment
but nothing on ACH /NACHA format.
Anyone know of anythings.
Thanks
--
Rob Gordon
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2001 Jan 05
2
crash with scan(..., what=list(,,)) (PR#802)
When reading a file with scan(), the following crashes R under Solaris and
WinNT 4.0 (versions below):
> ads <- scan("Bltiadu.dat", what=list(,,))
Would an error message be more logical? Note that the followings work (the
data file has 201 lines and 3 columns):
> ads <- scan("Bltiadu.dat", what=list(0,,))
Read 603 lines
> ads <-