Displaying 20 results from an estimated 5000 matches similar to: "S4 class no longer accepts matrix in array slot under 2.0.1"
2005 Jan 09
1
S4 class no longer accepts matrix in array slot under 2.0.1
I have an S4 class with a slot of class "array", and in upgrading to 2.0.1
(from 1.9.1) I have encountered a change in behaviour. This causes me some
difficulties if I want to allow 2-dimensional arrays in the slot.
The following (in 2.0.1) illustrates the point:
> setClass("foo",representation("array"))
[1] "foo"
> a <-
2004 Oct 25
1
usage and behavior of 'setIs'
Hello,
am I using 'setIs' in the correct way in the subsequent (artifical) example?
Do I have to specify explicit 'setAs' for 'list' and 'vector' or
should this work automatically, since "getClass("List1")" states
an explicit coerce also for these classes.
I'm working with R 2.0.0 Patched (2004-10-06) on windows 2000.
Thanks for your
2004 Oct 19
1
plot.dendrogram and plot.hclust ZOOM into the height?
Hi,
I clustered a distance matrix and would like to draw it using
plot.hclust or plot.dendrogram.
The dendrogram is not informative because I have a few extremely small
dissimilarities in the distance matrix (e.g. 0), but most of the other
distances are in the range 1e10+-5000.
I would like to show the tree only for the height of 1e10+-5000 but
unfortunately their are no parameter like
2004 Oct 21
3
error in plot.dendrogram (PR#7300)
Hi,
hres <- hclust(smatr,method="single")
hresd<-as.dendrogram(hres)
as.dendrogram(hres)
`dendrogram' with 2 branches and 380 members total, at height 2514.513
plot(hresd,leaflab="none") #<-error here.
#the plotted dendrogram is incomplete. The x axis is not drawn.
#The interested reader can download the
save(hresd,file="hres.rda")
#from the
2004 Nov 24
12
scatterplot of 100000 points and pdf file format
Hi,
I want to draw a scatter plot with 1M and more points and save it as pdf.
This makes the pdf file large.
So i tried to save the file first as png and than convert it to pdf.
This looks OK if printed but if viewed e.g. with acrobat as document
figure the quality is bad.
Anyone knows a way to reduce the size but keep the quality?
/E
--
Dipl. bio-chem. Witold Eryk Wolski
MPI-Moleculare
2004 Oct 15
2
C/C++
Hey everyone,
I have been looking for a while for ways to integrate R's wonderful
functions into my C++ software, but I have not found anything
concrete.
So finally, i post to this list to see if anyouse else knows about
this, or has done it!? Is it possible? Are there C++ or C R libraries?
Or is it sufficiently easy to build them?
your help is much appreciated!
thanks
doktora
2005 Feb 07
2
Need your help with my R plot
Hi,
I am using R to plot the graph and the problem I am facing with my graph is that I have lots of points concentrated in one area and It is creating a visualization challenge.
Is there any commands in R I could use to solve this problem. Even if there is no command, do you know how I could tackle this problem...(I want to separate these points so I could see each of them...)
Any help is much
2004 Nov 11
1
"<<-" assignment no long work in class methods
Hi-
I used to use "<<-" to do assignment inside a class method, and
just found that now it is broken in R 2.0. For example, the
following code
-----------------------------------------------------------------------
setClass( "myclass", representation(x="numeric") )
setGeneric("incrXByOne", function(obj) standardGeneric("incrXByOne"))
2004 Nov 09
1
gplot.hexbin - how to set figure margin.
Hi,
Would like to use to the hexbin package to plot a 2D hist - because it looks really _cool_.
My problem is related to drawing a pdf hexbin graphic in series of other graphics.
All other figures have a par(mar=c(3.2,3.2,1,1)). So the gplot.hexbin figure in this series looks a little alienated?
Was trying a to specify the _mar_ using par, viewport, hexViewport etc. a little.
My question. How
2004 Nov 06
2
install/build/build --binary
I have question regarding package installation.
What is the difference between check, INSTALL, build and
build --binary, which imply which and what order does one
normally perform them? I have been trying:
R CMD build /mypackage
R CMD check /mypackage
R CMD build --binary /mypackage
in that order but wanted to check that this is right.
Also, what portion of the check process can be run
2005 Feb 08
4
Renaming columns in data.frame, inserting/removing columns from data.frame
Hello,
I'm hoping that there is an easier way to rename columns in a data frame
other than by using the names() assignment, which requires you to type in
all the column names at once for a data.frame, in the case that I simply
want to rename a single column in a data frame.
Also, is there an easy way to move columns in a data frame around relative
to the other columns?
Thanks in
2004 Oct 30
2
How to add values to an array at any position.
Hi,
How to add values to an array at any position.
Asking because of the following:
e.g.
y<-c(0.1,NaN,0.2,NaN) #or data frame
x<-na.omit(y)
take some columns from x and
do some computation with functions which do not allow NaN 's.
After the computing add NaN's at positions stored in
attr(x,"na.action")
of the result vector.
/E
--
Dipl. bio-chem. Witold Eryk
2005 Jan 05
0
matrix no longer "is" array in 2.0.1?
I have an S4 class which extends array and has other slots, and in upgrading
to 2.0.1 (from 1.9.1) I have encountered a change in behaviour. This causes
me some difficulties if I want to allow 2-dimensional arrays in the slot
(which I do).
The following (in 2.0.1) illustrates the point:
> setClass("foo",representation("array"))
[1] "foo"
> a <-
2004 Oct 08
1
Function _coerce_ in _setIs_ never entered (S4).
Hi,
Please consider the following trivial example.
In the sample code I first define a class MVCa using composition. This
class contains a slot of type list.
Next I define an inheritance relation using the function setIs -> MVCa
"is a" list.
Then I define a function printlength which prints the list-length which
is defined for the type "list".
If I call this function
2004 Sep 28
2
S4 method selection based on second argument
I'm translating some Matlab code and need some help figuring
out how to change this call into an S4 generic method.
In matlab, there's a function called 'repmat' with three
calling sequences (all I have to deal with anyway):
1) B = repmat(A, m, n)
2) B = repmat(A, [m n])
3) B = repmat(A, n)
In all cases, A is the fill value, m is number of rows,
and n is number of
2004 Apr 30
2
./configure --prefix and R_LIBS
Hi!
I am installing R in non standard directory.
./configure --prefix=/non/standard/directory
The installation works fine.
But after starting R i get
.libPaths()
/usr/lib/R/library
but they cant be there of course!
Have I to set some additional switches during config?
Eryk
Dipl. bio-chem. Eryk Witold Wolski @ MPI-Moleculare Genetic
Ihnestrasse 63-73 14195 Berlin 'v'
tel:
2005 Feb 10
1
Undocumented S4 methods: generic coerce and siglist matrix, Massvector
Hi,
While checking the package I am getting all the time the following
complain about the function:
Undocumented S4 methods:
generic coerce and siglist matrix,Massvector
I have not defined the function nowhere in the R files.
My gues is that this has something to do with the following definition
of the setAs function.
setAs("matrix","Massvector"
,def=
2004 Jan 22
4
customising installed libraries
hello
I am returning to some libraries that I had previously customised by amongst
other things adding additional functions. I had simply typed these new
functions into the file in library/R/thelibrary. These however do not seem
to be loaded now as they previously were under older versions of R.
What's changed and what do i need to do?
Thanks
Stephen
2005 Jan 30
1
S4 packages and .Rdata file.
Dear developers.
Have spend just 1 h searching for a bug in a new version of a new
version of a package.
I was getting a segfault all the time. "Funny" thing - there was no
error neither in the S nor in the C code.
To solve the problem I had to delete the .Rdata file!
What I observed. If the .Rdata file was generated while a previous
release of a package was installed in the
2002 May 02
3
Building own packages on Windows 2000!
Hi!
I encountered some things trying to build own packages under Windows
2000 for which i found no answer in the documentation.
First.
1. I do not found the rcmd.exe in the bin directory of R_HOME.
I installed R using the setup.exe
2. I updated the R intatllation with one of the zip files. (rw1041sp.zip)
now i had the rcmd.exe in the bin.
3. I do not found any hint in the docu that perl is