similar to: [Reading mat files into R]

Displaying 20 results from an estimated 200 matches similar to: "[Reading mat files into R]"

2011 Mar 13
4
readMat - how to retrieve the variables
Hello I have a matlab MAT file that contains one single variable: a. The structure of a is as follows: a.river1.flow (flow values) a.river1.date_flow (date) a.river1.precip (precipitation values) a.river1.date_precip a.river2.flow a.river2.date_flow a.river2.precip a.river2.date_precip I have used readMat to load the variable a in R, however I have no idea how readMat translates a. I managed
2012 Jul 28
1
using save() to work with objects that exceed memory capacity
Context: I'm relatively new to R and am working with very large datasets. General problem: If working on a dataset requires that I produce more than two objects of roughly the size of the dataset, R quickly uses up its available memory and slows to a virtual halt. My tentative solution: To save and remove objects as they're created, and load them when I need them. To do this I'm
2003 Oct 31
2
Summing elements in a list
Hi, Suppose that I have a list where each component is a list of two matrices. I also have a vector of weights. How can I collapse my list of lists into a single list of two matrices where each matrix in the result is the weighted sum of the corresponding matrices. I could use a loop but this is a nested calculation so I was hoping there is a more efficient way to do this. To help clarify,
2008 Oct 18
1
Error: could not find function "readMat"
Hi All, I installed this R.matlab package and tried using the sample code > > path <- system.file("mat-files", package="R.matlab") > > # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > # Reading all example files > # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > for (version in 4:5) { +
2012 Aug 14
1
Help needed in reading matlab files
Dear users, I am stucked with a programming problem: I am trying to download a squared adjacency matrix from matlab with only 0 or 1. Doing it without a loop at first, I get an error message that is, I think, related to the "mat_adj<-readMat(pathnames_adj)" line. Did anybodz encouter already that problem? If so, do I need to change anything in my code in order it not to be
2012 Oct 09
1
converting dgCMatrix to regular matrix
Hi: I've looked around and I must be missing it because it's probably somewhere. Does someone know how to convert an object of class dgCmatrix to a regular matrix. I can send someone the data if they need it but it's too big to include here. I read the data in using temp<-readMat("movielens.mat") where readMat is from the R.matlab package. But the resulting 2 matrices
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
2008 Mar 26
2
Moving data between R and Matlab back and forth?
Hi to the list, I am trying to find a way to painlessly move structured data back and forth between R and Matlab (also Octave). For this purpose I found the R.matlab package great help. I wish to use a Matlab -v6 MAT file as an intermediary format, because it is well read by both Matlab and Octave. It is also well read by 'readMat' function in R.matlab package, but that is where I run
2010 Oct 07
2
Counting unique items in a list of matrices
Hello, I gave a list of 2 x 2 matrices called matlist. I have about 5000 2 x 2 matrices. I would like to count how many of each 2 x 2 unique matrix I have. So I am thinking that I need a list of the unique 2 x 2 matrices and their counts. Can anyone help. -- Thanks, Jim. [[alternative HTML version deleted]]
2010 Aug 27
8
R.matlab package help
Hi,all I have a problem running R.matlab package (under 2.10.1 version). I can set up the matlab server under local machine(run the MatlabServer.m), " And I can use setVariable and evaluate matlab functions in R. But when I ask Matlab to send the value back to R using getVariable function it always returns an error: " ??? Error: A MATLAB string constant is not
2010 Jun 10
1
importing multidimensional matrix from MATLAB
Hi, Suppose I have a matrix of size 256x14x32 in MATLAB. I want to import that into R. I used readMat and then do.call. But the variable is stored as an array as its done in R. However, I want to define a variable W=array(0,c(256,14,32)) in R and read the multidimensional matlab variable into W. I am not able to do this in R. Please, could you help ? Thanks Gopi [[alternative HTML version
2011 Feb 18
1
reading a matlab file
Dear R-people, I am trying to read a matlab file, unfortunately without success. I enclosed the zipped file. Do you have an idea how to read this file by ReadMat package into the R system? Thanks for your time! Wim Krijnen
2007 Nov 17
3
R and reading matlab compressed files
Is there any way to read these files (standard .mat files, created by matlab version 7 onwards are compressed)? I know that R.matlab doesn't read them (it even says in the file MatlabServer.m "Matlab v7 saves compressed files, which is not recognized by R.matlab's readMat()" (lines 47-8)). I know I should be able to make R call Matlab and transfer data (not that I managed to
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
2006 Dec 22
2
Pb with R.matlab
Hello, I have problems running the R.matlab package. I work with R 2.3.1, under windows (using the Rgui). It seems that, even after loading the package, the "simple" functions such as writeMat() or readMat() are not recognized. For example, the following script leads to an error: > install.packages("R.matlab") --- Please select a CRAN mirror for use in this session ---
2009 Oct 30
1
problems with re-loading exported data
Hello, I have a data file originally as .mat file from matlab that I imported in R using the R.matlab package (readMat). This loaded a list containing amongst other things a 4x4 array of rainfall data that is quite heavy (around 40 Mb, it took 10 minutes to load on my computer). I tried to export it as R data file or simply a text file (using the command write) to share this data with
2009 Feb 14
0
Samba 3.2.8 [SERNET] - get_ea_dos_attribute(208)
Hi. After update to samba 3.2.8 from 3.2.7 [SERNET packages] a see in my log this: smbd/dosmode.c:get_ea_dos_attribute(208) get_ea_dos_attributes: Cannot get attribute from EA on file beata Error = Operacja nie obs?ugiwana : 1 Time(s) beata is a user - that log into samba PDC And i have many this comunnicates only differs in user name. It is bug, or i should tweak smb.conf ? Regards, Irek
2012 Aug 22
3
help
Hi, As a beginner in R, I need some help on a programming problem which, I guess, will seem trivial to you: I am doing some Network analysis in which I need to calculate some metrics for all the weeks I have (each week the network evolves in terms of number of nodes etc...) For exemple, I need to calculate the degrees of the nodes each weak, and to repeat it in a loop for all the weeks ( for
2007 Jul 20
0
Latest update gives me problems.
Hiya.. I got a new Samba for my SUSE 10.1 x86_64 by automatic update last night, and now all of a sudden my Vista workstation won't connect to the shares automatically. I have the machine as a domain controller with LDAP backend, and it's been working flawless until the new update to samba-3.0.22-13.32. My log.smbd shows this as the workstation logs in, and asks for username/password,
2008 Sep 27
1
writeMat error
Hi I am using Ubuntu 8.04 64 bit, R as below, Matlab 7.6.0. I would like to transfer mat files back and forward between R and Matlab. Whilst I have used Matlab for years its been a long time since I have used R (hence question may be a bit simple) Running code A <- c(1:10) dim(A) <- c(2,5) library(R.matlab) writeMat('A.mat', A=A) Does not appear to generate any mat file