Displaying 20 results from an estimated 519 matches for "0.09".
Did you mean:
0.0
2010 Feb 04
1
for loop with if statment problem
Both of the approx functions work correctly individually, but they are
not being distinguished in the for loop by the if statments. Any help
would be appreciated. for loop of interest is below
x <- (structure(list(Site = structure(c(2L, 2L, 2L, 2L, 2L, 2L, 2L,
2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L,
2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L,
2L,
2010 Apr 23
6
transpose? reshape? flipping? challenge with data frame
Greetings all,
I am having difficulty transposing, reshaping, flipping (not sure which) a data frame which is read from a DBF file. I have tried using t(), reshape() and other approaches without success. Can anyone please suggest an way (elegant or not) of flipping this data around ?
The initial data is like propsum (defined below), and I want it to look like tpropsum once reformed.
>
2012 Jun 01
1
Fit lines in intxplot
Dear R help,
I tried to add linear fit lines in intxplot by adding "index.cond = function(x,y) coef(lm(y ~ x))[1]" inside the intxplot().? It didn't help.? I would appreciate any help.
My dataset and codes are pasted below.
Thanks,
A.K.
datGreen<- read.table(text="
Time,??? DarkSt,??? LightSt
0,??? 0,??? 1
1,??? 0.03,??? 0.82
2,??? 0.06,??? 0.91
3,??? 0.12,??? 0.64
4,???
2012 Jul 13
4
R-squared with Intercept set to 0 (zero) for linear regression in R is incorrect
Hi,
I have been using lm in R to do a linear regression and find the slope
coefficients and value for R-squared. The R-squared value reported by R
(R^2 = 0.9558) is very different than the R-squared value when I use the
same equation in Exce (R^2 = 0.328). I manually computed R-squared and the
Excel value is correct. I show my code for the determination of R^2 in R.
When I do not set 0 as the
2010 Nov 03
4
Drawing circles on a chart
Dear Group,
I have the following data matrix which is a timeseries.
> dput(tData)
structure(list(A = c(0.2, 0.13, 0.05, 0.1, 0.02, 0.18, 0.09,
0.06, 0.13), B = c(0.15, 0.06, 0.09, 0.02, 0.03, 0.12, 0.01,
0.15, 0.06), C = c(-0.1, 0, -0.07, -0.06, -0.05, -0.05, -0.06,
-0.08, -0.07), D = c(-0.15, -0.05, -0.1, -0.03, -0.13, -0.04,
-0.1, -0.04, -0.15), E = c(-0.17, -0.16, -0.08, -0.07, -0.09,
2010 Apr 28
2
unexpected result from format(x, digits)
Is this a bug somewhere? The format function, using a specific number of digits, doesn't give sensible results:
R> set.seed(2);print(x<-rexp(5))
[1] 1.86535 0.40475 0.14665 1.73071 0.08953
R> format(x,digits=1)
[1] "1.87" "0.40" "0.15" "1.73" "0.09"
R> format(x,digits=2)
[1] "1.87" "0.40" "0.15"
2006 May 24
2
data.frame
Dear all,
Does any one knows why should I get the following error message, when trying
to do a simple data.frame??
DataF<-data.frame(Subject,BiomR,Spp,Capas,Litter,Herbs,LitterD,MaxCanH,DDifS
p,DSSp,Slope, CanDens,NearestSp)
Erro em data.frame(Subject, BiomR, Spp, Capas, Litter, Herbs, LitterD, :
arguments imply differing number of rows: 202, 0
The data I am using
2011 Jan 21
4
clustering fuzzy
hello,
i'm pete ,how can i order rows of matrix by max to min value?
I have a matrix of membership degrees, with 82 (i) rows and K coloumns, K
are clusters.
I need first and second largest elements of the i-th row.
for example
1 0.66 0.04 0.01 0.30
2 0.02 0.89 0.09 0.00
3 0.06 0.92 0.01 0.01
4 0.07 0.71 0.21 0.01
5 0.10 0.85 0.04 0.01
6 0.91 0.04 0.02 0.02
7 0.00 0.01 0.98 0.00
8 0.02
2010 Aug 30
4
LOOping problem with R
Dear Guys,
I do converting codes from Fortran into R and got stuck in solving LOOPING
procedure with R. In FORTRAN, it is (DO and END DO) for looping in the net.
In R, it is (FOR with { }).
I believe there is something wrong with my coding in R, do hope that you can
help me solving following problems.
It seems easy, but results are not the same.
2007 Apr 25
1
help
Hi all,
I have 2 questions:
1)How do I calculate the mean on an imported txt file? I've imported the
file below and that's what it looks like imported. How do I then calcuate
the mean, median, or mode on the column LeafArea using the desktop R
package?
Any help would be greatly appreciated!!
Thanks,
Nat
LeafType Leaflets LeafArea ShapeRatio LeafWeight LeafThickness
1 1
2008 Apr 18
2
rzinb (VGAM) and dnbinom in optim
Dear R-help gurus (and T.Yee, the VGAM maintainer) -
I've been banging my head against the keyboard for too long now, hopefully someone can pick up on the errors of my ways...
I am trying to use optim to fit a zero-inflated negative binomial distribution. No matter what I try I can't get optim to recognize my initial parameters. I think the problem is that dnbinom allows either
2010 Jul 14
1
Add Significance Codes to Data Frame
I was hoping that there might be some way to attach significance code like
the ones from summary.lm to a dataframe. Anyone know how to do something
like that. Here is the function i'd like to add that functionality to:
add1.coef <- function(model,scope,test="F",p.value=1,order.by.p=FALSE)
{
num <- length(model$coefficients)
add <- add1(model,scope,test=test)
sub <-
1999 Aug 19
1
[RHSA-1999:029-01] Denial of service attack in in.telnetd
---------------------------------------------------------------------
Red Hat, Inc. Security Advisory
Synopsis: Denial of service attack in in.telnetd
Advisory ID: RHSA-1999:029-01
Issue date: 1999-08-19
Updated on:
Keywords: telnet telnetd
Cross references:
---------------------------------------------------------------------
1. Topic:
A denial of service attack has been fixed in
2012 Sep 28
2
Converting array to matrix
Hi,
I have a 3d array as below, I want to make this array to a matrix of p=50(rows) and n=20(columns) with the coverage values .
The code before the array is:
library(binom)
Loading required package: lattice
pi.seq<-seq(from = 0.01, to = 0.5, by = 0.01)
no.seq<-seq(from = 5, to = 100, by = 5)
cp.all = binom.coverage( p = pi.seq, n = no.seq , conf.level = 0.95, method = "exact")
2010 Aug 05
3
Reshape? I need it?
Dear all,
I'm new here, I'm starting to learn R (oh my God!!). So, now I'm in panic
because I have this situation:
TIPO Avariato
A 0.05
B 0.09
A 9
B 8
A 9
B 3
and this is what I would like to do:
Avariato A B
Avariato 0.05 0.09
Avariato 9 8
Avariato 9 3
I don't know how to do it. I need to use reshape? how?
thanks for your reply.
Spigo
--
View this message in context:
2009 Sep 03
2
localhost/PING is CRITICAL
Hi all,
I've recently switched to the latest rt kernel
available from http://people.centos.org/hughesjr/kernel-rt
And one of the two problems I'm having with this new kernel
is that the logs have been flooded with nagios alerts
which indicate high percentage (50-60) of packet loss
when pinging localhost. The problem shows up several hours
after the system reboot.
Any ideas on what might
2010 Jan 20
3
Mutliple sets of data in one dataset....Need a loop?
Hi
I'm hoping someone can help me I am a relative newbie to R.
I have data that is in a similar format to this...
Experiment Score1 Score2
X -0.85 -0.02
X -1.21 -0.02
X 1.05 0.09
Y -1.12 -0.07
Y -0.27 -0.07
Y -0.93 -0.08
Z 1.1 -0.03
Z 2.4 0.09
Z -1.0 0.09
Now I can easily have a look at the overall correlation of score 1 and 2 by
doing this
plot(data[,2], data[,3]) or
fit <-
2005 Apr 07
0
[OT] snmp not reporting traffic values for a network interface
Hi all!
I know this is quite offtopic, but I found nothing in google nor in
the net-snmp mailing list, and I know there''s a lot of people here
graphing with snmp+rrdtool. I installed net-snmp 5.1.2-6.1 in Debian
to produce graphs for some ethernet interfaces. It seems it''s not
reporting correct values for them. Here''s my snmpd.conf (very simple)
and the output from the
2012 Aug 11
3
help counting in data
Hi
>i have this data
> X
[1] 5.79 1579.52 2323.70 68.85 426.07 110.29 108.29 1067.60 17.05
22.66
[11] 21.02 175.88 139.07 144.12 20.46 43.40 194.90 47.30 7.74
0.40
[21] 82.85 9.88 89.29 215.10 1.75 0.79 15.93 3.91 0.27
0.69
[31] 100.58 27.80 13.95 53.24 0.96 4.15 0.19 0.78 8.01
31.75
[41] 7.35 6.50
2005 Oct 08
4
Warning: condition has length > 1
Hi -
I was wondering if anyone came across a problem such as mine! I was trying
to create a user-defined function, however, the results from calling the
function are unexpected!
When passing X parameter as a single value variable (x<-c(3)), everything
works fine. However, when passing a parameter as a vector with multiple
values (as the case in my code), the 'if condition' is only