Displaying 20 results from an estimated 2000 matches similar to: "ifelse with a factor variable"
2005 Apr 16
2
String in data frame
hello,
how can take the string in the data frame.
right now i have a table that create as a data frame and stored in the file called "data.xls" and now i want to read data frame as a table in my another r program, i used the following command:
the first column of the data frame is just one number called "num", but the second one a list of string, called "name".
d
2012 Nov 03
2
reorder() in the latticeExtra library
Hello all, thanks for your time and help. Below are my commands, and it
generates a really nice plot, however I am not happy with the reorder()
function. I would like the order to be the same as they appear in the
genotype variable "genotype <- c("CJ1450 NW 4/25/12","CJ1450 BAL
4/25/12","CJ1450 NW 4/27/12","CJ1450 BAL 4/27/12","CJ1721 NW
2005 Mar 19
2
all fonts gone crazy
Hello all,
this is my first message to the list. I have wine
20041201, installed on my slack 10.1, and it was
working fine, until I installed a software and then
all fonts in menus and messages became weird symbols.
I am sending a screenshot to show how it is today.
Also I will let the image in
http://www.igc.usp.br/pessoais/guano/geocalc_wine.jpg
Does anyone know what is going on and how to
2011 Nov 13
2
Running totals
I have a table which looks like this:
ACC BAL
1 hal -171245.33
2 opn -50487.63
3 pga 213440.38
4 prt 0.18
5 rbs 8292.54
How do I create a column which shows the running totals of the BAL columns?
[[alternative HTML version deleted]]
2000 Nov 14
14
New snapshot
I have just uploaded a new snapshot to:
http://www.mindrot.org/misc/openssh/openssh-SNAP-20001114.tar.gz
This snapshot includes Markus Friedl's new SSH2 RSA authentication work
and -R portforwarding for SSH2. Please give these a good test.
The new RSA authentications works similar to the current SSH2 DSA keys,
but requires a little modification to config files. Currently RSA
key cannot be
2007 May 21
2
logger anybody?
Hello,
When trying to use logger into any RSpec I get:
logger anyboundefined local variable or method `logger'' for
#<#<Class:0x278bee0>:0x253cdec>
Not sure if this is the spected behaviour (haven''t checked under the
hood) It was just annoying not having a logger instance available as in
Rails out of the tests.
--
An?bal Rojas
http://www.rubycorner.com
2007 May 29
5
Trouble defining a stub method for a controller
Hello,
Not sure if I am doing something really wrong (let''s not say
stupid for now), but I haven''t been able to stub a controller method
like:
controller.stub!(:logged_in?).and_return(true)
Please help, this is driving me nuts ;-)
--
An?bal Rojas
http://www.rubycorner.com
http://www.hasmanydevelopers.com
2006 Feb 07
3
Dinamic controller
Is it possible to make a Rails app respond to a "dinamic" controller?
As I understand method_missing can be used inside a controller to
respond to nonexisting methods, is it possible to provide a similar
behavior at a controller level? I am not sure at whic level would this
code be inserted...
--
An?bal Rojas
http://www.lacaraoscura.com/
anibalrojas@gmail.com
2012 Dec 04
2
Labelling x axis in plot function
Hi,
In the plot function I want to label x axis as the numbers between 1 and 12
(so 1, 2, 3, 4, 5, ..., 12). How should I do it? The range of x values are
different than this range. Thanks!
Kind regards,
T. Bal
[[alternative HTML version deleted]]
2005 Mar 16
3
Problem joining a Samba 3 domain - DC can't be contac ted
My domain name is SAMBA-DOMAIN, I can't join it from a
win 2003 machine. Now, if I try to join it from a XP
machine, I am asked to enter a username and password
for a user allowed to join the domain, however, the
info I enter is not accepted!!!
Any idea please?
Thank you
Note: to manage joining my samba domain from a xp
machine, I had to change a registry key.
--- "Mccrory, Kevin
2012 Dec 04
5
question about sum of (column) elements in R
Hi,
I have the following data:
0 12
1 10
1 4
1 6
1 7
1 13
2 21
2 23
2 20
3 18
3 17
3 16
3 27
3 33
4 11
4 8
4 19
4 16
4 9
In this data file I would like to sum the numbers of second column which
belong to the same number in the first column.
So the output would be:
0 12
1 40
2 64
3 111
etc.
Thank you.
Kind regards,
T. Bal
2012 May 08
3
please help!
Hi,
I have a data with the forum
a b c
8.9 0 0
7.4 1 0
4.2 0 1
2.3 1 1
Which are explanatory variables in this data?
And also I want to fit logistic regression model with two explanatory
variables? (I think that I should use glm, but how should I put these
variables in glm)?
Do I need also other functions, other than
2012 May 15
2
question about creating data frame
Hello,
My data is "study.txt":
"Not A" "A"
"Mathematics" 80 15
"Physics" 32 24
"Biology" 18 29
I want to transform this data into with column names 'course' and 'A':
course A
1 Mathematics 1
2 Mathematics 1
..
2008 Mar 19
1
running balance down a dataframe referring back to previous row
Good morning, I've searched high and low and I've tried many different ways
of doing this, but I can't seem to get it to work.
I'm looking for a way of vectorising a "running balance"; i.e. the value in
the first row of the dataframe is zero, and following rows add to this
running balance. This is easy to write in a loop, but I can't seem to get
it working in
2010 Nov 23
3
analytics
Hello all,
We (at ibiblio.org) are evaluating several projects and products for
getting good analytics from icecast. Specifically, we have explored
cacti and awstats. I am writing because I would like users of this
list to send me their experiences with analytics and monitoring
packages and products. I would like details such as time for initial
deployment, time and steps to add an addiitonal
2009 Sep 19
3
reducing space between charts in lattice graphics
Hi,
I'm trying to create a lattice plot with three xyplots in one vertical
column. I would like to reduce the vertical space between the charts. My
code is below. There seems to be a "between" parameter for lattice.options,
but I can't find any examples. Aside from the data setup, the code is below.
Can anyone provide an example showing how to reduce the white space between
the
2007 May 27
1
annotate_models plugin to annotate RSpec specs and fixture
I have found useful to have the table information associated to models
disp?ayed in the models and fixtures files of my rails applications.
If you want to add this information to the spec_fixtures and specs add
the following patch to your plugin.
Index: vendor/plugins/annotate_models/lib/annotate_models.rb
===================================================================
---
2012 May 20
1
question about sign test
Hi,
I want to compute p value of sign test for sample size=15 from normal
distr., sd=0.5, mean=1, alternative should be two sided.
Is this code correct in this situation?
binom.test(sum(rnorm(15,1,0.5)>0),15,p=0.5,alternative="two")$p.value
Or should I use another code (function) e.g. rbinom?
Thank you very much.
kind regards,
T. Bal
[[alternative HTML version deleted]]
2011 Jan 12
1
Filesystem creation in "degraded mode"
I''ve had a go at determining exactly what happens when you create a
filesystem without enough devices to meet the requested replication
strategy:
# mkfs.btrfs -m raid1 -d raid1 /dev/vdb
# mount /dev/vdb /mnt
# btrfs fi df /mnt
Data: total=8.00MB, used=0.00
System, DUP: total=8.00MB, used=4.00KB
System: total=4.00MB, used=0.00
Metadata, DUP: total=153.56MB, used=24.00KB
Metadata:
2010 Aug 25
2
Pure virtual user and RT3.x
Hi,
I have mailsystem with virtual users only (/home/vmail/domain/user). I
need to integrate RT3.x (a ticketing system). I have installed the
client but I need to send mail to a pipe. Rt wants me to insert:
|/usr/bin/rt-mailgate --queue bla --action bla --url http://bla.bal/
In /etc/postfix/aliases. That does not work for me.
What is the right way to achieve that mail to rt at mydomain is