Displaying 20 results from an estimated 60000 matches similar to: "question about creating data frame"
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]]
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
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
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]]
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 11
2
moving data from one frame to another
Hello,
I am working with two different data frames, and I'd like to move data from
one to the other. Here is the first frame:
> head(five)
Week Game.ID VTm VPts HTm HPts HDifferential VDifferential
1 1 NFL_20050908_OAK at NE OAK 20 NE 30 10 -10
2 1 NFL_20050911_ARI at NYG ARI 19 NYG 42 23 -23
3 1 NFL_20050911_CHI
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
2003 Oct 28
1
ifelse with a factor variable
'ifelse' changes factors to character vectors (R-1.7.1, Linux):
> table(bal$soc.40)
tax noble semi-landless landless unknown
4035 5449 13342 9348 0
> blah <- ifelse(is.na(bal$soc.40), "unknown", bal$soc.40)
> table(blah)
blah
1 2 3 4 unknown
4035 5449
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
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 Nov 07
1
Deleting Rows/Columns
Sorry to bother the group but I am wondering if there are some official ways
to delete a row/column, i.e., some functions of dataTable manipulation? For
rows operation I use subset() but what about columns?
Any advice is welcome and I will be more than grateful if somebody could
make a summary on this issue.
Xiaofan
---------------------------------------------------------
Xiaofan Li
2005 Nov 30
1
String values as data marks on X/Y axes?
Hello,
Sorry to bother the list but I am wondering how to mark the X/Y axes with
the column/row names of the data but not the raw index numbers, in a plot
generated by function plot(), or more generally, through which way can I
assign a string array to either of the X/Y axis as the data marks.
Regards,
Xiaofan
---------------------------------------------------------
Xiaofan Li
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
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