Displaying 20 results from an estimated 8000 matches similar to: ""mode" function"
2018 Jan 18
3
request for code
Hi,
I want to convert my MATLAB programs to R studio programs.
Kindly guide on the same.
[[alternative HTML version deleted]]
2011 Nov 26
5
cumsum in 3d arrays
Hello!
Is it posible to apply /cumsum()/ along the 3rd dimension of 3D array?
Something like matrlab function - /cumsum (*A*,dim)/ which returns the
cumulative sum of the elements along the dimension of *A* specified by
scalar dim.
Thanks in advance
?eljka
--
View this message in context: http://r.789695.n4.nabble.com/cumsum-in-3d-arrays-tp4110470p4110470.html
Sent from the R help mailing
2012 Jul 02
1
error to convert a Compute A^-1 B from Matlab to R using solve(A, B)
Dear Researchers,
I need to convert the following equation in R from Matlab
a = [x y ones(size(x))];
b = [-(x.^2+y.^2)];
a\b
ans =
-9.9981
-16.4966
-7.6646
my solution in R is:
a = cbind(x,y,rep(1,length(x)))
b = cbind(-(x^2+y^2))
> head(a)
x y
[1,] 14.45319 5.065726 1
[2,] 14.99478 5.173893 1
[3,] 14.64158 5.616916 1
[4,] 14.61803 6.624069 1
[5,] 14.19997
2010 Aug 03
4
hi!!! guestion!!
I made some matlab codes...
Is there any method to perform matlab codes in R program??
--
View this message in context: http://r.789695.n4.nabble.com/hi-guestion-tp2311219p2311219.html
Sent from the R help mailing list archive at Nabble.com.
2012 Jun 21
1
R function similar to gradient function in Matlab?
Hi,
I am trying to convert some Matlab code into R for running some
experiments and I was wondering if there is some function in R which
does the work of the gradient function in Matlab calculating the
"gradient" of 1-, 2- and 3-d images. I only need the 3-d calculations
for running these experiments.
Many thanks and best wishes,
Ranjan
2012 May 06
2
Translation of matlab vectors code into r
Hi there
I am new user of r, i would need some help to translate som code for vectors
in matlab to r. I have managed to translate the first 7 rows, but not the
rest. Could anyone give me any suggestions for this problem??
Matlab code:
tempo=[];
temps=[];
tempn=[];
tempao=[];
tempas=[];
tempan=[];
for k=1:5
tempo = [tempo n_o(k,:)];
temps = [temps n_s(k,:)];
tempn = [tempn
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
2013 Mar 14
3
Equivalent of deal in R?
HI, I'm looking for a function that does the same as deal() in MATLAB, i,e,
for an array x[1 2 3]
[a,b,c]=x;
such that
a=1, b=2, c=3
Does R have any functions similar to this?
[[alternative HTML version deleted]]
2024 Feb 27
4
converting MATLAB -> R | element-wise operation
So, trying to convert a very long, somewhat technical bit of lin alg
MATLAB code to R. Most of it working, but raninto a stumbling block that
is probaably simple enough for someone to explain.
Basically, trying to 'line up' MATLAB results from an element-wise
division of a matrix by a vector with R output.
Here is a simplified version of the MATLAB code I'm translating:
NN = [1,
2018 Jan 18
0
request for code
> On Jan 18, 2018, at 7:49 AM, Anjali Karol Nair <anjali232 at gmail.com> wrote:
>
> Hi,
>
> I want to convert my MATLAB programs to R studio programs.
> Kindly guide on the same.
Hi,
Using Google with a search phrase such as "MATLAB to R" will yield a number of possible resources for you such as:
http://www.math.umaine.edu/~hiebeler/comp/matlabR.pdf
which
2009 Sep 05
3
Selecting biological data
Hello all,
I am new to R but have some experience with MATLAB and am trying to make the switch. I generally find the two languages easy to adapt but there are a few routine tasks which I would like to run smoother in R and I am having trouble finding a help resource. Could someone suggest a guide to filtering, selecting, sorting, and processing biological matrix data? Here is a rudimentary
2011 Dec 17
1
cp2tform equivalent
I'm a new R user and am looking for an R equivalent to the Matlab 'cp2tform' function (see: http://www.mathworks.com/help/toolbox/images/ref/cp2tform.html).
cp2tform accepts pairs of 2D control points and produces a least-squares optimized spatial transformation from one set of points to the other. Specifically, I'm looking to produce the coefficients of a 3rd order polynomial
2001 Feb 09
3
install R from RPM
Hi everybody !
I'm new to R (used to Matlab ...) and I 'd like
to use R at home ...
I've installed it from RPM package (R-base-1.2.1-2.i386.rpm)
on a linux RedHat 7.0, succesfully ....however but I've got
problems with running the demos, it says :
"/usr/lib/R/bin/R.bin : error while loading shared libraries
: /usr/lib/R/bin/R.bin : symbol __sysconf, version GLIBC_2.2
2011 Apr 18
1
using "aggregate" when variable names contain spaces
Hello!
my data set has many variables. Unfortuantely, many of those variables
contain spaces in their names.
I need advice on: how to refer to variable names in the formula for
"aggregate". See example below:
### Generating example data set:
mydate = rep(seq(as.Date("2008-12-01"), length = 3, by = "month"),4)
value1=c(1,10,100,2,20,200,3,30,300,4,40,400)
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:
2010 Jan 14
5
To add text in a matrix
Dear colleagues,
I would need to add text (some rows of information) in a matrix. For example, given this matrix
1 2 3
4 5 6
7 8 9
I would need to add this info:
THIS IS AN EXAMPLE
OF a 3x3 MATRIX
1 2 3
4 5 6
7 8 9
I have been looking for a function that works similar to "fopen" in matlab, but unfortunately I have not found It in R.
Thank you in advance for your help!
Carlos
2005 Oct 14
2
events after sort
hi,
i''ve just started use prototype.js et al, i am currently creating a sortable
list with:
Sortable.create(''id'', { onChange: myFunc });
but what i really want is an event that occurs after the li''s have been
reordered and settled into the new list order.
how would i do that?
i know i can do for exampe:
Event.observe(''id'',
2003 May 16
4
Newbie hung up with matrices
Hi all:
Thanks in advance for your assistance.
I just started learning R. I'm trying to use the Help and the downloadable
manuals. I am stuck on trying to multiply matrices. Can anyone please
supply a couple of lines of code that I can plug into a fresh console to see
how a double precision (1x3) matrix is multiplied by a double precision
(3x3) matrix? I keep getting an error
2010 Apr 11
2
[LLVMdev] call for suggestions
Hi, Dear LLVMers
I just touch llvm source code for several days, and I didn't know the
interfaces of the analysises and transformations of LLVM. For exampe, how
to backtrace CFG, and whether exits a backtracking interator to do such
work?
For a novice, I also seek for suggestions about how to become familiar with
LLVM interfaces as soon as possible. Now I have a plan to write a pass based
on
2009 Jul 15
2
Problems with computing an aggregated score
Hi all,
I have a problem with computing a new variable as an aggregated score of
other variables.
Say, I have 10 variables for 1,000 observations (people). Every variable may
have values between 0 and 8. What I would like to do is computing the mean
of the individual top 3 values for every person.
Exampe: The values for the 10 variables (v1 to v10) for person A, B and C
are as follows:
A 0 1 0