similar to: inflate zlib compressed data using base R or CRAN package?

Displaying 20 results from an estimated 2000 matches similar to: "inflate zlib compressed data using base R or CRAN package?"

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)
2014 Mar 20
0
possible bug: graphics::image seems to ignore getOption("preferRaster")
the details section of ?image says: > If useRaster is not specified, raster images are used when the > getOption("preferRaster") is true, the grid is regular and either > dev.capabilities("raster") is "yes" or it is "non-missing" and there > are no missing values. but in my experience this is never the case and
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
2019 May 29
0
Making a package CITATION file from BibTeX
On Thu, 30 May 2019, Dr Gregory Jefferis wrote: > 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 ...). (1) You can use read.bib() from the
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
2012 Jul 06
0
depends/suggests when making a new generic to override a function in a user package
Dear R developers, I would like to add a new S3 generic to override a function in a user package, specifically: STAR::as.repeatedTrain I have followed the recommendation here: http://cran.r-project.org/doc/manuals/R-exts.html#Adding-new-generics doing this: as.repeatedTrain<-function(x,...){ UseMethod("as.repeatedTrain") } as.repeatedTrain.default<-function(x,...) {
2008 Mar 31
0
3d line smoothing
Dear R People, I would like to smooth some 3d lines, which consist of line segments specified by start and end 3d coordinates. These are experimentally derived from microscope images of neurons, so there is no sense in which one axis is any different from any other (predictor vs response). I have tried doing repeated smoothing interpolation with smooth.splines (see below), but this doesn't
2008 Apr 03
0
Reloading java classes with rJava
Dear R people, I have recently started using rJava to interact with Java code that I have written and am finding it a very useful bridge. Thanks! I have now run into a problem I can't figure out. If I edit and recompile my java source code I would like to force rJava to reload the modified java class. However even doing: .jinit(force.init=TRUE) To restart the jvm doesn't seem to do
2009 May 11
1
Rcompression on Omegahat
I tried to install Rcompression (for reading Matlab files) options(CRAN = c(getOption("CRAN"), "http://www.omegahat.org/R")) install.packages("Rcompression") Warning: unable to access index for repository http://www.omegahat.org/R/bin/windows/contrib/2.9 Warning message: In getDependencies(pkgs, dependencies, available, lib) : package ?Rcompression? is not
2011 Jul 13
3
Rcompression on MAC - where is it?
Hello I need to run an r-file that works on Windows on MAC. The first lines of the file are: library(R.matlab) library(Rcompression) Somehow I cannot find where Rcompression is. Am I missing something? Many thanks Ed
2003 Sep 22
1
Data frame from list of lists
This seems to be a simple problem, and I feel that there ought to be a simple answer, but I can't seem to find it. I have a function that returns a number of values as a heterogeneous list - always the same length and same names(), but a number of different data types, including character. I want to apply it to many inputs, resulting in a list of lists. I would like to turn this list of
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
2008 Feb 29
1
using zlib (was compress data on read, decompress on write)
Dear All, I think I am confused about how I'd be able to use zlib starting with R 2.7.0. I just downloaded the latest development version, built it, etc, but I am not able to find the zlib.h that, I believe, R should place somewhere under "where/you/want/R/to/go" (from --prefix=/where/you/want/R/to/go). There seem to be entry points for zlib in the binary (e.g., grep -r gzopen ./
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
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
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
2010 Dec 19
2
R.matlab memory use
Hi, I am trying to load into R a MATLAB format file (actually, as saved by octave). The file is about 300kB but R complains with a memory allocation error: > library(Rcompression) > library(R.matlab) Loading required package: R.oo Loading required package: R.methodsS3 R.methodsS3 v1.2.0 (2010-03-13) successfully loaded. See ?R.methodsS3 for help. R.oo v1.7.2 (2010-04-13) successfully
2009 May 05
1
Rcompression and Java Deflator
(this may be a duplicate post since I attached a file to the previous try...sorry about that) Below are the first few lines of a zlib compressed byte array written from Java with the Deflator class. > readBin("row_1",raw(),10000000) [1] 4c 45 50 e2 49 d5 86 bc 48 a1 32 5d 49 9d f5 90 48 e0 14 33 49 8f 54 6a 49 77 c9 48 48 d9 ec 56 47 91 48 f0 47 25 56 ef 47 b8 f5 7b 46 35 25 00
2013 Feb 14
0
Install package "ROpenOffice"
Has anyone had trouble installing the package "ROpenOffice" from omegahat: http://www.omegahat.org/ROpenOffice/ I downloaded the .tar.gz file to my local hard drive and tried to install it with the following code, but got an error message: > install.packages("/Users/earlbrown/Desktop/ROpenOffice_0.4-0.tar.gz", repos = NULL, type = "source") Installing package(s)
2008 Jan 30
2
[rfc] Package to access the internal zlib library.
To make R.matlab's readMat work for me[1] I needed access to zlib's uncompress function. R already links with zlib, and sometime last year I hobbled together a quick package to get at a few functions. It's my first package, so I would love feedback both on the package and its purpose. I've dropped a temporary copy at http://jriedy.users.sonic.net/internalzlib_0.1.tar.gz Could