Displaying 20 results from an estimated 9000 matches similar to: "Extraction of columns from two matrices"
2011 Jul 18
1
rails server being aborted due to mysql lib file not available
Hi,
My system has the following :
MacOs Leopard
Rails 3
Ruby 1.9
Mysql 5.1.58
mysql2 ruby gems
My problem is that when i give "rails server", the task aborts with
the foll error
rails server/Users/nisha/.rvm/gems/ruby-1.9.2-p180@rails3/gems/
railties-3.0.5/lib/rails/script_rails_loader.rb:11: warning: Insecure
world writable dir /usr/local/bin in PATH, mode 040777
2011 Jan 03
3
matrices call a function element-wise
Hello
I have 4 1000*1000 matrix A,B,C,D. I want to use the corresponding element of the 4 matrices. Using the "for loop" as follow:
E<-o
for (i in 1:1000)
{for (j in 1:1000)
{
E<-fisher.test(matrix(c(A[i][j],B[i][j],C[i][j],D[i][j]),2))#call fisher.test for every element
}
}
It is so time-consuming
Need vectorization
Yours sincerely
ZhaoXing
Department of
2005 Jun 15
1
anova.lme error
Hi,
I am working with R version 2.1.0, and I seem to have run into what looks
like a bug. I get the same error message when I run R on Windows as well as
when I run it on Linux.
When I call anova to do a LR test from inside a function, I get an error.
The same call works outside of a function. It appears to not find the right
environment when called from inside a function. I have provided
2009 Sep 24
4
Action Controller ::MethodNotAllowed
Hi,
Iam getting the following error
ActionController::MethodNotAllowed
Only get, put and delete requests are allowed.
Actually, Iam trying to have multiple actions for a form to create
new record. The actions for the form are cancel, save, publish and
preview.
here''s the config/routes.rb file code snippet for the relevant
controller - Events
map.resources :events, :member =>
2012 Oct 26
4
Merge matrices with different column names
A general question that I have been pursuing for some time but have set
aside. When finishing some analysis, I can have multiple matrices that
have specific column names. Ideally, I would like to combine these
separate matrices for a final output as a csv file.
A generic example:
Matrix 1
var1A var1B var1C
x x x
x x
2011 Feb 07
3
Giving vector of colors to line in plots
Hey all,
I can't for the life of me figure out what I'm missing here. I'm trying
to change the color of the line in a time series type plot. I can
change the point colors and symbols no problem, but for some reason the
colors do not get passed to the lines, regardless of if I do type="b" or
type="l". The sample code I'm using is below.
Any help would be
2012 Feb 13
3
mgcv: increasing basis dimension
hi
Using a ts or tprs basis, I expected gcv to decrease when increasing the
basis dimension, as I thought this would minimise gcv over a larger
subspace. But gcv increased. Here's an example. thanks for any comments.
greg
#simulate some data
set.seed(0)
x1<-runif(500)
x2<-rnorm(500)
x3<-rpois(500,3)
d<-runif(500)
linp<--1+x1+0.5*x2+0.3*exp(-2*d)*sin(10*d)*x3
2015 Mar 09
2
Calculos matrices diferentes tamaños
Buen Día Jorge,
Es algo parecido a lo que necesito, pero no debo tener en cuenta la suma de
la columna sino por ejemplo:
Tengo el elemento [1,2] en la matriz A que contiene el número 5 y por otra
parte tengo la columna [,2] de la Matriz B con valores por ejemplo
(1,2,3,4,5,6,7,8,9,10,11,12). El resultado debería ser un vector que en la
posición uno debe indicar que existen 7 valores mayores a 5
2010 May 03
3
Help needed with legend
Hello,
I am new to R and need some help with the legend. How can I add a legend for
two variables (in two columns) each having multiple values to be explained
in the legend. For example:
Var 1 Var 2
<symbol> - Higher <symbol> - Higher
<symbol> - Avg <symbol> - Avg
<symbol> - Lower <symbol> - Lower
I know we
2008 Jun 09
3
Overlaying the matrices
Hi R,
I have a matrix,
> x1=matrix(NA,6,6,dimnames=list(letters[1:6],LETTERS[1:6]))
> x1
A B C D E F
a NA NA NA NA NA NA
b NA NA NA NA NA NA
c NA NA NA NA NA NA
d NA NA NA NA NA NA
e NA NA NA NA NA NA
f NA NA NA NA NA NA
> x2=matrix(rpois(9,1),3,3,dimnames=list(c("b","a","f"),c("D","E","F")))
> x2
2015 Mar 09
2
Calculos matrices diferentes tamaños
Buen día amigos,
Antes que nada, reitero mis agradecimientos por sus respuestas tan precisas
y oportunas, sigo en mi trabajo de grado y tengo dificultad con un proceso:
Tengo dos matrices A y B, A es de dimensión 5x4 y B es de dimensión 274x3.
Requiero de un proceso en el que tome el primer elemento de la Matriz A
columna 2 y lo compare con todos los elementos de la Matriz B columna 1 y
me diga
2016 Apr 07
5
Suddenly increased my hard disk
Hi John,
Am currently running dos mode not graphical mode.
Could you have any other method.
Hi Ashish,
You are correct.
qmailtoaster backup file which was around 184 GB in backup.gz type and i
have removed .bz2 type file with the same backup/mailbkup directory.
After removed .bz2 file it's gone backup.gz also which was 184 GB file.
I have run this command locate .gz but couldn't find out
2016 Apr 07
7
Suddenly increased my hard disk
Hi All,
I have running Centos 6.5 32 bit machine.
This machine is running qmailtoaster packages and mailbox size is 385 GB.
if i run the df -h command it show 385 GB out of 1TB
I have run the same command today suddenly shows 576 GB out of 1 TB.
I didn't update any bulk file and mail transaction is not very high.
How do i check this issue and fix it.
how do i find out and why suddenly
2015 Jul 21
3
Client Limit reached in Dovecot
Dear Friends,
I have faced below issues since two weeks to till now. Could anyone help me
to rectify this issue.
Below message retrieve from logs and getting disconnection from Outlook and
other email clients.
Error Message
Jul 20 10:33:35 master: Warning: service(imap-login): process_limit (100)
reached, client connections are being dropped
My local.conf from dovecot folder
protocol imap {
2017 Nov 20
2
how to fix this warnig
Hi Friends,
I have noticed below log in dovecot.log on my machine Centos 6.7 32 bit.
Warning: Inotify instance limit for user 89 (UID vpopmail) exceeded,
disabling. Increase /proc/sys/fs/inotify/max_user_instances
I have increased manually but after reboot goto the same existing default
value.
How do i fix this issue permanently.
Advance thanks for your help.
--
*Thanks,*
*Manikandan.C*
2006 Aug 25
4
How to iteratively extract elements out of a list
Dear List,
The following code produces a list, which is what I what:
set.seed(123)
tmpf <- function() {
x <- rpois(rpois(1,4),2)
}
n <- 3
m <- replicate(n,tmpf())
m
[[1]]
[1] 3 2 4
[[2]]
[1] 0 2 4 2 2 5 2
[[3]]
[1] 2 0 4 1 0
Now I need something that would to extract iteratively (or as many
times as
the size of 'n') the values that are greater than 2 in each component
of
2005 Jun 09
3
Understanding of HTB classes
Hi all,
I have configured HTB classes on my public interface. I have split the
bandwidth among two subclasses say 1:2 and 1:3.
Lets say if I configure the rate limit of say 1:2 as 250kbps with a ceil
setting of 1000kbps,
I presume it means that the class can have bandwidth upto 1000kbps,
provided the bandwidth is unused, if not it is assured a bandwidth of
250kbps.
Is my understanding
2013 Oct 29
3
I want to make own pbx server
Hi All,
I want to make own ip pbx server for our office with need to call local
extension through soft dialer.
How to make this system without any pstn provider.
--
*Thanks,*
*Manikandan.C*
*System Administrator*
2016 Apr 18
3
Suddenly increased my hard disk
Hi Geleem,
Please have a look below of my result.
For my system shows like below.
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 909G 576G 287G 67% /
tmpfs 3.9G 0 3.9G 0% /dev/shm
/dev/sda1 3.9G 160M 3.5G 5% /boot
/dev/sdb1 916G 382G 488G 44% /bkhdd
First hard disk /dev/sda
Second hard disk /dev/sdb
The problem is in first hard
2008 Jun 18
1
operations on all pairs of columns from two matrices
m1 <- matrix(rnorm(40), ncol=4)
m2 <- matrix(rnorm(40), ncol=4)
I would like to subtract first column of m1 from all columns of m2, subtract 2nd of m1 from all columns of m2, and so on. Obviously, I am not using the appropriate function outer(m1, m1, "-"), since the first column isn't all 0s.
_________________________________________________________________