similar to: How to handle Which on two matrices that do not have same number of rows

Displaying 20 results from an estimated 100 matches similar to: "How to handle Which on two matrices that do not have same number of rows"

2012 Oct 02
1
SELinux, Amavis, Clamav
Regarding the brilliant wiki site: http://wiki.centos.org/HowTos/Amavisd?highlight=%28Amavis%29 I faced the following issue on CentOS 6.2: "Spamassind" saves each message and its attached part in a folder in clamd accesses the folder, creates itself a temporary folder and deletes it afterwards. This was stopped by SELinux and caused the virus scan to fail. This action causes SE-Linux
2008 Jan 13
2
Retrieve only part of a matrix
Hi All, I'm new with R; this is a basic question. I was given a matrix I of (nrow, ncol), I would like to create another matrix A with some data in the matrix I, say [1,4] (row 1, column 4) to [271,19000] (row 271, column 19000). How do I do this? Please help. Thank you very much. --mc [[alternative HTML version deleted]]
2008 Jan 15
2
In chisq.test(x) : Chi-squared approximation may be incorrect
Hello, I received the following warning when running chi-square; n Is there a way to catch the 'error' code of 'warning' after run chisq.test(x)? n What does this error mean? Thank you for your help. [[alternative HTML version deleted]]
2008 Jan 13
4
For Loop performance
Hello, Newbie question and hope you can help . I have two vector V1 and V2, where length(V2) = length of (V1) * 2; length(V1) ~ 16,000. For each member in V1, I need to compare 2 element of V2 for equality i.e. for (I in 1:length (V1)) { if ( v2[i] == v1[i] & v2[i+1]==v1[i] ){ statement_1 statement_2 . } } This for-loop is too slow
2008 Mar 02
1
Could not install aroma.affymetrix
I don't know if this is the correct forum to ask the following question; however, when I search the aroma.affymetrix discussion group, it suggested that I should posted the question to r-help. Here it goes. I followed the instructions on aroma.affymetrix trying to install the packages; following are the steps: > install.packages(c("R.oo", "R.utils"),
2007 Jul 25
1
Rgraphviz and R 2.5.1 entry point Rf_allocString could not be located
Dear R-Helpers In R 2.5.1, the command library(Rgraphviz) fails on my Windows (XP SP2) system with error popup "The procedure entry point Rf_allocString could not be located in the dynamic link library R.dll". Thanks in advance for any suggestion in solving the error. My D. Coyne Imagination is more important than knowledge... (Albert Einstein) mcoyne@boninc.com
2008 Feb 02
2
Ignore error t.test in a loop
Hi, I place a t.test in a loop and would like to continue to process the loop even when t.test encounter error. How do I do that? For example, in one iteration, the data is completely constant and t.test gives error, the entire program terminates. I would like to write the information out to a file, and the loop should continue. Thanks My D. Coyne [[alternative HTML version
2009 Dec 10
2
Problem with coeftest using Newey West estimator
Hi, I want to calculate the t- and p-values for a linear model using the Newey West estimator. I tried this Code and it usually worked just fine: > oberlm <- lm(DYH ~ BIP + Infl + EOil, data=HU_H) > coeftest(oberlm, NeweyWest(oberlm, lag=2)) t test of coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 0.1509950 0.0743832 2.0300 0.179486 BIP
2007 Sep 19
1
v1.1 alpha6: Log synchronization error ... Append with UID 0
Hi. I am testing E-mail delivery by using dovecot 1.1 alpha6. But, The following message(syslog) is output while receiving mail. And, I'm try to looked for this reason in that source code. Hum... I think why the deliver is not using a 'MAILBOX_TRANSACTION_FLAG_ASSIGN_UIDS' flag. # deliver/deliver.c:142::deliver_save() function - calling mailbox_transactio n_begin() The
2006 Apr 28
5
Newbie: using date-picker
Finally found a nice date chooser script (http://projects.exactlyoneturtle.com/date_picker), but am a little confused how to implement it. So I put this where I need the date picker: <a id="_name_link" href="#" onclick="DatePicker.toggleDatePicker(''name'')" class="demo_link">[ choose date ]</a> <div
2008 Jan 15
1
Retrieve results from chisq.test programmatically
Hello, I would like to run a series of chisq.test() and store results (x-square, df, p-value) in a matrix for further analysis, but don't know how to do such. Currently I run the command line for each set of data at a time and it is time consuming. Thank you for your help. --My Coyne [[alternative HTML version deleted]]
2006 Apr 27
4
select item based on previous select list selection?
So I have a select list with a list of items. When a user selects an item, another select list should have its default selected item set to a specific item (the default associated with the first select list). This is in a form to create a new task. The first select list is a list of parent tasks. When one selects the parent task, the clients select list must default to the same client as its
2006 Apr 30
4
Adding values from a db the rails way?
I have a log table which has a column recording the number of hours worked on a task. So there''ll be multiple lines for a particular task. I want to retrieve the total number of hours worked on a task, so that I can include the information when one views the task details. I can write a sql query to do this easily enough, like "SELECT SUM(hours) AS total FROM tasklog WHERE
2015 Nov 05
3
Install R on Ubuntu with libcurl support
Thanks for the advice. Going to look into this more this evening and hopefully get everything working. Thanks again! On Thu, Nov 5, 2015 at 11:56 AM, Dirk Eddelbuettel <edd at debian.org> wrote: > > On 5 November 2015 at 11:44, Michael Coyne wrote: > | What do you have installed as far as libcurl goes? Would you mind > | listing your packages and greping for libcurl entries.
2015 Nov 05
2
Install R on Ubuntu with libcurl support
What do you have installed as far as libcurl goes? Would you mind listing your packages and greping for libcurl entries. Perhaps I need some libcurl debs installed when I install r-base? On Thu, Nov 5, 2015 at 11:34 AM, Dirk Eddelbuettel <edd at debian.org> wrote: > > On 5 November 2015 at 11:11, Michael Coyne wrote: > | Hello, > | > | I'm install R from a package off of
2006 Mar 22
4
Newbie - populating select list from db
Can''t seem to find an example of this anywhere - how do I populate a select list in a form from a database? I have a form to create a new task. The task is for a client, so there should be a select list populated from my clients table. I thought this would work: <%= select ''task'', ''client_id'', Client.find_all, "id", "name"
2008 Jan 15
1
Newbie Question -- Remove entire column in a matrix
I'm ordering "The R Book" and hope to learn a lot more about R. In a meantime, I have a matrix of digits and I would like to look for a column that contains zeroes and remove the entire column from the matrix. I can write a piece of R code to do that (and it works); however, I think the R-experts have more tricks to do such a 'simple' thing. Many thanks in advance.
2006 Apr 26
8
Newbie: Hide div I''ve just show using link_to_remote?
I''m using link_to_remote to show details for an item that''s clicked. I''d like to hide the div with the next click, or alternatively have a "Hide" link within my div. What is the best way to accomplish this? Here''s my existing code: <% for task in @mytasks %> <div class="rowFormat"> <%= link_to_remote(
2015 Nov 05
2
Install R on Ubuntu with libcurl support
Hello, I'm install R from a package off of https://cran.r-project.org/bin/linux/ubuntu/. The install works fine but it does not support libcurl as indicated by executing "capabilities('libcurl')". As such, I cannot install packages from HTTPS sources. How can I install R from a package with libcurl support? Is this possible or do I need to manually build R from source and
2006 May 01
3
Make a checkbox checked based on a condition?
I have a series of checkboxes in a form generated as follows: <% for user in @active_users %> <p><%= user.firstname + " " + user.surname%> <%= check_box ''assigned_tasks'', ''user_id'', {:index => user.id}, user.id, nil %></p> <% end %> I''d like to have one of them selected when user.id is equal to the