Displaying 20 results from an estimated 1000 matches similar to: "Data frame from list of lists"
2001 Sep 22
2
Finding a 3D convex hull in R
Dear List Members,
I'm presently carrying out morphological analysis of a data set of neuronal
structures. These are essentially 3D binary trees. In due course I will be
trying to use discriminant analysis or other methods to classify these
neurons based on morphological variables such as total tree length, segment
number etc.
I would like to calculate a 3D convex hull for a set of X,Y,Z
2001 Dec 06
0
3D spatial statistics
Dear R Users,
This is only partly an R question, but I would be very grateful if anyone
could offer some suggestions for approaches or packages I could use in R. I
have 11 sets of points in 3D (synapses in a region of a fly's brain for 11
different kinds of neurons as it happens); each set has between 80-250
points distributed in an irregularly shaped cloud. I would like to
calculate
a) a
2011 Jan 12
2
syntax for extending a line in a script??
Hello,
A hopefully simple question. I use 'R' through emacs, but I suspect the
following would occur with any manner of text editor:
- my editor has a normally quite handy feature where it will
automatically indent to the appropriate level when I start a new line.
However, this occasionally creates cases where there is no friendly way to
break a long line of code into
2001 Dec 10
1
high dimensional convex hull
Does anyone know of a R package that will determine the convex hull of a
high-dimensional dataset (say 4-10 dimensions). I know chull works for
2D data.
I'm neophyte to R and convex hulls so please keep it simple.
Many thanks
Ben
--
Ben Stapley.
Biomolecular Sciences, UMIST, PO Box 88, Manchester M60 1QD.
Tel 0161 200 5818
Fax 0161 236 0409
2001 Oct 24
0
Re: Compiling R v 1.3.1 under Irix 6.5 on SGI Origin
Hello Laurent, Ray and Greg,
I tried the gmake settings.
Yet, I still got an Error code 1 message when I run the test.
running regression tests
don't know how to make ../library/base/R/base (bu42).
*** Error code 1 (bu21)
Thanks you if you have any idea.
Manuel
-----Message d'origine-----
De : Laurent Gautier [ mailto:laurent at genome.cbs.dtu.dk
<mailto:laurent at
2001 Oct 23
1
No subject
Dear R contributors,
I recently dowloaded the R-1.3.1 on my SGi Origin 200 run by Irix6.5.
In order to instal it, I launched the command shown below:
env MAKE=gmake ./configure
The output was as follow::
R is now configured for mips-sgi-irix6.5
Source directory: .
Installation directory: /usr/local
C compiler: cc -OPT:IEEE_NaN_inf=ON -g
C++ compiler:
2001 Oct 15
0
predict.fda difficulties
Dear Dr Hornik / R help list,
I am using the mda package and in particular the fda routine to classify a
set of 162 neurons falling in to 11 neuronal cell types according to 17
morphological variables. I would like to use a cross-validation approach in
which I split the data, train with one part amd then test the predictive
accuracy of the discriminant functions with the remaining part. However
2019 May 29
3
Making a package CITATION file from BibTeX
Dear Colleagues,
I would like to provide a CITATION file for my package nat.nblast [1].
I have the correct citation in BibTeX format [2]. How can I convert this
BibTeX to the format needed by R for a package CITATION file (I have a
lot of other packages needing citations ...).
I think what I need is the opposite of RefManageR::toBiblatex [3]. This
seems like it should be a common need, so I
2011 Dec 06
1
Read Windows BMP format images
Hello,
Does anyone know of an R package that can read Windows BMP format images? Many thanks,
Greg Jefferis.
--
Gregory Jefferis, PhD
Division of Neurobiology
MRC Laboratory of Molecular Biology,
Hills Road,
Cambridge, CB2 0QH, UK.
http://www2.mrc-lmb.cam.ac.uk/group-leaders/h-to-m/g-jefferis
2006 Jun 15
1
Access and assign list sub-elements using a string such as "l$a$b"
If I have a list I can set a sub-element as follows on the command line:
people=list()
people$tom$hair="brown"
people
But what if I have a string containing the name of the sub-element that I
want to access?
subel= "people$tom$hair"
get(subel) # returns error
assign(subel,"red") # silent but doesn't change list
people
The attempts above using assign/get
2006 Jan 10
2
Correct way to test for exact dimensions of matrix or array
Dear R Users,
I want to test the dimensions of an incoming vector, matrix or array safely
and succinctly. Specifically I want to check if the unknown object has
exactly 2 dimensions with a specified number of rows and columns.
I thought that the following would work:
> obj=matrix(1,nrow=3,ncol=5)
> identical( dim( obj) , c(3,5) )
[1] FALSE
But it doesn't because c(3,5) is numeric
2014 Nov 10
1
subscripting a data.frame (without changing row order) changes internal row.names
Dear R-devel,
Can anyone help me to understand this? It seems that subscripting the
rows of a data.frame without actually changing their order, somehow
changes an internal representation of row.names that is revealed by e.g.
dput/dump/serialize
I have read the docs and inspected the (R) code for data.frame,
rownames, row.names and dput without enlightenment.
df=data.frame(a=1:10, b=1)
2005 Mar 05
1
Reverse plot axes with xlim=rev(range(x)) fails with asp=1
Dear R users,
I would like to reverse the axes on some xy plots (for example to set the
origin at the top left rather than the bottom left). I had planned to use
something of the following form:
plot(y=y<-c(20,4,5,6),x=x<-c(10,20,30,40),ylim=rev(range(y)))
ie reversing ylim to reverse the y axis. This works fine however I also
want to use the parameter asp=1 to ensure that equal
2011 May 17
4
subsetting a list of dataframes
Hello All,
I have a list of dataframes, and I need to subset it by keeping only those
dataframes in the list that meet a certain criterion. Specifically, I need
to generate a second list which only includes those dataframes whose number
of rows is > 1.
Could someone suggest how to do this? I have come close to what I need with
loops and such, but there must be a less clumsy way...
Many
2013 Nov 27
1
inflate zlib compressed data using base R or CRAN package?
Hello,
I have a binary file type that includes a zlib compressed data block (ie
not gzip). Is anyone aware of a way using base R or a CRAN package to
decompress this kind of data (from disk or memory). So far I have found
Rcompression::decompress on omegahat, but I would prefer to keep
dependencies on CRAN (or bioconductor). I am also trying to avoid
writing yet another C level interface to
2010 Mar 31
2
Simplifying particular piece of code
Hello, everyone
I have a piece of code that looks like this:
mrets <- merge(mrets, BMM.SR=apply(mrets, 1, MyFunc, ret="BMM.AV120",
stdev="BMM.SD120"))
mrets <- merge(mrets, GM1.SR=apply(mrets, 1, MyFunc, ret="GM1.AV120",
stdev="GM1.SD120"))
mrets <- merge(mrets, IYC.SR=apply(mrets, 1, MyFunc, ret="IYC.AV120",
2011 Feb 18
1
debugger() fails if "..." in function arguments
Dear all,
I'm having a problem with debugger() in both R 2.8.0 and R 2.12.0.
Probably also versions in-between.
I don't see it logged in the bug database, but it's hard for me to
imagine that no-one else has encountered it. So my question is whether
it's a known problem with a workaround, or do I log it as a new problem?
The situation is that if I use
2002 Aug 06
1
re| `By reference'
David Brahm <brahm at alum.mit.edu> wrote:
>VBMorozov at lbl.gov wrote:
>> I would like to pass variables to a function in R in "by reference"...
>Just in case the ensuing discussion got too esoteric, here's one simple
answer:
>R> x <- 1:10
>R> MyFunc <- function(x, zz) assign(deparse(substitute(zz)), sum(x), 1)
>R> MyFunc(x,y)
>R>
2009 Aug 06
1
Using 'field names' of a data.frame in a function
I may be doing this wrong! but I have a function which I have simplified a lot below. I want to pass some 'field names' of a data-frame to the function for it to then do some manipulation of.
Here's my code:
#build a simple dataset
mydataset = data.frame (
2004 Sep 09
4
scoping rules
Can someone help me with this simple example?
sq <- function() {
y <- x^2
y
}
myfunc <- function() {
x <- 10
sq()
}
myfunc()
executing the above in R yields:
> myfunc()
Error in sq() : Object "x" not found
I understand that R's scoping rules cause it to look for "x" in the
environment in which "sq" was defined (the global environment in