Displaying 20 results from an estimated 400 matches similar to: "Binary file functions in R"
2001 Jun 12
1
trouble to install the Rstream package
Dear R-users,
I successfully installed the package Rstreams under linux, but my first
attempt to do so on SGI IRIX 6.5 (64bits) lead to the following error
message.
--------------------
laurent at genome> R CMD INSTALL Rstreams
Installing source package `Rstreams' ...
creating cache ./config.cache
checking for ftruncate... yes
checking size of long double... 16
updating cache
2001 Jun 01
1
Installing Rstreams lib
Dear R-helpers,
I am trying to install Rstreams library on the following platform:
----------------------------
platform alphaev67-dec-osf5.0
arch alphaev67
os osf5.0
system alphaev67, osf5.0
status
major 1
minor 2.3
year 2001
month 04
day 26
language R
---------------------------
Unfortunately, I get these error messages:
---------------------------
> [557] R
2001 Dec 11
1
Using lib Rstreams and gzfile()
Hi all,
in the last time I've intensively used Rstreams to read and write from
binary files. Now I'm wondering if it is possible to use Rsteams
functions with gzipped files. But I haven't found the trick:
> p1c.gzip <- gzfile("daten/p1c_all.mea.gz", open="rb")
> readBin(p1c.gzip, integer(), n=64,size=2)
[1] 84 1 400 1 749 0 0 0
2001 Jun 01
1
Read to the end of a stream (package Rstreams)
Hi there,
I want to read all data from a binary file (with package Rstreams). I
tried the following function (small piece of code):
readdata <- function (file) {
# open file
s <- openstream(file, "read")
# read int values
while (s$position <= s$size) {
readint(s, 1, 2) -> type
[...]
}
return()
}
and got the following error:
> Error in
2002 Apr 26
4
Memory "leak" in readChar (PR#1483)
Full_Name: Hugh C. Pumphrey
Version: 1.4.1
OS: Linux (Debian Woody)
Submission from: (NULL) (129.215.133.170)
The function readChar() appears to have some type of problem with memory
allocation.
I don't know if "memory leak" is the correct term but if one uses readChar()
many
times, the R binary grows in size until it eats all your memory and swap space.
The code enclosed below
2001 Jul 17
1
How to write the bytes 00 01 00 to a file/connection?
Is there any way to write (8-bit) bytes to a file which works on all [R]
platforms? I have been looking at
1) writeBin
2) writeChar
3) cat
and neither of them manage to write arbitrary sequences of bytes (0-255).
For instance, I would like to create a binary file of length three
containing the bytes 0, 1 and 0. I [R] I have the following vector of bytes:
bfr <- c(0,1,0)
1) For
2000 Nov 14
2
library doubt
Hi all.
I'm trying to install the packages Rstreams and RPgSQL, but with no
success.
I did R INSTALL name package but if I try library(Rstreams) I get the
following error:
Error in library.dynam("Rstreams",pkg,lib):
dynamic library 'Rstreams' not found
Error in library(Rstreams): .First.lib failed
Where did I go wrong? I'm using R 1-1-1 on a Debian GNU/Linux box.
2002 Jul 02
2
sound lib - rstreams Mac OS 9 and X ???
Hello,
I'm looking for a working compiled library of "rstreams" for mac OS 9 and
for mac OS X.
I could find one (somewhere) but it is not loading.
It says in R 151 under OS 9.2:
Error in dyn.load(x, as.logical(local), as.logical(now)) :
unable to load shared library
"PRO-096-system:Applications:Languages:rm151:library:rstreams:libs:RstreamsL
ib":
error code -2807
2001 Jul 05
1
ERP software
I was just playing around with the R-streams package, reading in some data
from an old experiment we did here, and was again amazed by the flexibility
of the R environment. The eaze with wich I was able to generate simple plots
of my EEG data made me wonder if someone tried to implement an ERP package.
For the non-cognitive scientists ou there: EEG is electrical activity
measured from the scalp
2000 Nov 14
3
import data from splus
hi there,
anybody knows how to import data into R from splus directly? I have a huge
amount of data in splus format, which will cost forever for me to transform
the data back to ascii or something else and then read them into R.
thanks a lot.
ximing
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read
2007 Dec 05
4
Java parser for R data file?
Hi everyone,
Has anyone written a parser in Java for either the ASCII or binary format
produced by save()? I need to parse a single large 2D array that is
structured like this:
list(
"32609_1" = c(-9549.39231289146, -9574.07159324482, ... ),
"32610_2" = c(-6369.12526971635, -6403.99620977124, ... ),
"32618_2" = c(-2138.29095689061, -2057.9229403233, ... ),
2001 Aug 19
2
system.file("",package) (PR#1062)
system.file("",package") is documented to return the root of the package
(as it did in the past). It actually returns "" (Win98, R1.3.0), breaking
the SJava package
Omitting the first argument does work correctly and so is a workaround if
the argument is explicitly "" but not if it is the value of a variable.
-thomas
2001 Oct 11
2
Where's MVA?
Hi All:
Package TSERIES is stated to depend on MVA. However, there is no MVA package to be found under the list of package sources.
Best wishes,
ANDREW
tseries: Package for time series analysis
Package for time series analysis with emphasis on non-linear and non-stationary modelling Version: 0.7-6
Depends: ts, mva, quadprog
Date: 2001-08-27
Author: Compiled by Adrian
2001 Apr 12
1
Install Packages
Hi,
I am trying to install "Rstrams" package, I have download the Rstreams_1.1-2.tar.gz in my computer and I tried the following
1. install.packages("Rstreams",lib=.lib.loc,"c:/R/package/Rstreams_1.1-2.tar.gz" )
I got
'lynx' is not recognized as an internal or external command,
operable program or batch file.
Error in httpclient(url,
2004 Aug 09
1
import data from splus
Dear Sir,
I am using R for the first time and I am looking for a function or a
command that allows to import Splus data into R. I have already heard about
functions called "readSdata" and readSfiles" in the "Rstreams" package. I
did not find the last new version of this package on the CRAN and its old
one did not work on R 1.8.0 (the vesrion that I am using).
Would you
2001 Jan 02
1
Transporting s-plus routines to R
I have used S-Plus for Windows for some time and have a large collection of personal programs. I have recently installed R-1.1.1 under Linux. I can read the .ssc files from S-Plus into emacs and save to R, but this is apt to be tedious. Any shortcuts to recommend? Will linux R read the _Data files from Windows S-Plus? Would Windows R serve as a useful intermediate transfer?
-------------- next
2000 Aug 25
1
S objects
Is it possible for R to "read in" S objects. For example, suppose
that when using S I did:
> x <- c(1,2,3)
> y <- x^2
> q()
These objects are now in the .Data directory. If I then want to use x
and y in an R session, how can I do so?
Thanks,
Rob
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read
2001 May 15
1
truncate
I see in the devel snapshot there is a new generic method
> truncate
function (con, ...)
UseMethod("truncate")
which conflicts with a generic method in one of my packages:
> truncate
function (x, start = NULL, end = NULL)
{
UseMethod("truncate")
}
I don't think there is a problem, but there used to be a recommendation to use the
same name for the first
2001 Apr 03
1
Exporting from Splus into R
Hi
I want to export an array (dim=c(24,12,17)) from splus into R. I've
tried dump but R couldn't source it.
Is there a fast and clean way of doing this ?
Thanks
EJ
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or
2000 Sep 21
2
No subject
Dear R-friends,
i just look at http://www.statistik.uni-dortmund.de/leute/ligges.htm to
download scatterplot3 and saw a write and read wav-files library. So i
wondered if R can play wav-files. This would be very practical, espacially
when you do some long computations.
If not, can R play a system beep or something like that?
Thanks,
Thomas