similar to: help needed on function call

Displaying 20 results from an estimated 200 matches similar to: "help needed on function call"

2012 Feb 28
1
group calculations with other columns for the ride
Hello, I can get the median for each factor, but I'd like another column to go with each factor. The nm column is a long name for the lvls column. So unique work except for the order can get messed up. Example: x =
2006 May 02
5
does not equal conditional
I am trying to figure out how to write a conditional statement that will execute only if a specified variable is not empty. Right now my view looks like this: <dt>Building Regulations</dt> <% for link in @cat1 %> <dd><a href="<%= link.url %>"><%= link.title %></a></dd> <% end %> Action: @cat1 = Link.find(:all, :conditions
2006 Jun 27
5
RJS -- What am I missing?
This is driving me nuts:-) I''ve brought it down to a simplified case where I''m rendering this rjs template: page.insert_html :top, ''cat1'', "<li>Some list item</li>" According to FireBug, this is what I''m actually getting in the browser: try { new Insertion.Top("cat1", "<li>Some list
2011 Jan 17
2
matrix manipulations
Hi, I am having some difficulties with matrix operations. It is a little hard to explain it so please bear with me. I have a very large data set, large enough that it needs to be split in parts in order to deal with. I can work things on these "parts" but the problem lies in adding together these parts for the final answer. So that been said, let's say that i split the data in 2
2010 Jul 28
1
error: arguments imply differing number
mydata <- read.table(textConnection(" Id cat1 location item_values p-values sequence a111 1 3002737 100 0.01 1 a112 1 3017821 102 0.05 2 a113 2 3027730 103 0.02 3 a114 2 3036220 104 0.04 4 a115 1 3053984 105 0.03 5 a118 1 3090500 106 0.02 8 a119 1 3103304
2009 Dec 02
1
Lattice: multiple data sets on same plot
Hi, I have two data sets; one is a population and the other a sample of that population. I am trying to plot both on the same trellis display. # Example data set with two numerical attributes and two categorical pop <- data.frame(var1=rnorm(2000, 2000, 500), var2=rnorm(2000, 2000, 500)) cat<-(runif(2000)<=.5)+0 for(i in 1:length(cat)){ if(cat[i] == 0){ pop[i,"cat1"] =
2010 Jul 14
1
Dot Plot with Confidence Limits
Hi, I have the following dataset and I would like to create a dotplot with confidence limits: CAT1 CAT2 MEAN Lower Upper 1 1 1 0.619 0.392 0.845 2 1 10 1.774 1.030 2.518 3 1
2006 Aug 24
1
Using a 'for' loop : there should be a better way in R
I need to apply a yearly inflation factor to some wages and supply some simple sums by work category. I have gone at it with a brute force "for" loop approach which seems okay as it is a small dataset. It looks a bit inelegant and given all the warnings in the Intro to R, etc, about using loops I wondered if anyone could suggest something a bit simpler or more efficent? Example:
2010 Jul 26
1
gapped sequence data summary
Id cat1 location item_values p-values sequence a111 1 3002737 100 0.01 1 a112 1 3017821 102 0.05 2 a113 2 3027730 103 0.02 3 a114 2 3036220 104 0.04 4 a115 1 3053984 105 0.03 5 a118 1 3090500 106 0.02 8 a119 1 3103304 107 0.03 9
2016 Jan 27
2
CentOS 7, man
This is... odd. >From my workstation, where I'm directly logged in, if I ssh to any CentOS 7 box, as myself, and try to run man, it fails. Example 1: man dd man: cannot write to /var/cache/man/cat1/dd.1.gz in catman mode dd. Example 2: man dd man: can't chmod (null): Bad address man: can't unlink (null): Bad address dd. In all cases, if I sudo -s to root, I have no trouble
2007 Dec 19
3
median of binned values
Dear list, I have a vector (array, table row, whatever is best) of frequency values for categories (or bins), and I need to find the median category. Trivial to do by hand, but I was wondering if there is a means to do it in R in an elegant way. The obvious medioan(vector) returns the median frequency for the binns, and that is not what I want. i.e,: freq cat1 1 cat2 10
2010 Apr 12
2
Interpreting factor*numeric interaction coefficients
Dear all, I am a relative novice with R, so please forgive any terrible errors... I am working with a GLM that describes a response variable as a function of a categorical variable with three levels and a continuous variable. These two predictor variables are believed to interact. An example of such a model follows at the bottom of this message, but here is a section of its summary table:
2013 Jan 31
1
5.01 DISPLAY file last line
There is a problem with the last line of DISPLAY files in Syslinux 5.01. *** syslinux.cfg start *** DEFAULT cat1 PROMPT 1 F1 help.txt LABEL cat1 COM32 cat.c32 APPEND help.txt *** syslinux.cfg end *** *** help.txt start *** LINE 1 OF help.txt LINE 2 OF help.txt LINE 3 OF help.txt *** help.txt end *** Note that the last line in "help.txt" is "LINE 3 OF help.txt" and
2003 Dec 16
2
Fw: [S] plot stacked bar chart in R
posting the question in r-help@ to get more feedback :-) thanks, Yun-Fang ----- Original Message ----- From: "Yun-Fang Juan" <yunfang at yahoo-inc.com> To: <s-news at wubios.wustl.edu> Sent: Tuesday, December 16, 2003 2:04 PM Subject: [S] plot stacked bar chart in R > Hi, > I am trying to plot a stacked bar chart in R but am not able to find the > documentation.
2000 Mar 15
3
1.2.3pre2 works great on Solaris 2.7 except man
Right out of the box (after I made Damien's LDFLAGS fix in configure) using gcc-2.95.2. The only problem I have now is the man pages. I still can't read them using Solaris nroff, and when I tried to build with --with-catman=cat, I got the following during a make install: /rtr/bin/install -c -m 644 ssh.[01].out /usr/local/man/cat1/ssh.1 Try `/rtr/bin/install --help' for more
2011 Apr 12
2
Converting a categorical variable to multiple dichotemous variables
I have a categorical variable in a dataframe similar to the following... cat 1 1 3 2 4 I need to convert it to 4 dichotemous variables for each observations like... cat1 cat2 cat3 cat4 1 0 0 0 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 1 Thanks in advance! Shane
2005 Dec 27
6
avoid multiple render per action
Hello, I have a hash that contains categories, and each category ID is a hash of subcategories. What i want to do is dynamically load that hash, loop thru it, for each category , subcat run a query against the DB, and render a partial. The issue is i put the render:partial in a for loop but you can only render once per action. What is the best way to loop thru all my categories without a
2005 Dec 30
11
Losing my mind with Ajax link_to_remote
I''m playing around with Rails, and I can''t get this to work. I just can''t seem to wrap my brain around it. I''m having some trouble doing an Ajax navigation column. Here''s what I have: view layout: <div id="navigation"> <%= render(:partial => "navigation", :collection => @categories) %> </div> My
2010 Oct 23
1
Summarizing For Values with Multiple categories
Hi all, I have some data as follows. Cat1 Cat2 Cat3 COG Counts A B C COG1 10 B D COG2 20 C COG3 30 D COG4 40 I would like to sum all the counts for each category: A B C D 10 30 40 60 >CAT2COG<-
2012 Nov 27
1
For-loop,string variables, and the $-operator
Hi all, First time poster, so sorry if I commit some breech of posting etiquette. My problem is as follows. I have a data frame where each column represents a category and the individual data points in each category are binary responses (in this case they are actually 1's and 0's). What I want to extract are the counts for each category and put them in a vector. To do that I used the