Displaying 20 results from an estimated 46 matches for "cat1".
Did you mean:
cat
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 => "category = ''1'' ")
But I want it to be something like this:
<% if @cat1 != ""...
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 =
data.frame(val=1:10,lvls=c('cat2',rep("cat1",4),rep("cat2",4),'cat1'),nm=c('longname2',rep("longname1",4),rep("longname2",4),'longname1'))
x
val lvls nm
1 1 cat2 longname2
2 2 cat1 longname1
3 3 cat1 longname1
4 4 cat1 longname1
5 5 cat1 longname1
6 6 cat2 l...
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 item</li>");
} catch (e) { alert(''RJS error:\n\n'' + e.toStr...
2011 Jan 17
2
matrix manipulations
...et's say that i split the data in 2 parts, 1 and 2. Each part has data belonging to 6 different categories, and each category has 2 different classes, these classes being the same for each category. The classes are called "land" and "water" and each category is labeled "cat1" to "cat6". I am using the command (function) table to tabulate each class for each category, but since i split the data in 2 parts, one part has only some of the 6 categories, and the other some other of the 6 categories (and not necessarily exclusive).
So let's built some resu...
2007 Jul 30
4
how to combine data of several csv-files
Hello,
I'm looking for a solution for the following problem:
1) I have a folder with several csv files; each contains a set of
measurement values
2) The measurements of each file belong to a position in a two
dimensional matrix (lets say "B02.csv" belongs to position 2,2
3) The size of the matrix is fix
4) I cannot assure to have a csv file for each position
5) Each position
2008 Mar 04
1
help needed on function call
Hi there,
I am confused about fucntion call. After defining a function, I called it
within another function.
dt<-cars; #a copy of R internal dataset "cars" created;
dt$cat1<-ifelse(dt$speed<20,0,1);
dt$ind<-ifelse(dt$speed<15,1,2); #group variable;
freqtot <- function(data,var){
attach(data,warn.conflicts=FALSE)
x1 <- data.frame(table(var))
names(x1) <- c("Group","cnt")
x1$pct<-round(x1$cnt/nrow(data)*100,1)
retu...
2002 Oct 25
0
[Bug 422] New: /bin/sh: ./ssh-keygen: file or directory not found
...negative message) but installation makes trouble. See below for how far it works:
/bin/install -c -m 4711 -s ssh-keysign /usr/libexec/ssh-keysign
/bin/install -c -m 0755 -s sftp /usr/bin/sftp
/bin/install -c -m 0755 -s sftp-server /usr/libexec/sftp-server
/bin/install -c -m 644 ssh.1.out /usr/man/cat1/ssh.1
/bin/install -c -m 644 scp.1.out /usr/man/cat1/scp.1
/bin/install -c -m 644 ssh-add.1.out /usr/man/cat1/ssh-add.1
/bin/install -c -m 644 ssh-agent.1.out /usr/man/cat1/ssh-agent.1
/bin/install -c -m 644 ssh-keygen.1.out /usr/man/cat1/ssh-keygen.1
/bin/install -c -m 644 ssh-keyscan.1.out /usr/m...
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 1...
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 100...
2009 Dec 02
1
Lattice: multiple data sets on same plot
.... 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"] = "this"
}
else{
pop[i,"cat1"] = "that"
}
}
cat<-(runif(2000)<=.5)+0
for(i in 1:length(cat)){
if(cat[i] == 0){
pop[i,"cat2"] = "here"
}
else{
pop[i,"cat2"] = "there"
}
}
#Extra...
2006 Aug 24
1
Using a 'for' loop : there should be a better way in R
...ry. 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:
cat1 <- c( 1,1,6,1,1,5)
cat2 <- c( 1,2,3,4,5,6)
cat3 <- c( 5,4,6,7,8,8)
cat4 <- c( 1,2,1,2,1,2)
years <- c( 'year1', 'year2', 'year3', 'year3',
'year1', 'year1')
id <- c('a','a','b','c','c','a...
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 309050...
2007 Dec 19
3
median of binned values
...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
cat3 100
cat4 1000
cat5 10000
I want it to return cat5, instead of cat3.
Thanks a lot
Martin
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 reading the manpage.
In all cases I've tried, selinux is in permissive mode.
>From one of these boxes:...
2010 Sep 29
0
R Graphic - Tellis as a potential
Hello all,
I have been meaning to learn R for a while and have just subscribed to this
list. I am planning to give R a shot at one of my live projects. I am looking
to explore graphical features of R on my data below.
Sample Data:
Cat1 - Cat2 - Cat3 - Cat4 - NumPeople - Salary
H - L - H - L - 100 - 50000
L - L - L - L - 40 - 30000
- H - H - - 100 - 45000
Cat1 through Cat4 are categorical variables containing High, Medium, Low or
Blank values and the last two variables are continuous.
1. Is there a good way of graphically r...
2003 Jun 11
2
[PATCH] Fix typos, OpenBSD + Portable
...is implemented for ssh use only. For exapmle, this routine assumes
+ * is implemented for ssh use only. For example, this routine assumes
* that ai_family is AF_INET. Don't use it for another purpose.
*/
-------------- next part --------------
? tmpfile
? scard/Ssh.bin
? scp/scp
? scp/scp.cat1
? sftp/sftp
? sftp/sftp.cat1
? sftp-server/sftp-server
? sftp-server/sftp-server.cat8
? ssh/ssh
? ssh/ssh.cat1
? ssh/ssh_config.cat5
? ssh-add/ssh-add
? ssh-add/ssh-add.cat1
? ssh-agent/ssh-agent
? ssh-agent/ssh-agent.cat1
? ssh-keygen/ssh-keygen
? ssh-keygen/ssh-keygen.cat1
? ssh-keyscan/ssh-keysc...
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
that there is n...
2010 Apr 12
2
Interpreting factor*numeric interaction coefficients
...248 0.064468 -0.423 0.6725
I am having trouble interpreting this output.
I think I understand that:
# the 'var1' value refers to the slope of the relationship within the first
factor level
# the 'cat2' and 'cat3' values refer to the difference in intercept from
'cat1'
# the interaction terms describe the difference in slope between the
relationship in 'cat1' and that in 'cat2' and 'cat3' respectively
Therefore, if I wanted a single value to describe the slope in either cat2
or cat3, I would sum the interaction value with that of va...
2010 Jun 09
2
cbind with vectors of different lengths?
Hello R help
I have a dataframe, with 71 samples (rows) and 30 variables. I got linear models for some of the variables,? and I want to join fitted and residuals of these models to the data frame. Sometimes, these vectors have the same length of the dependant variable, but in a few cases, NA values can be found on my data, and therefore, both fitted and residuals have a few rows less than the
2003 Dec 16
2
Fw: [S] plot stacked bar chart in R
...: <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.
>
> The input data format is like the following
>
>
> CAT1 CAT2 Count
> A a 234
> A b 758
> A c 156
> B a 753
> B b 568
> B c 684
> C a 356
> C b 564
> C c 256
> D a 123
> D b 165
> D c 754
>
> please advice.
>
>
> thanks,
>
>
> Yun-Fang
>
>
> ---------------------------...