Displaying 20 results from an estimated 4000 matches similar to: "Improving string concatenation"
2015 Jun 17
1
Improving string concatenation
Just to clarify, primitive (C-level) generics do not support dispatch
on basic classes (like character). This is for performance (no need to
consider dispatch on non-objects) and for sanity (in general,
redefining fundamental behaviors is dangerous). It is of course
possible to define a "+" method with a signature containing a class
not in the set of basic classes.
On Tue, Jun 16, 2015
2015 Jun 16
5
Improving string concatenation
Hi, first time poster here. During my time using R, I have always found
string concatenation to be (what I feel is) unnecessarily complicated by
requiring the use of the paste() or similar commands.
When searching for how to concatenate strings in R, several top search
results show answers that say to write your own function or override the
'+' operator.
Sample code like the following
2015 Jun 17
4
Improving string concatenation
Bad choice of words I'm afraid. What I'm ultimately pushing for is a
feature request. To allow string concatenation with '+' by default. Sure I
can write my own string addition function (like the example I posted
previously) but I use it so often that I end up putting it in every script
I write.
It is ultimately a matter of readability and syntactic sugar I guess. As an
example, I
2015 Jun 17
3
Improving string concatenation
On Tue, Jun 16, 2015 at 8:24 PM, Herv? Pag?s <hpages at fredhutch.org> wrote:
[...]
>
> If I was to override `+` to concatenate strings, I would make it stick
> to the recycling scheme used by arithmetic and comparison operators
> (which is the most sensible of all IMO).
Yeah, I agree, paste's recycling rules are sometimes painful. This
could be "fixed" with a nice
2017 Jun 16
4
[WISH / PATCH] possibility to split string literals across multiple lines
> On Wed, 14 Jun 2017, G?bor Cs?rdi wrote:
>
> > I like the idea of string literals, but the C/C++ way clearly does not
> > work. The Python/Julia way might, i.e.:
> >
> > """this is a
> > multi-line
> > lineral"""
>
> luke-tierney at uiowa.edu:
> This does look like a promising option; some more careful checking
2015 Jun 17
2
Improving string concatenation
> How would this new '+' deal with factors, as paste does or as the current
'+'
> does? Would number+string and string+number cause errors (as in current
> '+' in R and python) or coerce both to strings (as in current R:paste and
in perl's '+').
I had posted this sample code previously to demonstrate how string
concatenation could be implemented
2015 Jun 17
3
Improving string concatenation
On Wed, Jun 17, 2015 at 12:45 PM, William Dunlap <wdunlap at tibco.com> wrote:
>> ... adding the ability to concat
>> strings with '+' would be a relatively simple addition (no pun intended)
> to
>> the code base I believe. With a lot of other languages supporting this
> kind
>> of concatenation, this is what surprised me most when first learning R.
>
2015 Jun 17
0
Improving string concatenation
Hi Joshua,
On 06/16/2015 03:32 PM, Joshua Bradley wrote:
> Hi, first time poster here. During my time using R, I have always found
> string concatenation to be (what I feel is) unnecessarily complicated by
> requiring the use of the paste() or similar commands.
>
>
> When searching for how to concatenate strings in R, several top search
> results show answers that say to
2015 Jun 17
0
Improving string concatenation
On Jun 16, 2015 3:44 PM, "Joshua Bradley" <jgbradley1 at gmail.com> wrote:
>
> Hi, first time poster here. During my time using R, I have always found
> string concatenation to be (what I feel is) unnecessarily complicated by
> requiring the use of the paste() or similar commands.
I don't follow. In what sense is paste complicated to use? Not in the sense
of
2015 Jun 17
0
Improving string concatenation
> ... adding the ability to concat
> strings with '+' would be a relatively simple addition (no pun intended)
to
> the code base I believe. With a lot of other languages supporting this
kind
> of concatenation, this is what surprised me most when first learning R.
Wow! R has a lot of surprising features and I would have thought
this would be quite a way down the list.
How
2015 Jun 17
0
Improving string concatenation
One of the poster's on the SO post I linked to previously suggested this
but if '+' were made to be S4 compliant, then adding the ability to concat
strings with '+' would be a relatively simple addition (no pun intended) to
the code base I believe. With a lot of other languages supporting this kind
of concatenation, this is what surprised me most when first learning R.
This is
2015 Jun 17
0
Improving string concatenation
if '+' and paste don't change their behavior with respect to
factors but you encourage people to use '+' instead of paste
then you will run into problems with data.frame columns because
many people don't notice whether a character-like column is
character or factor. With paste() this is not a problem but with '+'
it is. I think it is good not to make people worry
2009 Sep 30
4
How do I do simple string concatenation in R?
Dear R gurus
How do I do simple string concatenation in R?
For example:
A = "klm"
B = "jjj"
How can I assign a value to C such that C == "klmjjj" is True?
Thank you
Arie
[[alternative HTML version deleted]]
2006 May 30
4
Automate concatenation?
I have this typical problem of joining a number of vectors with similar
names - a1, a2,..., a10 - which should be concatenated into one. Using
c(a1,a2,a3,a4,a5,a6,a,a8,a9,a10) naturally works, but I would like to do
it with less manual input. My attempts to use paste() gives a vector of
the vector names, see below. The question is how to do the the
concatenation? Any suggestions?
2018 Aug 06
2
Re: [PATCH] v2v: rhv-plugin: Use string literal concatenation
On Mon, Aug 6, 2018 at 11:02 AM Richard W.M. Jones <rjones@redhat.com>
wrote:
> On Sun, Aug 05, 2018 at 04:37:31PM +0300, Nir Soffer wrote:
> > When splitting long strings over multiple lines, we can use string
> > literal concatenation instead of +.
> >
> > See
> https://docs.python.org/3/reference/lexical_analysis.html#string-literal-concatenation
> >
2018 Aug 05
3
[PATCH] v2v: rhv-plugin: Use string literal concatenation
When splitting long strings over multiple lines, we can use string
literal concatenation instead of +.
See https://docs.python.org/3/reference/lexical_analysis.html#string-literal-concatenation
---
.gnulib | 2 +-
v2v/rhv-upload-plugin.py | 14 +++++++-------
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/.gnulib b/.gnulib
index 5b78831df..646a44e1b 160000
---
2008 Feb 07
1
Preventing IAX frame concatenation
Hi all,
I have spent some time searching, but I haven't found a way to prevent *
from concatenating two frames into one IAX packet.
I have a situation where I make an IAX GSM call to *, which transcodes
to an iLBC SIP call. Every second voice packet the IAX client receives
contains 2x 20ms frames, the other containing only one. I presume this
is related to the mismatch of 20ms GSM vs
2008 Apr 11
1
zfs concatenation to mirror
Hi,
Is it possible to convert a zfs pool from a concatenation of 2 disks to
a 2 way mirror without backing up the data, re-creating the pool and
restoring it. i.e
diskA,diskB ----> mirror(diskA,diskB)
Thanks,
Jeff
2016 Apr 27
0
Create a new variable and concatenation inside a "for" loop
"c" an extremely commonly-used function. Functions are first-class objects that occupy the same namespaces that variables do, so they can obscure each other. In short, don't use variables called "c" (R is case sensitive, so "C" has no such problem).
Wherever possible, avoid incremental concatenation like the plague. If you feel you must use it, at least
2020 Sep 23
3
[Bug 1465] New: [vmap] ct state concatenation not working
https://bugzilla.netfilter.org/show_bug.cgi?id=1465
Bug ID: 1465
Summary: [vmap] ct state concatenation not working
Product: nftables
Version: unspecified
Hardware: All
OS: Debian GNU/Linux
Status: NEW
Severity: minor
Priority: P5
Component: nft
Assignee: pablo at