Displaying 20 results from an estimated 10000 matches similar to: "list concatenation"
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
2007 Jan 26
2
Why do return or visible don´t return my objekt?
Dear RRRRRrrrrrrrrlist!
I?ve got two lists which contain sets of DNA-sequences. They look
something like this:
List of 33
$ Cunonia_atrorubens : chr [1:247] "t" "t" "n" "t" ...
$ Cunonia_balansae : chr [1:254] "t" "c" "c" "c" ...
$ Cunonia_capensis : chr
2013 Jan 22
1
Concatenate two lists, list by list
Dear all,
I would like to concatenate the lists below
str(Part2$dataset)
List of 3
$ : num [1:16001] 0 0 0 0 0 0 0 0 0 0 ...
$ : num [1:16001] 0 0 0 0 0 0 0 0 0 0 ...
$ : num [1:16001] 0 0 0 0 0 0 0 0 0 0 ...
str(Part1$dataset)
List of 3
$ : num [1:16001] 0 0 0 0 0 0 0 0 0 0 ...
$ : num [1:16001] 0 0 0 0 0 0 0 0 0 0 ...
$ : num [1:16001] 0 0 0 0 0 0 0 0 0 0 ...
I tried concatenating
2005 Aug 10
1
RMySQL not loading on Mac OS X
Hi,
I have a problem loading RMySQL 0.5-5 on Mac OS 10.4.2 running R 2.1.1.
I installed RMySQL using:
export PKG_CPPFLAGS="-I/usr/local/mysql/include"
export PKG_LIBS="-L/usr/local/mysql/lib -lmysqlclient"
R CMD INSTALL /Users/gwo/Desktop/RMySQL_0.5-5.tar.gz
The installation seemed to work ok, but when I load RMySQL in R I get
an error message:
>library(RMySQL)
2006 Feb 13
7
Concatenation
I have this:
<%= @tech_standard.category + " " + @tech_standard.point + "." +
@tech_standard.subpoint %>
I get this error:
cannot convert Fixnum into String
point and subpoint are number.
How do I concatenate those values?
Seth Buntin
Web Resources Coordinator
Kentucky Academy of Technology Education
Murray State University
--------------
2004 Oct 18
2
concatenating lists elementwise
Hi
How do I concatenate two lists element-by-element?
Example:
list.1 <- list(temperature=c("hot","cold") , size=c("big","medium"))
list.2 <- list(temperature=c("lukewarm") , size=c("massive","tiny"))
list.wanted <- list(temperature=c("hot","cold","lukewarm") ,
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
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
2010 May 21
3
Concatenation
Hi,
I have a dataframe with some 800 rows and 14 columns.
Could you please advise how I can concatenate the rows - one after another.
Similarly for columns, one below the other.
Many thanks.
Cheers,
Santana
[[alternative HTML version deleted]]
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 18
1
Improving string concatenation
Gabor Csardi writes:
> Btw. for some motivation, here is a (surely incomplete) list of
> languages with '+' as the string concatenation operator:
>
> ALGOL 68, BASIC, C++, C#, Cobra, Pascal, Object Pascal, Eiffel, Go,
> JavaScript, Java, Python, Turing, Ruby, Windows Powers hell,
> Objective-C, F#, Sc-ala, Ya.
The situation for R is rather different from that of a
2010 Mar 31
3
creating a variable using concatenation
A general problem i run into, i know there must be a simple solution.
I like to create a variable by appending a 1 for example, (i need to
loop later on from 1 to X, thus the reason for this). So i assign the
variable vplot with this value, however it has quotes and when i use it
in a barplot, it throws an error. but the tcenter$X1 does exist, its an
element of a data frame. So if i type
2008 Feb 04
1
Concatenation and Evaluation
Hello all,
I've run into what I bet is a silly problem; however, I've been
trying to get around it now for a couple weeks and every time I think
I have the answer it still doesn't work. So I apologize in advance
if this is painfully obvious, but I've run out of ideas and would
really appreciate any input.
My situation is this, I'm importing a number of tab
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
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
2017 Nov 08
4
Gapless concatenation of Opus frames
Hi!
Short version of my question: How to produce Opus frames which can be
safely concatenated and how to embed them into a WebM file?
Long version:
I'm currently implementing a web-based audio player which streams
audio as opus/WebM using the HTML5 media source extensions. Currently,
the server decodes a set of input files to a fixed RAW audio format
(stereo, 48000 kHz) and encodes the
2016 Apr 27
3
Create a new variable and concatenation inside a "for" loop
Hello,
Suppose the you need a loop to create a new variable , i.e., you are not reading data from outside the loop. This is a simple example in Matlab code,
for i=1:5
r1=randn
r2=randn
r=[r1 r2]
c(i,:)=r; % creation of each row of c , % the ":" symbol indicates all columns. In R this would be [i,]
end
The output of interest is c which I'm creating inside the "for" loop
2007 Oct 15
1
String concatenation, File Path Handling to pass to download.file( ) [backslash in DOS paths]
Gabor,
Thanks much. Your solution is elegant. My overall scheme is to take
present date, and check whether it is a weekend, if not, then create a
string based on the date, to concatenate into a url link for
download.file( ). The files I need to download have a part which is in
the format: mmddyy. I am working to make myself a system to connect to
exchanges, and download end of day files from
2009 Nov 20
1
How to concatenate expressions
Dear R-users,
I am developing a plotting function, which receives expressions and
character/numerical vectors as part of the many input arguments and
which tries to concatenate them before displaying the result to the
plot. I currently cannot find a way to make this concatenation works. I
have read several posts in the list that solved this problem by pasting
the different elements together
2006 Sep 11
2
Wilcoxon Rank-Sum Test with Bonferroni's correction
Dear all,
I am trying to run Wilcoxon Rank-Sum Test with Bonferroni's
correction. I have two lists: l0, l1:
mapply(function(x,y)wilcox.test(x,y)$p.value, l0, l1)
How do I run Bonferroni's correction on mapply? Any help is much apperciated.
Thanks,
-Raj