Displaying 20 results from an estimated 2000 matches similar to: "RSPerl and Statistics::R"
2008 Dec 27
1
Zipf fitting using R
Dear R-users,
I am new to R and would like to use it for fitting the zipf distribution to
some numeric data that I have. Here's the snippet that I use:
library(VGAM)
X <- read.table(file("~\\mydata.txt", encoding="latin1"))
w <- as.vector(t((X[2])))
w <- w/sum(w)
y <- (1:length(w))
fit = vglm (y ~ 1, zipf, tra=TRUE, weight=w)
zipf(N=NULL,
2008 Sep 10
1
A question about the hypergeometric distribution and phyper()
Dear All
I have a question about the hypergeomteric distribution.
Example 1: I have a universe of 6187 objects, and 164 have a particular
attribute, therefore 6187-164 do not have that attribute. I sample 249
of those objects, and find that 19 have that attribute. I get a p-value
here (looking at just over-representation):
phyper(19, 164, 6187-164, 249, lower.tail=FALSE)
[1] 7.816235e-06
2008 Nov 29
1
unrelated software install triggering an error from R's install script on Mac OS X 10.5
Dear List,
I am having a problem triggered by having R-2.8
(R version 2.8.0 Patched (2008-11-15 r46953)) installed on Mac OS X
10.5.
The steps needed to generate the error are:
- install a binary distribution of R (default location)
- add R to the PATH
- install the python module pycairo
(http://www.cairographics.org/releases/pycairo-1.4.12.tar.gz)
That last step results in an error, and the
2008 Nov 20
1
pdf device: rasterize portions of the plot to reduce file size
Dear list,
My favorite output format is usually pdf. I can include the graphics
in pdflatex documents and benefit from the scalable nature of vector
graphic formats.
However, I recently had to generate high-res 2D levelplot graphics as
in the example below,
N <- 100
# N <- 1000 # slow to diplay
xy <- expand.grid(x=seq(0, 10, length=N), y=seq(0, 10, length=N))
xy <- within(xy,
2009 Apr 09
2
R interpreter not recognized
Hello,
I am trying to install a program based on R, but I am receiving the
following error message:
root at darkstar:/home/maria/UCS# perl System/Install.perl
Error: Can't run the R interpreter (/usr/local/bin/R).
Please make sure that R is installed and specify the fully qualified
filename of the R interpreter with -R if necessary (see "doc/install.txt").
I do have installed R,
2008 Jul 31
4
instal tar.gz package on windows
Dear HelpeRs,
I have created a tar.gz package (the package was created on unix) and I would like to install it in R on a Windows operating system.
As far as I know, R in Windows accepts only packages in zip file for installation and I could not find a way to install a tar.gz file.
I would like to mention that I installed the package on unix using install.packages and it works. I also tried to
2008 Nov 30
6
Regex: workaround for variable length negative lookbehind
Hi all
I have the following regular expression problem: I want to find
complete elements of a vector that end in a repeated character but
where the repetition doesn't make up the whole word. That is, for the
vector vec:
vec<-c("aaaa", "baaa", "bbaa", "bbba", "baamm", "aa")
I would like to get
"baaa"
"bbaa"
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
2008 Oct 03
3
several postscript problems
Hello everyone,
I'm currently trying to export a couple of graphs to pdf . Postscript
would be fine too, but I'm using odd page dimensions, which seem to be
overwritten when using the "ps2pdf" command. I'm using the pdfpages
package in LaTeX to put 6 graphs onto one page (this is why it ought to
be a pdf in the end).
I have two problems:
1. I'm using
2009 Oct 29
1
Error installing RSPerl.
Dear list,
I have updated to version R-2.10.0. When I try to load the RSPerl
library I get the following error:
> library(RSPerl)
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared library
'/usr/local/lib/R/library/RSPerl/libs/RSPerl.so':
/usr/local/lib/R/library/RSPerl/libs/RSPerl.so: undefined symbol:
boot_DB_File__Glob
Error: package/namespace load failed
2003 Dec 18
1
RSPerl
If anyone can help it would be very much apreciated...
System RedHat 9
R installed as
# ./configure --enable-R-shlib
# make
# make install
and R seems to work fine ...
Then I do
# R INSTALL --clean --configure-args='--with-in-perl'
RSPerl_0.5-7.tar.gz
# export R_HOME=/usr/local/lib/R
# cd /usr/local/lib/R/library/RSPerl/examples/
# perl -I
2004 Nov 11
1
RSPerl problem with testing
Hi,
I'm trying to install de RSPerl module and i have some problems trying
to test it. I've tried to contact with the author but the e-mail address
seems not to exist. Hope that anyone in this list could explain me a
little about this problem. I have a bash shell and what i do is the
following:
#PERLLIB=/usr/lib/R/library/RSPerl/share/blib/arch:/usr/lib/R/library/RSPerl/share/blib/lib
#
2002 Jul 18
1
RSPerl on OS X
Hello,
Has anyone gotten RSPerl ( (http://www.omegahat.org/RSPerl/)
to work on Mac OS X?
After installing RSPerl, I run the test program (or, even simpler,
perl -e 'use R;') and get the following error:
dyld: perl Undefined symbols:
_RPerl_createRProxy
_RPerl_discardRProxy
_RPerl_getProxyValue
_RPerl_getReferenceName
_addPerlConverterRoutine
_fromPerl
_tryEval
_userLevelConversionToPerl
2008 Jan 14
1
Install RSPerl in Leopard
Hi,
I am having problems installing RSPerl 0.92-1 in my Mac OSX 10.5.1.
I?ve installed correctly R-2.6.1 with the .mpkg.
I run the next command: <R CMD INSTALL --configure-args=' --with-in-
perl ' RSPerl>
And the next error message appears:
RSPerl
* Installing to library '/Library/Frameworks/R.framework/Resources/
library'
* Installing *source* package
2008 Mar 27
1
Nothing happened when I using t.test throuth RSPerl
Hi,
I've just started using RSPerl. Though also tests in directory "/usr/local/lib/R/library/RSPerl/tests/" are passed successfully, I meet the problem with the following codes;
use strict;
use warnings;
use R;
use RReferences;
my @array1=1..10;
my @array2=1..39;
&R::initR("--silent");
&R::library("RSPerl");
my $tt=&R::call("t.test",
2010 Oct 27
1
install RSPerl on Fedora
Hi
I have R 2.11.1 installed at Fedora 13. when I tried to install RSPerl
by command line
sudo R CMD INSTALL ~/Download/RSPerl_0.92-1.tar.gz
It failed with following errors, could some one offer help?
Thanks
Yuan
Converters.c: In function ?PerlAllocHomogeneousVector?:
Converters.c:1003: error: ?elementType? undeclared (first use in this function)
Converters.c:1004: error: ?SVt_IV? undeclared
2007 Nov 11
2
using RSperl with "tree" package
Hello,
I am trying to use the "tree" package in R with RSperl.
I have generated a regression tree using the "tree" package in R and saved it in a file say "RegTree_2.Rdata"
If I use the predict function from R command line, it works fine. However, I want to use it from within perl using RSperl. To do that, here is what I do,
my $regTree =
2005 May 19
1
R from Perl -- RSPerl and lines function.
Dear R-helpers,
I am running well Perl and R on my Debian Linux, and I tried RSPerl.
Installation is ok and all simple functions run well. But I have a
problem to call the "lines" function.
I would like to draw an histogram with the density curve on. Is is OK
in R with the command:
>x<-rnorm(1000)
>hist(x,prob=T)
>lines(density(x))
for example.
Now, I have a Perl script
2005 Jul 12
1
Installing RSPerl and Statistics::R
Hi list,
For my research, I started using R as a statistics engine, driven by
perl scripts that manage my data and computational jobs. I recently
upgraded my cluster to Suse 9.2, and obviously wanted to upgrade R to
it's latest version, 2.1.1. Installation of R-2.1.1 went flawlessly
thanks to the rpm's created by Detlef Steuer (see cran, thanks Detlef).
To interface perl and R, two
2005 Mar 04
1
R-2.01 and RSPerl-0.6.2
Hi,
I am somewhat new to R and RSPerl, but I think this particular problem
has to do with RSPerl and so I am not sure if this is the right forum
to ask for help. Nevertheless I am quite sure that many of you would
have used RSPerl with R.
My hardware platform is a Sun/Solaris V440 server running Solaris 9
operating system I use the gcc-3.4.0 compiler to compile R without any
problems. My