Displaying 20 results from an estimated 4000 matches similar to: "I hope Sally also loves Bob..."
2018 Sep 18
0
diag(-1) produces weird result
Yes, both are rooted in age-old design infelicities (in which, basically, interactive expedience has taken precedence over consistency and generality).
Unfortunately, they are quite difficult to rectify, because there are bound to be countless uses of, say, diag(5) as a 5x5 identity matrix which would break if it suddenly meant the 1x1 matrix(5) instead.
We'd need a very carefully
2003 Apr 02
19
Combining the components of a character vector
Dear Help,
Suppose I have a character vector.
x <- c("Bob", "loves", "Sally")
I want to combine it into a single string: "Bob loves Sally" .
paste(x) yields:
paste(x)
[1] "Bob" "loves" "Sally"
The following function combines the character vector into a string in the
way that I want, but it seems somewhat inelegant.
2006 Nov 03
1
(no subject)
From: Martin Maechler <maechler at stat.math.ethz.ch>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <17739.46076.735981.117358 at stat.math.ethz.ch>
Date: Fri, 3 Nov 2006 22:26:20 +0100
To: Barry Rowlingson <B.Rowlingson at lancaster.ac.uk>
Cc: Sarah Goslee <sarah.goslee at gmail.com>,
r-help at
2002 Dec 04
2
difftime arithmetic (PR#2345)
Full_Name: Barry Rowlingson
Version: 1.6.0
OS: RH8 i386
Submission from: (NULL) (148.88.136.205)
Strange things happen if I premultiply a difftime() object with a number.
Example:
> d1 <- difftime(Sys.time(),Sys.time())
> d2 <- 1 * difftime(Sys.time(),Sys.time())
> d3 <- difftime(Sys.time(),Sys.time()) * 1
> d1
Time difference of 0 secs
- thats fine
> d2
[1] 0
2002 Nov 04
1
longjmp - was: seemingly random "nesting of readline input" w arnings
Barry,
Would you mind providing the necessary patch for this behavior?
Thanks,
Greg
> -----Original Message-----
> From: Barry Rowlingson [mailto:B.Rowlingson@lancaster.ac.uk]
> Sent: Monday, November 04, 2002 8:04 AM
> To: r-devel@stat.math.ethz.ch
> Subject: Re: longjmp - was: seemingly random "nesting of
> readline input"
> warnings
>
>
> Luke
2010 Jan 10
1
scatterplot matrix with ggplot2
#I would like to use the below data to make a scatter plot matrix with
#code similar to that below the data
#conceptually this is the right approach I think
#thanks in advance
melt.gg <- structure(list(stream = c("Bonham Lower", "Bonham Lower",
"Bonham Lower",
"Bonham Lower", "Bonham Lower", "Bonham Lower", "Bonham Lower",
2019 Feb 02
1
Runnable R packages
I see some value in Duncan?s proposal to implement this as an extra package
instead of a change to base R, if only to see if the idea has legs. I?m
minded to do so myself using your suggestion, but is there a particular
reason why you recommend using the remotes package instead of devtools? The
latter seems to have the same functions I would need, and I believe it is
more widely installed that
2003 May 08
0
convert plot to device coords
Is there a function to convert from plot coordinates to device coordinates?
It should be easy enough to work out from various par() parameters -
namely usr, plt, and fig. 'usr' tells us where an (x,y) point is in the
plot, then 'plt' tells us where it is in the figure, then 'fig' tells us
where it is in the ((0,1),(0,1)) device space. Then there's the slight
2000 Feb 22
0
"Maps in R"
I've just spent a couple of idle weekends getting a version of the
S-plus 'maps' library working under R.
For those unfamiliar with the maps library, it lets you map a
geographical region, split into areas, and optionally colour-fill
those areas according to some variable. For example:
R> library(maps)
R>
2016 Apr 21
0
Data reshaping with conditions
Hi sri,
I think that I see what you mean. Your statements:
x = Count_A_less_than_max of (Count type B)
y = Count_A_higher_than_max of (Count type B).
I took to mean that you wanted a logical value for x and y. Looking
more closely at your initial message, I see that you wanted _all_
values of A with respect to maxB in x and y. The error with maximum
values was due to a typo. Perhaps this will do
2009 Mar 11
3
Converting a dataframe to a matrix
If I have a dataframe which is organized like this:
name color likes?
1 sally red 0
2 sally blue 1
3 sally green 1
4 jake red 0
5 jake blue 1
6 jake green 1
7 tom red 1
8 tom blue 0
9 tom green 0
And I want to create a matrix in the form:
red blue green
sally 0 1 1
jake 0 1 1
tom 1 0 0
Are there any built-in
2010 Jul 31
3
Installing iTunes on Linux Mint Isadora 9
Hi all,
I have downloaded the latest version of wine in order to run iTunes but when I tried to execute the program here is what I get :
cd /home/sally/Documents
$ wine iTunes64Setup.exe
Trying to load PE image for unsupported architecture (AMD-64)
err:process:create_process starting 64-bit process L"Z:\\home\\sally\\Documents\\iTunes64Setup.exe" not supported on this platform
wine:
2001 May 03
1
Running R under Mosix
Mosix is a cluster operating system that is a set of
kernel patches to Linux on i386 machines. It allows
processes to migrate to other nodes on the cluster
transparently. See www.mosix.org for details. However,
my R processes were refusing to migrate.
Using strace, and delving into the R code, I found
that it was due to a large number of calls to the system
setjmp and longjmp routines - the
2010 Mar 08
2
Monetary support to the R-project (Was: Re: Executable for Production Use)
On Mon, Mar 8, 2010 at 8:46 PM, Barry Rowlingson
<b.rowlingson at lancaster.ac.uk> wrote:
> On Mon, Mar 8, 2010 at 6:44 PM, Ma Ismail - NewYork-MEAG-NY
> <ima at meag-ny.com> wrote:
>> Hi,
>>
>> A few of the developers on our Quant team are using R for data calculation and to generate a
[snip]
> ?I've noticed a lot of financial corporates getting into R
2012 Jul 22
3
Puppet template tags and Java JSP tags
Hi All,
I was trying to templatize some JSP page I would like to dynamically
generates but it looks like puppet doesn''t like it.
Common JSP tags are <% ... %> so I guess it''s getting confused between
regular tags and jsp''s one.
This is an example of the trace it is givin me :
/etc/puppet/modules/xxx/templates/webapps/xxx/yyy/Mantle.jsp:1:in `result'':
2016 Apr 21
2
Data reshaping with conditions
Hi Jim,
Thanks for your time. But somehow this code did not help me to achieve my
expected output.
Problems: 1) x, y are coming as logical rather than values as I mentioned
in my post
2) The values that I get for Max A and Max B not correct
3) It looks like a pretty big data, but I just need to
concatenate the values with a comma, the final output will be a character
2016 Apr 20
0
Data reshaping with conditions
Hi sri,
As your problem involves a few logical steps, I found it easier to
approach it in a stepwise way. Perhaps there are more elegant ways to
accomplish this.
svdat<-read.table(text="Count id name type
117 335 sally A
19 335 sally A
167 335 sally B
18 340 susan A
56 340 susan A
22 340 susan B
53 340 susan B
135 351 lee A
114 351 lee A
84 351 lee A
80 351 lee A
19 351 lee A
8 351 lee A
2013 Oct 04
0
R-help Digest, Vol 128, Issue 5
Hi Peter,
The ssconvert tool (part of gnumeric) is very good at converting spreadsheets to csv-files.
There is a wrapper in the "gnumeric" package on cran.
Cheers,
Thomas
> Date: Fri, 4 Oct 2013 09:08:50 +0100
> From: Barry Rowlingson <b.rowlingson at lancaster.ac.uk>
> To: Peter Maclean <pmaclean2011 at yahoo.com>
> Cc: "r-help at r-project.org"
2018 Jul 03
0
base::mean not consistent about NA/NaN
Thank you for interesting examples.
I would find useful to document this behavior also in `?mean`, while `+`
operator is also affected, the `sum` function is not.
For mean, NA / NaN could be handled in loop in summary.c. I assume that
performance penalty of fix is the reason why this inconsistency still
exists.
Jan
On Mon, Jul 2, 2018 at 8:28 PM, Barry Rowlingson <
b.rowlingson at
2018 Jul 26
0
Possible bug: R --slave --interactive stdin echo on Linux when stdin is a fifo
On Thu, Jul 26, 2018 at 1:43 PM <luke-tierney at uiowa.edu> wrote:
>
> On Thu, 26 Jul 2018, G?bor Cs?rdi wrote:
>
> > On Thu, Jul 26, 2018 at 12:25 PM Barry Rowlingson
> > <b.rowlingson at lancaster.ac.uk> wrote:
> >>
> >> On Thu, Jul 26, 2018 at 12:22 AM, G?bor Cs?rdi <csardi.gabor at gmail.com> wrote:
> >>> I am trying to