similar to: problem with nested loops

Displaying 20 results from an estimated 100 matches similar to: "problem with nested loops"

1999 Oct 13
1
dataframe transposition
Dear R-helpers, I wonder if I could impose upon you for forther assistance, this time with dataframes: hopefully this will be of general interest, as I personally have found them hard to get to grips with. I was trying to transpose rows and cols and move col1 to the names. Then all sorts of things go wrong. Although the end result looks the same, page() shows the structure to be quite
2005 Jul 15
1
Adjusted p-values with TukeyHSD (patch)
Dear R-developeRs, Attached follows a patch against svn 34959 that adds the printing of p-values to the TukeyHSD.aov function in stats package. I also updated the corresponding documentation file and added a 'see also' reference to the simint function of the multcomp package. As it was already brought up in a previous thread [1] in R-help, one can obtain the adjusted
2011 May 11
3
Reordering inputs
Hello All, I have 2 matrices consisting of the same inputs, but having different outputs. I created a heatmap for both of them; the point is to compare them side by side. The best way to organize the inputs is to make sure that the order of the inputs are the same for both heatmaps. How would I go about making sure that the order of inputs of both heatmaps are the same? As it is right now, I can
2010 Jul 05
2
Plot with whispers
Hello! I need to make a plot with whispers that does the following. Reads in 50 files, each file containing 200 data points. A file looks like this: base100.log Send Receive 10.5 100.3 15.0 102.4 ... There are 100 lines, each with two data points. I need to read in the 50 files, and plot three lines The first line is the mean of the send column with whiskers indicating standard deviation
2011 Jun 23
0
Loops, Paste, Apply? What is the best way to set up a list of many equations?
Is there a way to apply paste to?list(form1 = EQ1, form2 = EQ2, form3 = EQ3, form4 = EQ4)?such that I don't have to write form1=EQ1 for all my models?(I might have a list of 20 or more)? I also need the EQs to read the formulas associated with them. For example, below, I was able to automate the name assignment but I could not figure out how to?to set up the list using?paste or other
2011 Jun 21
1
Setting up list of many equations for systemfit
Dear List Members,I am trying to set up a large system of equations and I am trying to find a simple way to set up the list command under the package system fit. Here is the example from system fit and what I am trying to do: EQ1 <- Y1 ~ X1 + X2 + X4EQ2 <- Y2 ~ X2 + X3EQ3 <- Y3 ~ X2 + X3 + X4EQ4 <- Y4 ~ X1 + X3 + X4eqSystem <-list(form1 = EQ1, form2 = EQ2, form3 = EQ3, form4 = EQ4)
2012 Mar 25
2
Modal dialogs getting out of focus
Hello, it is really nice to be here with the wonderful Wine community. Modal window gets out of focus if minimized and blocks any actions in the main window. I've attached and example created in Delphi called Project1. It has Form1 window with action button which opens a modal dialog called Form2. The main idea is when opened Form2 to be always on top and to be impossible to hide it behind
2012 Apr 01
1
indexing in a function doesn't work?
Hello, I've written a small function that's supposed to save me some time, and it's ending up killing it- the intention is to iteratively subset a dataset fram on framevec, fit a model (either lm or nls depending on type) and return the r2 or AIC from the model, respectively. Although as far as I can tell in my code the plots are dependent on the fit of the model to the data and the
2010 Jul 10
3
a very particular plot
Hi all, Thanks for the really great help I've received on this board in the past. I have a very particular graph that I'm trying to plot, and I'm not really sure how to do it. I think I should be able to use ggplot for this, but I'm not really sure how. I have a data.frame which contains fifty sub frames containing one hundred data points each. I can do a histogram of each of
2010 Jul 16
2
Storing processed results back into original objects
Hi all, There are matrices with same column names but arranged in different orders and I desire columns of these matrices to have same order. For example, below are 2 arbitrary data sets with columns arranged in different order. I require columns of these to have same order as specified in "columns" object and the results stored in the original object names. I know this can be done
2007 Mar 19
1
Forms lost focus in KDE
Hello, I'm testing a simple delphi application that have 3 forms. >From FORM1 (the main form) I press a button to show FORM2, then from FORM2 I press a button to show FORM3, when I close FORM3, FORM1 becomes focused instead of FORM2. Every time you close a form or a dialog the application main form becomes the active one. This only happend in KDE, allowing windows manager to control the
2006 Jul 08
4
Hidden fields in forms
Please can someone show me the correct syntax for a hidden field in forms, this is my code <%= start_form_tag :action => ''create'' %> <div class="form1"> <table width="auto" boader="8" cellspacing="5" cellpadding="5"> <% hidden_field ''line_item'', ''client_id'', :value
2008 Apr 23
1
pdf() and histogram() in function call
Here is a function I wrote. It runs no problem, but generate empty pdf files. I can't find what is the problem. create.pdf<- function(x, dir) { dir.create(dir, showWarnings = FALSE) plist<- c("a", "b" , "c", "d") for(j in plist) { filedir<- paste(dir, "/", j, ".pdf",
2006 Jan 17
1
Step.glm() question
Hi: I am using step.glm() as follows: form1 <- as.formula(haspdata ~ 1) lg.mod1 <- glm ( formula=form1, data=st.mtx, family=binomial , na.action=na.omit ) upper <- as.formula( haspdata ~ ( c5+childnm+educ1+incpov1+marital+msa+racekid+racemom+sex+shotcard )^2) lower <- as.formula(haspdata~1) lst <- list( upper=upper , lower=lower ) form1a.step <- step(lg.mod1, scope=lst
2006 Mar 31
4
javascript help
Hi list, I have a list of tags. I want to be able to click on a tag and have that tag name populate an input field. I think delicious used to allow you to click on existing links to tag your bookmark similar to this (moving instead to auto_complete). My guess is the code looks something like this.... <form> <input type="text" name="all" id="discover"
2006 Nov 23
3
Prototype Safari onSubmit Issues
Hi folks. Another Prototype question. I have a simple ajax form which I want to return results on an onChange. Works in IE6 (Win) and FF, but Safari doesn''t seem to take the onChange too well. Upon the return key, it blanks out the form. Upon tabbing to the next field (actually the next form), I get the results. <form name="form1" id="form1"
2014 Jan 10
0
proposal: stats::as.matrix.ftable method
Following some discussion on R-help, I'd like to propose that an as.matrix method be added to those available for ftable objects. The reason for this is that there are a variety of situations where one needs to flatten a 3+ way table, but then use that for analysis as a matrix, not just for pretty-printing. There is an as.table method to turn the result back to a table, but an as.matrix
2006 Apr 22
3
quick ''link_to_remote'' question
Hi all i''m using link_to_remote to render different sets of text-input fields. i''m setting up links in a sidebar to do this so, in my _sidebar.rhtml i have <%= SidebarItem(''catalogue'') %> this works...(in works.helper.rb) def SidebarItem(name) link_to_remote "#{name}", :update => ''EditFields'',
2011 Nov 15
2
Regular expressions in R
Good afternoon list, I have the following character strings; one with spaces between the maths operators and variable names, and one without said spaces. form<-c('~ Sentence + LEGAL + Intro + Intro / Intro1 + Intro * LEGAL + benefit + benefit / benefit1 + product + action * mean + CTA + help + mean * product')
2004 Apr 27
2
paste dimnames problem
Hello, I've the following list n: > n [[1]] [1] "NEW" "OLD" "PRG" [[2]] [1] "04h" "24h" [[3]] [1] "000mM" "010mM" "025mM" "050mM" "100mM" where n <- dimnames(some.multidim.array) I'm trying to define a generic function that generates meaningful names from this list, e.g.