Displaying 20 results from an estimated 12000 matches similar to: "how to concatinate the elements of some text vectors cat() or print() ?"
2004 Aug 06
2
using a web server?
This is a stupid question...
Why would one use a streaming audio server versus just a web server to
stream static files like a juke box?
Here are some reasons I came up with:
1) A web server won't concatinate songs together, but if someone is
only downloading say a one-off clip, perhaps a web server is exactly
what is needed
2) Titles (or rather meta-data) don't get inserted into the
2018 Jul 17
2
Output mis-encoded on Windows w/ RGui 3.5.1 in strange case
Sorry, I should have been more clear -- if I write the contents of
that script to a file called 'encoding.R' and source that, then I see
the reported behavior.
Here's something standalone that you should hopefully be able to copy
+ paste into RGui to reproduce:
code <- '
x <- 1
print(list())
save(x, file = tempfile())
output <- encodeString("apple")
2018 Jul 18
1
Output mis-encoded on Windows w/ RGui 3.5.1 in strange case
Fixed in R-devel and R-patched,
Tomas
On 07/18/2018 12:03 PM, Tomas Kalibera wrote:
> Thanks, I can now reproduce and it is a bug that is easy to fix, I
> will do so shortly.
>
> Fyi it can be reproduced simply by running these two lines in Rgui:
>
> list()
> encodeString("apple")
>
> Best
> Tomas
>
> On 07/17/2018 05:16 PM, Kevin Ushey wrote:
2012 Dec 11
2
Writing escaped unicode
I'd like to write unicode strings using the "\u" escape syntax. According to the documentation, print.default or encodeString will escape unicode using the \u convention. In practice, I can't make it work.
> b="Unicode character: \ufffd"
> print.default(b)
[1] "Unicode character: ?"
> encodeString(b)
[1] "Unicode character: ?"
I want to
2007 Jun 05
1
Inverse of encodeString
What is the inverse of encodeString?
For example, \u1 is some Unicode symbol. If I do
s <- encodeString("\u1")
then s will be the string "\001". But anything I do
with s, will not return the Unicode that corresponds to \u1:
cat(s, "\n") # prints \001
cat("\u1", "\n") # prints y with umlaut
Alberto Monteiro
2012 Aug 21
2
apply question
This works, where zz is a dataframe:
for(i in 1:nrow(zz)) {
zzz[i,1]<-paste(zz[i,1],zz[i,2],sep="_")
}
I would like to use "apply" to concatentate two columns of text along with
a separator.
How?
Chet
[[alternative HTML version deleted]]
2018 Jul 16
2
Output mis-encoded on Windows w/ RGui 3.5.1 in strange case
Given the following R script:
x <- 1
print(list())
save(x, file = tempfile())
output <- encodeString("apple")
print(output)
If I source this script from RGui on Windows, I see the output:
> source("encoding.R")
list()
[1] "\002??apple\003??"
That is, it's as though R has injected what looks like byte order
marks around the
2007 May 23
1
Catenating factors.
I was recently asked by one of new colleagues how to combine, or catentate,
or concatentate two factors. If x and y are factors, doing c(x,y) appears
to coerce x and y to numeric mode before catenating them. So what does one
do if one wants the result to be a factor whose levels are the union of the
levels of x and y? I vaguely recall seeing this discussed in r-help, but I
can't find
2011 Aug 05
1
Displaying a summary in graphics
I'm writing a script which puts together a bunch of graphs and outputs them to a graphics device. One of the things I want to add is ANOVA summaries but I'm having trouble with formatting them for graphics.
I do this:
anova_summary <- summary(aov(concentration~inhibition*genotype, data =drug_data))
print(anova_summary)
The printout to the R console is in the format I want but if I
2007 May 27
2
Looking for the first observation within the month
Hi all, I have a simple data frame, first list is a list of dates (in
"%Y-%m-%d" format) and second list an observation on that particular
date. There might not be observations everyday. Let's just say
there are no observations on saturdays and sundays. Now I want to
select the first observation of every month into a list. Is there an
easy way to do that?
Date
2005 Jul 20
1
(PR#8017) build of REventLoop package crashes with 2.1 due
In what way is this a bug in R? It looks like a bug in the package, and
as Defn.h is not part of R's API any packge using it is `at risk' (and
cannot be installed in a binary-only installation, or even an installed
version of R).
In particular, Defn,.h depends on config.h, and it seems you installed a
binary version of R and used separate sources. I would suggest building
R from
2018 Jul 18
0
Output mis-encoded on Windows w/ RGui 3.5.1 in strange case
Thanks, I can now reproduce and it is a bug that is easy to fix, I will
do so shortly.
Fyi it can be reproduced simply by running these two lines in Rgui:
list()
encodeString("apple")
Best
Tomas
On 07/17/2018 05:16 PM, Kevin Ushey wrote:
> Sorry, I should have been more clear -- if I write the contents of
> that script to a file called 'encoding.R' and source that,
2010 May 16
1
Reading JPEG file, converting to HEX
Colleagues,
I am using R to assemble RTF documents (which are plain text). I need to embed a JPEG graphic that was created with R. I presume that the steps need to be:
a. read the file into R
b. convert the object to HEX format
c. write the converted object to a textfile.
If I read the file into R using readLines, I get the following (only the first 5 lines shown):
> >
2006 Jul 19
2
Aligning ragged text columns
Can anyone please suggest how I can print:
a <- matrix(c(
"Heading 1", "This is some info\nabout heading 1",
"Heading 2", "This is some info\nabout heading 2",
), byrow=T, nrow=2)
to look like:
Heading 1 This is some info
about heading 1
Heading 2 This is some info
about heading 2
(if you're not using a fixed width
2009 Mar 10
2
problem with concatinating string while taking as a path of a file
Hi all,
I have a problem with concatinating strings while taking as a path here the
problem is
i have to take path as
FPATH<-"D:\\Kiran"
and file name as
Fname<-"FINDINGS.CSV"
and while I am reading this table I have to take path with using these two
strings because in "FPATH" there is many files like findings.csv,
and path will be
2007 Apr 23
14
concatination & stripe - zfs?
I want to configure my zfs like this :
concatination_stripe_pool :
concatination
lun0_controller0
lun1_controller0
concatination
lun2_controller1
lun3_controller1
1. There is any option to implement it in ZFS?
2. there is other why to get the same configuration?
thanks
This message posted from opensolaris.org
2006 May 17
5
text_field_with_auto_complete (newbie question)
I have the text_field_with_auto_complete woking on my user DB using
last_name. so looking for ''ivanoff'' works great, but I can''t find
''john''. Plus I like to have ''last_name, first_name'' show up in the
dropdown.
what I can''t figure out is how to concat first_name and last_name to
make a name and use that to look it.
working
2018 Jul 17
0
Output mis-encoded on Windows w/ RGui 3.5.1 in strange case
Hi Kevin,
the extra bytes you are seeing are escapes for UTF-8 strings used in
input to RGui console. Recently ascii strings are converted to UTF-8 so
you would get these escapes for ascii strings now as well. RGui
understands these escapes and converts from UTF-8 to wide characters
before printing on Windows. The escapes should not be used unless
printing to RGui console.
I suppose you
2006 Apr 11
2
concat results from db query
I''ve got a bunch of records coming back from a database like so
ID WORDS
1. banana apple orange
2. apple pear
3. banana orange
I want to take the records in the WORDS field and concatinate them into
one large array so I can play around with it. How do I do this?
--
Posted via http://www.ruby-forum.com/.
2005 Jul 19
0
build of REventLoop package crashes with 2.1 due tosyntax error in Defn.h (PR#8017)
Full_Name: Richard Boyce
Version: 2.1.-1
OS: Debian testing/unstable
Submission from: (NULL) (128.95.123.29)
While building a custom package using a modified version of Duncan's REventLoop
with R version 2.1 (Debian package r-base, r-base-dev) and R source from apt-get
source 2.1.1 I get the following error:
$ R CMD build vjREventLoop
* checking for file