Displaying 20 results from an estimated 4000 matches similar to: "Converting a Matrix in a colum vector"
2009 Jul 27
2
pairs plot
Hi all,
I want to plot trough pairs() plot a matrix with 4 columns. I want to make a
trhee plot in a graph. Plotting pairs colum 2,3,4 on y axis and 1 on X axis.
You mean (a plot with three graphs) ommitting the first pair with itself.
And only the pairs with colum 1 with the other not all pairs.
I. e. this matrix
4177 289390 8740 17220
3907 301510 8530 17550
3975 316970 8640 17650
3651 364220
2009 Jul 29
1
Add a line in a Pairs2 and mark the axis length
Hi,
I have finally installed TeachingDemos trough zip file and installed on
lbrary.
One new question:
I want to draw a line (like abline) on diagonal or the result of running a
ols.
How can I do it.
On the other hand, I want to mark the length on each sub plot y axis.
It is possible?
My function is
sca<-function(){
z2<-read.table("Ase.txt",header=T)
2009 Dec 24
2
Two Easy questions
Sorry all for these two easy questions:
First, I have a matrix with trhee columns:
A=
Name Eight Puntuation
Pepe 1,85 10
Paco 1,7 7
Pablo 1,82 6
I want to scatter the two columns (I could use pairs or other functions...)
but the only doubt is that I cannot find the way to add in the associated
intersection (the point scattered) the label "Pepe" "Paco" and so
2012 Sep 18
3
ommoting rows
Hi I have an output data Data.csv
this style:
,"V1","V2","V3" 1,"-9552","9552","C" 2,"0","9653","0"
3,"9614","9614","V" 4,"0","9527","0" 5,"-9752","9752","C"
6,"0","9883","0"
2009 Jul 16
4
Save results
I imagine I make a function whose results are a Matrix Z
How cn I save in a txt or excel file the result of apply my function?
something similar to save Z.txt.
Thanks in advance.
[[alternative HTML version deleted]]
2013 Apr 01
3
expression
Hi all,
I´m using
titt<- expression(paste("R con ventanas de 200 ", italic(datos)))
And it works properly on a plot(...,main=titt,..)
But if I want to add an improvement to avoid typing n on the plot so that
n<-200
titt<- expression(paste("R con ventanas de ",n, italic(datos)))
It doesn´t recognize that n is a "variable" and adds "n" letter
2010 Jan 26
3
Graph color
Hi all I want to apply different colors on a simple plot:
If I type par(br="gray") before a plot it puts all the image in gray but
(imagine I run a simple plot) want to let the centrall box (where the dots
are plotted) in white or image in lightblue.
Can anyone guide me to apply this second step (make the box where the series
are plotted in different colours).
Thanks in advance.
2009 Dec 11
2
Data
Hi all,
Imagine I have a matrix and the first colum is a list that repeats the same
names, I want to sum the second column on each unique name on first column.
Imagine this:
Pepe 2
Pepe 3
Pepe 4
Jose 2
Jose 5
Manuel 4
Manuel 2
I want to make a new matrix that calculates and recognizes that there are 3
different names ans sum second column. But a priori I don´t know the list of
the different
2009 Jul 21
3
writte file doubt
Hi I wrotte this function but when I get the "tmp.xls" file it shows data
in a rare way. I mean not appears a matrix with 2000 rows and 100 columns.
Can anyone help me, guide me?
kim<-function(){
tmp<-randz<-matrix(rnorm(200000, mean=0,sd=0.01 ),2000,100);
dim(tmp)
write(tmp,file="tmp.xls")
Thanks in advance.
On the other hand, everytime I execute a function
2012 Aug 02
6
Polygon shaded area
Hi all,
I have two vectors (columns) called "efinal" and "efinal 2".
I want to plot them on the same plot and "draw" a shaded area beween the
two lines using function polygon
I have tried all but I don ?t understand the polygon area, can you help me
with examples?
plot(efinal,type="l",ylim=range(min(efinal2),
2003 Apr 02
1
Can boot return matrix?
Dear All,
I have a function which takes a n x m matrix as an argument and returns
an n x n matrix. I want to take bootstrap samples form the input matrix in
the way as each row represent a multivariate observation, so each
bootstrap sample would be an n x m matrix, and on each sample I want to
calculate the n x n matrix.
This task can be done with the sample function, but I would like to use
2001 May 19
2
calculations on diagonals of a matrix
Given an nxm matrix A I want to compute the nxm matrix B whose ij-th
element is the sum of the elements of A lying on the diagonal that ends
with element ij, i.e.,
b_ij = a_ij + a_(i-1)(j-1) + a_(i-2)(j-2) + ...
In APL (which I no longer use), I would use the 'rotate' operator to derive
an array whose columns are diagonals of the given array and then cumulate
down columns. Is
2006 Apr 01
1
Using vectorization instead of for loop for performing a calculation efficiently
I am trying to write an efficient function that will do the following:
Given an nxm matrix, 10 rows (observations) by 10 columns (samples)
for each row, test of all values in the row are greater than a value k
If all values are greater than k, then set all values to NA (or something),
Return an nxm matrix with the modified rows.
If I do this with a matrix of 20,000 rows, I will be waiting until
2008 Sep 17
1
Exact test in nxm contingency table
Hello,
I am trying to find a permutation test that works on a general nxm table. The data set is small enough to have cells with too small counts to make chi2-approximation invalid. If the table was a 2x2 contingency table I would like to use a Fsher exact test (fisher.test) but that wont work in this general table.
Does there exist a general function for this test.
Best regards,
Magnus
2009 Nov 04
1
Search values and create a new matrix
Hi
You wrotte me in R help and I´m very gratefull.
I couldn´t reply because an illness.
I writte this to see if you can help to solve. I´m a begginer (I´m 20 years
old ) but I´m trying to learn more about this program also I´m learning
Octave.
I need to create a matrix in R whose values depends on the values of other
matrix. You see:
I have a first "R" matrix whose first row and
2009 Nov 24
1
Scatter plot with margin distributions
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20091124/39eccb61/attachment-0001.pl>
2003 Nov 03
3
A matrix is full rank is equal to having independent columns?
Dear R listers,
Just a simple question.
If we say an nxm matrix (n>m) is full rank of m,
does this mean that this matrix has linearly independent columns?
They are the same definition or needs some proof?
Thanks for your answer.
Fred
[[alternative HTML version deleted]]
2018 May 04
0
RFC: virtual-like methods via LLVM-style RTTI
On 3 May 2018, at 22:09, David Zarzycki via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Hello,
>
> In an effort to help LLVM-style projects save memory, I’ve been toying with some macros that provide an alternative to C++ vtables that use LLVM-style RTTI design patterns instead. Is this something that LLVM or sub-projects think is worth pursuing? Or are the macros below
2007 Jul 31
3
Nonlinear optimization with constraints
Hello R community,
I am using R for creating a model using optimization. I would like to ask if there is R-function/package for solving the problem below:
Minimize sum(abs(exp^(Ai1 x1 + Ai2 x2 + ... + Aim xm - bi) - 1)), for each i = 1, ..., n.
subject to Ai1 x1 + Ai2 x2 + ... + Ajm xm - bi <= c, where c is a scalar.
(x is a vector of variables, A is nxm matrix, b is a vector)
2009 Jul 16
3
rnorm
Hi I want to simulate random numbers normal distributed with this size
(2000,10000).
I tried this but my computer exhaust there is a fast way to make it?
randz<-matrix(rnorm(2000000),2000,10000)
[[alternative HTML version deleted]]