Displaying 20 results from an estimated 6000 matches similar to: "Regex engine types"
2005 Feb 01
1
New problem printing °C in plots
> version
_
platform i686-pc-linux-gnu
arch i686
os linux-gnu
system i686, linux-gnu
status
major 2
minor 0.1
year 2004
month 11
day 15
language R
> paste("25", "?C", sep = "")
[1] "25\302\260C"
In ESS, I get "25\201\260C"
The ?C does end up in the plot alright, but it has an accented A as
well which
2007 Jan 07
3
as.Date() results depend on order of data within vector?
Dear all,
The as.Date() function appears to give different results depending on
the order of the vector passed into it.
d1 = c("1900-01-01", "2007-01-01","","2001-05-03")
d2 = c("", "1900-01-01", "2007-01-01","2001-05-03")
as.Date(d1) # gives correct results
as.Date(d2) # fails with error (* see below)
This problem
2010 May 28
5
difference in sort order linux/Windows (R.2.11.0)
Dear R users,
I'm a bit perplexed with the effect sort has here, as it is different on
Windows vs. linux.
It makes my factor levels and subsequent plots different on the two systems.
Given:
types <- c("PC-D-Euro-0", "PC-D-Euro-1", "PC-D-Euro-2", "PC-D-Euro-3",
"PC-D-Euro-4", "PC-D-Euro-5", "PC-D-Euro-6",
2009 Sep 30
2
R 2.9.2 crashes when sorting latin1-encoded strings
Hi everyone!
I think I stumbled over a bug in the latest R 2.9.2 patched for OS X:
> R version 2.9.2 Patched (2009-09-24 r49861)
> i386-apple-darwin9.8.0
When I try to sort latin1-encoded character vectors, R sometimes
crashes with a segmentation fault. I'm running OS X 10.5.8 and have
observed this behaviour both with the i386 and x86_64 builds, in the
R.app GUI as well as on
2013 Jan 22
4
Simple use of dcast (reshape2 package)
Suppose I have a small dataframe
> aa
Target Eaten ID
50 TPP 0 1
51 TPP 1 2
52 TPP 3 3
53 TPP 1 4
54 TPP 2 5
50.1 GPA 9 1
51.1 GPA 11 2
52.1 GPA 8 3
53.1 GPA 8 4
54.1 GPA 10 5
And I want to reshape it into
ID TPP GPA
1 1 0 9
2 2 1 11
3 3 3 8
4 4 1 8
5 5 2 10
I realise that
2008 Jan 02
2
INSTALL.in: Install R to local path?
Dear all,
I am trying to install R on a (Linux Debian) machine where I do not
have root access. So far I succeeded in compiling from source and
running R.
But I would really like to be able to use "make install" and to be
able to install certain packages such as foreign. Now these actions
require permissions for directories that I do not have.
In particular I would like R home to be
2009 Dec 14
6
write.csv and header
Dear list,
I would like to export a matrix to a TXT-File by using write.csv (not
necessarily). Is there a way to add a header (with additional
informations concerning the project) spanning multiple lines to this
file before the actual data are listed up? Should look like this:
date:
filename:
number of permutations:
------------
data (as a matrix)
Any suggestions? Thnx in advance.
2007 Jul 02
2
Question about PCA with prcomp
Hello All,
The basic premise of what I want to do is the following:
I have 20 "entities" for which I have ~500 measurements each. So, I
have a matrix of 20 rows by ~500 columns.
The 20 entities fall into two classes: "good" and "bad."
I eventually would like to derive a model that would then be able to
classify new entities as being in "good
2018 Feb 02
2
Updating Rcpp package when it is claimed by dplyr
Or, to avoid accusing you of lying. what you think is "vanilla" probably isn't. What exactly did you do? On Unix-likes, I would do something like this
echo 'options(repos=list(CRAN="cran.r-project.org"));install.packages("Rcpp")' | R --vanilla
(or maybe https://cloud.r-project.org is better...)
-pd
> On 2 Feb 2018, at 08:15 , Jeff Newmiller
2010 Mar 03
2
Rmpi on CentOS (64bit)
I got Rmpi to compile with little difficulty, but had a tricky time
setting the LD_LIBRARY_PATH to use the OpenMPI libs. I now get a
different error when I try to load Rmpi
> require(Rmpi)
Loading required package: Rmpi
librdmacm: couldn't read ABI version.
librdmacm: assuming: 4
libibverbs: Fatal: couldn't read uverbs ABI version.
CMA: unable to open
2002 Apr 24
2
Changing the colour in boxplots using bwplot()
I've managed to find how to change
trellis.settings$box.rectangle$col
and
trellis.settings$box.umbrella$col
but I can't figure out how to change the colour of the point used
to indicate outliers. There doesn't seem to be a general colour.
What am I overlooking?
best
--
*************************************************************
___ Patrick Connolly
{~._.~}
2018 Feb 02
2
Updating Rcpp package when it is claimed by dplyr
When i tried to install the hunspell package, I got this error message:
Error: package ?Rcpp? 0.12.3 was found, but >= 0.12.12 is required by ?hunspell?
So I set about installing a new version of Rcpp but I get this message:
Error in unloadNamespace(pkg_name) :
namespace ?Rcpp? is imported by ?dplyr? so cannot be unloaded
How does one get around that? I tried installing Rcpp in a
2018 Feb 14
2
Using gutenbergr with a firewall
I can use the gutenberg_download() function in the gutenbergr package
on a computer that doeson't use a firewall, but on an almost identical
installation that is behind a firewall, nothing happens, not even a
time-out.
Has anyone succeeded in using gutenberg_download() successfully with a
firewall? I tried raising an issue at
https://github.com/ropenscilabs/gutenbergr/issues/17 with no
2009 Aug 21
1
sessionInfo() fails to correctly detect locale settings
Dear R devels
Yesterday I was slightly surprised to notice that R incorrectly
detected some of the locale settings. I am not sure whether this is
important, but I preferred to drop a message. In the R output below,
some entries that should have been "en_GB.UTF-8" are presented as "C".
Regards
Liviu
> sessionInfo()
R version 2.9.1 (2009-06-26)
x86_64-pc-linux-gnu
locale:
2010 Feb 18
2
sprng 2.0 header file for Rmpi
When I try to install Rmpi, it has a dependency rsprng which, as its
description says: Provides interface to SPRNG 2.0 APIs
I installed it on Mepis by installing the appropriate debs with
minimal drama. In the rpm world of Fedora, no such luxury.
Installing rsprng fails because:
checking sprng.h usability... no
checking sprng.h presence... no
checking for sprng.h... no
Cannot find sprng 2.0
2016 May 18
3
[patch] Error in reg-tests-1c.R (R-devel)
I get an error when running "make check" after building R-devel r70629
on Ubuntu 14.04. Here are the relevant lines in the file
"reg-tests-1c.Rout.fail":
> ## m1z uses match(x, *) with length(x) == 1 and failed in R 3.3.0
> ## PR#16909 - a consequence of the match() bug; check here too:
> dv <- data.frame(var?1 = 1:3, var?2 = 3); dv[,"var?2"]
2016 Apr 19
3
Problem with X11
Dear All,
I have never had this problem before. I run debian testing on my box
and I have recently update my R environment.
Now, see what happens when I try the most trivial of all plots
> plot(seq(22))
Error in (function (display = "", width, height, pointsize, gamma, bg,
:
X11 module cannot be loaded
In addition: Warning message:
In (function (display = "", width,
2010 Jun 11
2
R in Linux: problem with special characters
Hi,
I’m working with the 64 bit version of R 2.11.0 for Linux. My session info is:
R version 2.11.0 (2010-04-22)
x86_64-redhat-linux-gnu
locale:
[1] C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
When I try to print words with special characters the result is that the expression printed has some kind of code substituting the special
2010 Oct 08
2
font question on pdf device
Hi,
I wonder if this is something on my machine locally or R in general.
When I do the following:
> plot(c(0,1),c(0,1),main=expression(paste(symbol("D"),"D",sep="")))
I get a plot with a title having uppercase delta followed by "D". But in
the following
> pdf(file="deltaTest.pdf")
>
2009 Feb 18
2
Counting/processing a character vector
Dear List,
I have a data set stored in the following format:
> head(dat, n = 10)
id sppcode abundance
1 10307 10000000 1
2 10307 16220602 2
3 10307 20000000 5
4 10307 20110000 2
5 10307 24000000 1
6 10307 40210000 83
7 10307 40210102 45
8 10307 45140000 1
9 10307 45630000 1
10 10307 45630600 41
>