Displaying 20 results from an estimated 1000 matches similar to: "installation of packages"
2004 Dec 03
1
Getting R to emit an image file as a pipe or Base64 strea m: Mac OSX 10.3 - R 2.0.1
> From: Yuandan Zhang
>
> If you want to call R from perl, why don't you do a simple
> system call like:
>
> $callR="/usr/loca/bin/R CMD BATCH plotscript.R";
> system ($callR);
>
> It is not necessary to start X display if anything can be
> done in background
But the problem is jpeg()/png() are not available unless an X display is
available to the
2005 Apr 29
4
charset problem with smbmount
Hi!
I have a test file with all special characters of hungarian language on a
windows share: ??????????????????.txt
(I hope Your mailer wiill show them correctly :-))
When I use smbclient to connect to share, I see correct characters, I can
get the file to local disk and ls shows the correct name too.
When I try to mount with smbmount the closest result I produced was:
?I???AuUoO?U?????O.txt
cp
2000 Jun 21
1
configure: error: Could not find working SSLeay / OpenSSL libraries
Hi,
I've built and installed the openssl-0.9.1c package but openssh-2.1.1p1
configure can't apparently 'see' the package. I've tried adding the install
directory to LD_LIBRARY_PATH, using CFLAGS, LDFLAGS, LIBS etc. The 'missing'
rand.h is present n the included path shown in the config.log output below.
What am I missing? Any help would be very much appreciated.
2008 Mar 06
1
invalid regular expression '[a-Z]'
Hi,
just curious, but does anyone know the source/reason of observing the
following error on OSX but not on WinXP and Linux? I've tried with a
few different versions of R (v2.5.1, v2.6.1, v2.6.2, v2.7.0devel).
The locale does not seem to affect the error, i.e. I've tested a few
different and it is still only OSX that gives the error but not the
other two.
> regexpr("[a-Z]",
2010 Jan 27
2
Bulk Match/Replace
This must be easy to do.....
I have a vector and a lookup data.frame:
> v
[1] "5" "234" "234" "42-43" "234" "42-43" "234" "234"
"42-43" "234" "5" "234" "234" "5" "234" "234" "5"
2009 Jan 12
4
fitting curve to data
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have the following data:
> y
[1] 0.000 0.004 0.008 0.016 0.024 0.032 0.044 0.064 0.072 0.088 0.108 0.140
[13] 0.156 0.180 0.208 0.236 0.264 0.296 0.320 0.360 0.408 0.444 0.472 0.524
[25] 0.576
> x
[1] 100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500
[16] 1600 1700 1800 1900 2000 2100 2200 2300 2400 2500
I'd
2000 Jul 17
3
Fonts and Line widths
Hi All R guru's,
A couple of simple questions which I cannot find answers to in "an
introduction to R" or in the reference manuals.
I am running R on Win95, and have plotted up quite a nice box and
whisker plot:
char<-read.table("n:/reddinm/grifpr~1/survey/char.txt")
attach(char)
boxplot(Al,Fe,OC,pH, range=0,xaxis=FALSE,
ylab="Proportion of Unirigated
2009 Jan 07
2
Memory Efficiency of Symmetric Matrix
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm generating a symmetric correlation matrix using a data matrix as input:
mat <- cor(data.mat)
My question is:
Is there a more memory efficient way to store this data? For instance, since:
all(mat == t(mat))
every value is duplicated, and I should be able to almost half the memory usage for large matrices.
Any thoughts/comments?
Cheers,
2010 Jan 13
1
decompress tar.gz and zip files
Can anyone point me in the right direction for decompressing text files that are
compressed as tar.gz or zip files?
Cheers,
Nathan
--
--------------------------------------------------------
Dr. Nathan S. Watson-Haigh
OCE Post Doctoral Fellow
CSIRO Livestock Industries
University Drive
Townsville, QLD 4810
Australia
Tel: +61 (0)7 4753 8548
Fax: +61 (0)7 4753 8600
Web:
2010 Feb 08
2
Help with apply()
I have a 2 column data.frame:
> d[1:5,]
a b
1 80015 C
2 80016 B
3 80023 C
4 80062 B
5 80069 B
I want to apply a function across each row:
> for(i in 1:nrow(d)) {
+ myFun(con, d[i,]$a, d[i,]$b)
+ }
How do I do this using apply()? I'm unsure how to tell apply() to pass
data from columns a and b for a given row as arguments to the function
2010 Mar 18
1
Intersect, Union of date/time ranges
I have 2 sets of data which defines the start and end of date/time
periods. I want to be able to obtain the following:
1) The intersect of those 2 sets of date/time ranges i.e. return
start/end date/time ranges where both sets overlap
2) The union of those 2 sets of date/time ranges i.e. return the
start/end date/time ranges which are in 1 or both sets
Is there anything that is currently able
2001 Oct 30
1
Calling FORTRAN code
Dear R users,
I have recently started using R. I need to execute a FORTRAN file within R.
Does it allow to call executable (or FORTRAN code) file within R ?
Thank you very much in advance.
Kind Regards
Seyit Ali KAYIS
___________________________________________________________________________
THE FOLLOWING WARNINGS ATTACH TO THIS COMMUNICATION
This material is intended
2010 Jan 25
1
RMySQL Append data.frame to table
I have a data.frame obj with 5 columns whose colnames match the fields
in my "contact" table. The only other field my MySQL table has is an id
field which is the PK and is set to auto increment.
I'd like to load this data.frame using something like:
dbWriteTable(con, "contact", dat, append=TRUE)
However, I get this error:
Error in mysqlExecStatement(conn, statement,
2009 May 29
1
Package Licences
Are there any particular licences under which R packages must be released or is
it the discretion of the author? The same question if the package is to be
destined for CRAN?
Kind regards,
Nathan
--
--------------------------------------------------------
Dr. Nathan S. Watson-Haigh
OCE Post Doctoral Fellow
CSIRO Livestock Industries
Queensland Bioscience Precinct
St Lucia, QLD 4067
Australia
2009 Jun 17
1
Coerce rectangular matrix to symmetrical square matrix
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have a rectangular matrix of size 920 by 85. I'd like to coerce it into a
square matrix such that all row/col names are present in the new matrix and the
additional values are zero.
As an example:
A B C D
A 1 2 3 4
E 5 6 7 8
F 9 10 11 12
Would be coerced to:
A B C D E F
A 1 2 3 4 5 9
B 2 0 0 0 6 10
C 3 0 0
2004 Dec 06
2
Re : LOOPS
Dear lists,
I want to construct a loop in R, but don't know how to do it. I can do it
in SAS, but I prefer in R (which I am hoping I will off SAS for good
soon). Could anyone help me to convert the SAS codes to equivalent R codes.
Basically, the following codes were written to establish the sire gametes
or phases for daughter design for one markers two alleles.
Here are the SAS code:
do
2009 Feb 17
1
Create package with Fortran 90 and C code
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm trying to add some Fortran 90 code to an existing package.
When I compile and load the file manually like:
SHELL> R CMD SHLIB file.f90
R> dyn.load("file.so")
I can use the .Fortran() fine. However, when I try to build, install and load
the library I seem to be missing something.
I do a:
SHELL> R CMD build dir
SHELL> R
2004 Dec 03
1
Getting R to emit an image file as a pipe or Base64 stream: Mac OSX 10.3 - R 2.0.1
Hi All,
Anybody know how to make R emit base64 encoded text in some way that perl
can grab it, instead of planting a file on your harddrive when calling
JPEG or PNG?
I've managed to get these scripts to work and put a file on the harddisk
#!/usr/bin/perl -Wall
# by jin kee. a simple script to demonstrate
# the needed steps to get R to emit a jpeg.
use strict;
my($callR, $callRold);
# need
2009 Feb 11
1
Looping over a matrix passed to .C
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I've written a function in R which takes a symmetrical matrix as input and
processes all triplicate combinations of values from the matrix. The function
looks something like:
my_fun <- function(m) {
if( nrow(mat) != ncol(mat) ) {
stop("'m' must be a square matrix")
}
size <- nrow(m)
for(x in 1:(size -2)) {
2009 Feb 03
1
pairs() help - colour histograms on diagonal
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'd like to be able to colour histograms along the diagonal using the colours
stored in colnames(d):
> d
black blue brown cyan
1 0.96405751 -0.02964390 -0.060147424 -0.06460070
2 -0.03614607 0.95475444 -0.152382053 -0.07767974
3 -0.07095613 -0.05884884 -0.061289399 -0.06445973
4 -0.03708223 -0.05997624