Displaying 20 results from an estimated 50000 matches similar to: "Pipe"
2010 Dec 14
3
peak detection
Hi,
I was wondering if anyone knows of a package that contains the ability
for peak/valley detection. Here is an example of what I'm looking for,
only problem is that it's written in Matlab.
http://www.billauer.co.il/peakdet.html
Thanks for any help in advance.
-Joe
2015 May 14
2
Reading exit code of pipe()
The difference in the return value of close(pipeConnectionObject)
seems to depend on whether the pipe connection was opened via
the pipe() or open() functions (close() returns NULL)
> con <- pipe("ls")
> open(con, "r")
> readLines(con, n=1)
[1] "1032.R"
> print(close(con))
NULL
> con <- pipe("ls", "r")
2015 May 14
3
Reading exit code of pipe()
Is there a way to get the status code of a pipe() command? The
documentation suggests that it might be returned by close, however
this does not seem to be the case.
con <- pipe("cat /etc/passwd", "r")
stream <- readLines(con, n = 10)
err <- close(con)
print(err)
2006 Dec 30
2
Evaluating Entire Matlab code at a time
Hi.
On 12/30/06, Bhanu Kalyan.K <kalyansikha at yahoo.com> wrote:
> Dear Mr.Bengtsson,
>
> The steps you have suggested are working for single lines of matlab
> statements. But, as i mentioned earlier, If i want to see the output of an
> entire matlab code (say swissroll.m) then you suggested me to do
> res <- evaluate(matlab, "swissroll").
> When i did
2005 Dec 06
3
reading in data with variable length
I have very large csv files (up to 1GB each of ASCII text). I'd like to be able to read them directly in to R. The problem I am having is with the variable length of the data in each record.
Here's a (simplified) example:
$ cat foo.csv
Name,Start Month,Data
Foo,10,-0.5615,2.3065,0.1589,-0.3649,1.5955
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
2011 Jan 28
3
any similiar R fuction for matlab function 'fprintf'?
Dear All,
Currently, I am translating Matlab code to R. I met difficulties to translate such Matlab codes into R:
fprintf(fid,(' SPLITTING RESULTS '));
fprintf(fid,(' \n'));
fprintf(fid,' Data base to analyze is a matrix %4i x %2i ',[n m]);
fprintf(fid,' \n');
fprintf(fid,' h is %2i',h);
fprintf(fid,' \n');
fprintf(fid,' group=0
2007 Mar 07
2
Multi-line plots with matrices in R
Hello all,
I'm a new user of R, experienced with Octave/MATLAB and therefore
struggling a bit with the new syntax.
One of the easy things in Octave or MATLAB is to plot multiple lines or
sets of points by using a matrix where either the columns or the rows
contain the y-values to be plotted. Both packages automatically give
each line/points their own unique colour, character etc.
I'm
2013 Nov 20
2
r Y MATLAB
A mí sí me funciona:
- vas primero a la página http://baye.weebly.com/toolkit_extra.html (¿Has
podido llegar aquí o el navegador te rechaza el enlace?)
- buscas "MATLAB® to R Codes Translator" y con "Guardar como..." te bajas un
ZIP donde está todo
- si sólo quieres echar un vistazo al manual, buscas "Users Guide to MATLAB
to R Translator.pdf" y con "Guardar
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
2010 May 04
3
Two Questions on R (call by reference and pre-compilation)
Hi All,
I have two questions on R. Could you please explain them to me? Thank you!
1) When call a function, R typically copys the values to formal
arguments (call by value). This is very cost, if I would like to pass a
huge data set to a function. Is there any situations that R doesn't copy
the data, besides pass data in an environment object.
2) Does R pre-compile the object function to
2006 Nov 05
2
Date, date, POSIX question
I have been working with R extensively for several months. I switched
from SAS and Matlab to R. My question is
Can anyone explain the benefits and detractions of the 'Date' package
verses the 'date' package and verses 'POSIX' dates.
I have noticed several other packages use one or the other. Rmetrics
seems to standardize on POSIX. I can only see differences in
2013 Nov 20
2
r Y MATLAB
No puedo adjuntarlo a la lista. Os lo pongo esta tarde en DropBox y os envío
el enlace...
Un saludo.
Isidro Hidalgo Arellano
Observatorio Regional de Empleo
Consejería de Empleo y Economía
ihidalgo en jccm.es
http://www.jccm.es
> -----Mensaje original-----
> De: r-help-es-bounces en r-project.org [mailto:r-help-es-bounces en r-
> project.org] En nombre de Rubén Gómez Antolí
>
2013 Nov 20
4
r Y MATLAB
Más alternativas:
http://stackoverflow.com/questions/5527145/convert-matlab-code-to-r
https://stat.ethz.ch/pipermail/r-help/2007-March/127981.html
Saludos,
Carlos Ortega
www.qualityexcellence.es
El 20 de noviembre de 2013 09:15, Isidro Hidalgo <ihidalgo@jccm.es>escribió:
> Lo encontré. Los enlaces no funcionan directamente:
> -
2008 Jul 19
2
How to solve systems of nonlinear equations in R?
Hey,
I was wondering if there existed a R function similar to 'fsolve' or
'fzero' Matlab functions?
Thanks!
Francois Aucoin
[[alternative HTML version deleted]]
2013 Nov 19
4
r Y MATLAB
Gracias a todos, lo que sucede es que nos visitará un colombiano matemático
experto en ecuaciones diferenciales y tiene todo su expertise en matlab lo
que haríamos ahora es llevar directamente las fórmulas matemáticas a R,
Muchas gracias a todos
-----Mensaje original-----
De: r-help-es-bounces en r-project.org [mailto:r-help-es-bounces en r-project.org]
En nombre de Isidro Hidalgo
Enviado el:
2024 May 20
1
Output pipes to TTY hang
Hi,
I am seeing this on Linux as well as MacOS: Opening any output pipe from R 4.4.0 to TTY programs like "less"/"more" hangs, SIGINT-proof:
> $ R/4.4.0/bin/Rscript -e 'pipe("less", "w")'
> $ R/4.4.0/bin/Rscript -e 'cat("test", file="|less")
> $ R/4.4.0/bin/Rscript -e 'cat("test",
2006 Mar 03
2
Command-line editing & history
Hi all,
Are there any plans to add more functionality to command-line editing and history editing on the command line?
In MATLAB (I know, comparisons are odious ...), you can type "p" and up-arrow on the command line and scroll through the recently entered commands beginning with "p". This is a very useful feature and something that I believe is not replicated in R.
Please
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 07
4
Execution of a function
Hi
>i have aproblem withe execution of my function
>first, i wrote my function in the script of R
>nom_fonction <- function(arg1[=expr1], arg2[=expr2], ...){
bloc d'instructions
}
> when i want to have the result i mean the laste instruction in the bloc of
> instruction , i try to
>wrote the name of function
>source(aj.fun)
Error in readLines(file, warn =