Displaying 20 results from an estimated 8000 matches similar to: "0/1 vector for indexing leads to funny behaviour (PR#8389)"
2005 Dec 13
0
0/1 vector for indexing leads to funny behaviour (PR#8389) (maybe a documentation deficiency?)
The other place its discussed is in 3.4.1 of the R Language Definition:
http://finzi.psych.upenn.edu/R/doc/manual/R-lang.html#Indexing-by-vectors
On 12/13/05, Tony Plate <tplate at acm.org> wrote:
> Yes, 0/1 (numeric) are intended to be used as index vectors -- and they
> have the semantics of numeric indices, which is that 0 elements in the
> index are omitted from the result.
2005 Jun 15
3
write.table confused by rownames/colnames (PR#7941)
Full_Name: Axel Rasche
Version: 2.1.0
OS: Win2000
Submission from: (NULL) (141.14.21.81)
Hi,
write.table does not accept the second statement with
<col.names = NA, row.names = FALSE>.
I do not see why this should not be possible.
test = matrix(1:4, 2, 2, dimnames = list( c("a","b"), c("c","d") ))
write.table(test, file = "test.txt",
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
2002 Apr 30
1
data.frame package?
Is there a library that is able for example to
1. merge 2 dataframes by row eg.: rbind(dataframe1, dataframe2):data.frame
2. delete a column from a dataframe del(dataframe, colname) or
del(dataframe, colindex= 1):data.frame?
3. Select lines from a dataframe by a specific function ?
select(dataframe, func=small(x){x<1}, colindex=3): data.frame?
4. converting all double columns of a data.frame
2007 Aug 05
0
null hypothesis for two-way anova
Dear R community,
Confused by some of my lab results I ask for the definition of the null
hypothesis of a two-way analysis of variance in R (anova() and aov()).
Starting with the following model
y = a_i + b_j , i in A and j in B
is the tested null hypothesis
H_0: a_i = 0 for all i in A
or
H_0: a_m = a_n for any m and n in A?
Consequently the same questions for interaction effects.
2002 Jul 26
5
Is there a function for finding local extrema.
I have a vector with about 100.000 values representing a quite regular
function (sinusoid like).
I would like to find all local maxima of this function (should be about
4000). Is there a native routine for R?
Thanks in advance
Eryk.
--
_|_ \|/ \|/ Eryk Witold Wolski tel :0049-(0)30-8413-1543 w w
?v? 'v? \'v'/ MPI Moleculare Genetik fax :0049-(0)30-8413-1139 |
2002 May 03
1
Detailed instructions for building packages
>I a missing in R extension a more detailed step by step description with=20
>some examples.
>To whom send proposals of change to the R extensions manual. I am also=20
>willing to writ one step by step descriptin for windows 2000.
If you would like to draft a detailed section on building packages
under windows, that would be great. Once you're done, please email it
to me (as
2013 Feb 10
3
Constrained Optimization in R (alabama)
Dear List,
I'm trying to solve this simple optimization problem in R. The parameters
are the exponents to the matrix mm. The constraints specify that each row
of the parameter matrix should sum to 1 and their product to 0. I don't
understand why the constraints are not satisfied at the solution. I must be
misinterpreting how to specify the constrains somehow.
library(alabama)
ff <-
2002 May 27
2
hist failed with unused arguments
Hello,
I urgently need a histogram of the vector geo1$ds1
but:
> hist(geo1$ds1)
Error in hist(geo1$ds1) : unused argument(s) ( ...)
I can use density, summary, boxplot and stem with this vector but not hist ?
Any suggestions ?
Thanks in advance,
Detlef Groth
> density(geo1$ds1)
Call:
density(x = geo1$ds1)
Data: geo1$ds1 (1412 obs.); Bandwidth 'bw' = 0.2805
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 Feb 16
1
labRow/labCol options in heatmap()
The function heatmap() allows to specify row/column labels
via the options labRow/labCol. From the code of heatmap(),
I understand that when no labels are specified, the row/column
labels (or indices) of the input matrix are taken as labels and
re-ordered together with the rows and columns of the matrix before
plotting, whereas labels supplied via labRow/labCol are plotted
in the original order.
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:
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
2006 Aug 13
6
dovecot tring to load sql modules
Dovecot is issuing:
Aug 12 17:09:27 athlon1 dovecot: Dovecot v1.0.rc6 starting up
Aug 12 17:09:27 athlon1 dovecot: Generating Diffie-Hellman parameters
for the first time. This may take a while..
Aug 12 17:09:28 athlon1 dovecot: Auth process died too early - shutting down
Aug 12 17:09:28 athlon1 dovecot: auth(default): dovecot-auth: error
while loading shared libraries: libmysqlclient.so.10:
2004 May 28
1
Is there a way to represent the ... argument in signature?
Hi!
I guess that it cant work. but maybee I am wrong.
I would like to define a function rbind.
> rbind
function (..., deparse.level = 1)
{
which works only for objects of class Myclass
Is it possible to use something like
setMethod("rbind",signature(...="Myclass",deparse.level="numeric")
This gives an error.
Or should I use
rbind.Myclass
Eryk.
Dipl. bio-chem.
2004 Sep 28
5
Bug? using { as a function in lapply
This seems like a bug to me. Can someone verify this?
First we define a function f that returns its second argument and
lapply it to 1:2 using 9 as the second argument and all seems well.
Note that "{" as a function does the same thing as f, as illustrated
with f(1,9) and "{"(1,9); however, when we attempt to use "{" in the
very same way we used f in lapply,
2004 Jun 10
2
question about hierclust {multiv}
my major is bioinformatics, and i'm trying to cluster ( agglomerate
the closest pari of observations ) in R.
i have already got my own similarities metric, but do not know how to
clust it based on similarities instead of dissimilarities.
since the help document of hierclust mentions the parameter "sim",
which seems good to me, but it doesn't appear in the code of
hierclust()
2003 Sep 19
4
newby problem - concatenate lists
Hi,
a very basic question:
What ist the easiest way in R to concatenate two lists of vectors?
E.g, I have
x<-list(c(1,2))
y<-list(c(3,4))
and I want to receive
list(c(1,2),c(3,4))
thank you!
Axel
________________________________________
Fraunhofer Institut fuer
Arbeitswirtschaft und Organisation (IAO)
Dipl. Inf. Axel Benz
Nobelstr. 12
D-70569 Stuttgart
Germany
Tel. +49(0)7119702289
Fax.
2004 Jul 11
3
variable definition
Hello All:
This function obviously fails
x <- function(z) paste("go", z, sep = ".") <- 10
x("now")
But is there a way to define the name of a variable through passing a
parameter in a function call?
Thanks,
ANDREW
2015 Jan 13
2
[LLVMdev] MCJIT handling of linkonce_odr
Hi Keno,
The part that scares me a bit is
> and then adjust the other methods to not
> bail out two quickly when encountering a weak symbol.
I would very much appreciate if you could implement this; I don't have
enough knowledge of the MCJIT nor llvm CodeGen internals... I will
happily try it out and provide you with feedback, though! :-)
Thank you *so* much for your fast reaction!