Displaying 20 results from an estimated 1000 matches similar to: "Parsing and deparsing of escaped unicode characters"
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 Oct 03
2
Windows OS, R and unicode
I'm trying to use the biological female and male signs in R2.5.1 under
Windows XP. I can access and insert these symbols using word-processors.
In general these should be available as \u2640 and \u2642 but I can't
make them happen in R using (say) text(5,5, "\u2640") message "invalid
\uxxxx sequence"
I've replaced Arial with Arial unicode MS in Rdevga and
2012 Mar 15
3
Problem with stored configs / Invalid unicode escaping
Hello,
i have a problem with stored configs since the migration from "sqlite"
to "postgresql".
dho@appelbaum:~$ sudo puppetd --test --verbose
info: Retrieving plugin
info: Loading facts in disks
info: Loading facts in users
info: Loading facts in mountpoints
info: Loading facts in disks
info: Loading facts in users
info: Loading facts in mountpoints
err: Could not retrieve
1999 Oct 23
1
greek letters and deparsing in title
Dear All,
In the title of a plot, I would like to mix greek letters with numbers, where
the numbers are obtained from a particular function to a vector (e.g., max(x));
in each call, the value of this vector can change.
Without greek symbols I use something like:
title(sub=paste("x1=", deparse(x[1]),"beta = ",deparse(max(x)), "rho = ",
deparse(min(x))))
but I'd
2008 Aug 25
1
Unicode notation \x000
Dear list,
I am trying to replace Unicode notation of German and Spanish special
characters (as read in by read.csv from excel spreadsheets) by
character strings that can be interpreted by LaTeX.
E.g.:
uni2latex <- function(x){
x <- gsub("&", "et", x, fixed = TRUE)
# Deutsch
x <- gsub("\u0080", "\\\"A", x, fixed = TRUE)
x
1999 Apr 04
2
deparsing lhs of formula in print.anova.lm (PR#157)
Full_Name: Douglas Bates
Version: Version 0.64.0 Unstable (April 3, 1999)
OS: Debian GNU/Linux 2.1
Submission from: (NULL) (128.105.5.97)
R> fm2 <- lm( 1/Surv ~ Poison + Antidote + Poison:Antidote, data = BC )
R> anova( fm2 )
Analysis of Variance Table
Response: /
Response: 1
Response: Surv
Df Sum Sq Mean Sq F value Pr(>F)
Poison 2 34.9 17.4
2006 Mar 02
5
Deparsing '...'
Hi,
The following function works, but is there a neater way to write it?
f = function(x,...)
{
# return a character vector of the arguments passed in after 'x'
gsub("
","",unlist(strsplit(deparse(substitute(list(...))),"[(,)]")))[-1]
}
> f(x,a,b,c*d)
[1] "a" "b" "c*d"
>
Thanks.
[[alternative HTML
2007 Oct 25
3
Deparsing part of a list argument
Here's a simple example of the type of function I'm trying to write,
where the first argument is a list of functions:
myfun <- function(funlist, vec){
tmp <- lapply(funlist, function(x)do.call(x, args = list(vec)))
names(tmp) <- names(funlist)
tmp
}
> myfun(list("Summation" = sum, prod, "Absolute value" = abs), c(1, 4, 6, 7))
$Summation
[1]
2023 Feb 26
1
Cannot reach documentation site
On 27/02/2023 4:13 am, Chris Candreva wrote:
> On Sun, 26 Feb 2023, Ken Bass wrote:
>
>> doc.dovecot.org does not have a DNS entry. It worked a few days ago, but not now.
> [chris at newpop ~]$ host doc.dovecot.org
> doc.dovecot.org is an alias for talvi.dovecot.org.
> talvi.dovecot.org has address 94.237.105.223
> talvi.dovecot.org has IPv6 address
2012 Jan 18
1
use of UTF-8 \uxxxx escape sequences in function arguments
While preparing a function that contained non-ASCII characters for inclusion
into a package, I replaced all non-ASCII characters with UTF-8 escape
sequences (using \uxxxx) in order to make the package portable (and adhere to
"R CMD check"). What I didn't expect: when one uses UTF-8 escape sequences in
function arguments, one needs to use UTF-8 escape sequences when calling the
2015 May 25
5
Unicode display problem with data frames under Windows
On 25/05/2015 11:37 AM, Ista Zahn wrote:
> AFAIK this is the way it works on Windows. It has been discussed in several
> places, e.g.
> http://stackoverflow.com/questions/17715956/why-do-some-unicode-characters-display-in-matrices-but-not-data-frames-in-r
> ,
> http://stackoverflow.com/questions/17715956/why-do-some-unicode-characters-display-in-matrices-but-not-data-frames-in-r
2017 Aug 14
2
Metrics service
Hi!
All of you running dovecot v2.2.27 or later, are now able to take
advantage of our free metrics service at https://metrics.dovecot.org.
To use it, set
auth_stats=yes
mail_plugins = $mail_plugins stats
stats_carbon_server = 94.237.81.63
# or
stats_carbon_server = [2a04:3542:1000:910:acc1:5bff:fe5e:8c2]
stats_carbon_name = some-fancy-identifier-without-a-dot
plugin {
stats_refresh = 30s
}
2013 Mar 23
1
Character change to Unicode format escape character when create a data frame
Hi,
I want to create a data frame including a column containing some special characters, like "ø". when I print that data frame out, the content change to <U+00F8>, and when save the data frame to a txt file, the content keep in that style, but I need it in its original form, anybody can explain?
> x <- data.frame(part = c("målløs", "ny"))
> x
2019 Dec 04
2
some error about dovecot when compile
when i build dovecot in my computer, something has occured like below:
root at 2030c8624e88:/dovecot-2.3.9# ./autogen.sh
--2019-12-04 10:49:53-- https://www.dovecot.org/tmp/wiki2-export.tar.gz
Resolving www.dovecot.org (www.dovecot.org)... 94.237.12.234, 2a04:3545:1000:720:acc1:5bff:fe5e:4e9
Connecting to www.dovecot.org (www.dovecot.org)|94.237.12.234|:443... connected.
HTTP request sent,
2015 May 26
0
Unicode display problem with data frames under Windows
On 25 May 2015 at 19:43, Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
>> http://stackoverflow.com/questions/17715956/why-do-some-unicode-characters-display-in-matrices-but-not-data-frames-in-r
> Yes, but it is a bug, just a hard one to fix. It needs someone to dedicate
> a serious amount of time to deal with it.
>
> Since most of the people who tend to do that
2011 Jul 17
3
gsub() with unicode and escape character
Dear helpers,
I'm trying to replace a character with a unicode code inside a data
frame using gsub(), but unsuccessfully.
> data.frame(animals=c("dog","wolf","cat"))->my.data
> gsub("o","\u0254",my.data$animals)->my.data$animals
> my.data$animals
[1] "d??g" "w??lf" "cat"
It's not that a data
2006 May 04
2
No networking in DomU - Ubuntu
Well where do I start...I have a domU (ubuntu) booting and appears well
but I don''t have an eth0 listed at all, dom) looks good.
DomU:
eth0 Link encap:Ethernet HWaddr 00:06:5B:15:C5:0B
inet addr:10.99.99.5 Bcast:10.99.99.7 Mask:255.255.255.248
inet6 addr: fe80::206:5bff:fe15:c50b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
2012 Oct 06
3
vector is not assigned correctly in for loop
Hi there,
Here is a minimum working example:
----------------------------------------------------------------
lower = 0
upper = 1
n_bins = 50
interval = (upper - lower) / n_bins
bins = vector(mode="numeric", length=n_bins)
breaks = seq(from=lower + interval, to=upper, by=interval)
for(idx in breaks)
{
bins[idx / interval] = idx
}
print(bins)
2012 May 31
1
possible bug in "R Editor"
Dear all,
I clicked "File-New Script" to open a R Editor, typed some commands in
it and then saved it to a file. If the location where I tried to save
the script contained Chinese Character, R Editor complained,
Error: invalid input 'E:\Some.Chinese.Characters\new_file.R' in 'utf8towcs'
> sessionInfo()
R version 2.15.0 (2012-03-30)
Platform: i386-pc-mingw32/i386
2011 Sep 29
1
Warning: changing locked binding for ...
Dear all, I use the R R Under development (unstable) (2011-09-28 r57099).
When I load the RQDA package, it issues warnings. As the RQDA package
developer, what should I deal with such message? Thank you very much.
> library(gWidgetsRGtk2)
Loading required package: gWidgets
> library(RQDA)
Loading required package: DBI
Loading required package: RSQLite
Use 'RQDA()' to start the