Dear All;
Many thanks for your attention. what I want to know is: How can I predict the
Eutrophication by these parameters in the future?
These variables are the most important variables that control the Eutro. in
lakes.
Let me break it to two parts.
1) How can I predict these variables by NN?
2)
Dear Charles;
I think my variables are dependent. For e.g. the concentration of Phosphorus,
Nitrogen, Silica and etc. have effect on the present of Chlorophyll a and the
concentration of Chlorophyll a can make the Eutrophication in lake along with
other algeas.
So I think they are dependent va
Hi everyone,
I am trying to calculate the number of days between any two dates in a year
regardless of the year. Specifically, image two dates:
MonDay1 <- "01-30" #January 30
MonDay2 <- "12-31" #December 31
I want the difference of those two dates to be
MonDay1- MonDay2=30 days #
Heinz Tuechler wrote
> At 07:40 21.06.2009, J Dougherty wrote:
>
> [...]
>>There are other ways of regarding the FET. Since it is precisely
>>what it says
>>- an exact test - you can argue that you should avoid carrying over any
>>conclusions drawn about the small population the test was applied
> do.call(rbind, lapply(split(data, data$Name), function(x)
x[order(x$CheckInDate),][nrow(x),]))
Name CheckInDate Temp
John John 2014-04-01 99.0
Mary Mary 2014-03-01 98.1
Sam Sam 2014-04-01 97.5
>
Is this what you are looking for? I hope this helps.
Chel Hee Lee
On 01/23/2015 05:43
Here is one way. Sort the data.frame, first by Name then break ties with
CheckInDate.
Then choose the rows that are the last in a run of identical Name values.
> txt <- "NameCheckInDate Temp
+ John 1/3/2014 97
+ Mary 1/3/2014 98.1
+ Sam 1/4/2014
Hi,
Can someone help for a R question?
I have a data set like:
NameCheckInDate Temp
John 1/3/2014 97
Mary 1/3/2014 98.1
Sam 1/4/2014 97.5
John 1/4/2014 99
I'd like to return a dataset that for each Name, get the ro
Hi Alireza,
Part of the problem is the scale of your numbers. You probably want
something like this.
plot(x,y,cex=z/min(z)*2)
What happens here is that the default plotting character, which
happens to be a circle, is plotted in a size relative to the ratio of
each z value to the minimum z value.
Hi Pavel,
I probably should have explained that an object name beginning with a
number is not valid. See "An Introduction to R", section 1.8. I think
that the invalid name "2013fixed.data" has somehow been generated. If
you can find where this occurred and change it to "fixed2013.data" the
original
I think what you should look at are these web sites I found with a Google
search:
http://flowingdata.com/2010/11/23/how-to-make-bubble-charts/
http://www.r-bloggers.com/bubble-plots-ggplot2/
http://cran.r-project.org/web/packages/HSAUR/vignettes/Ch_logistic_regression_glm.pdf
http://cran.r-project
Hi,
see the help and especially the argument inches:
Argument inches controls the sizes of the symbols. If TRUE (the default), the
symbols are scaled so that the largest dimension of any symbol is one inch. If
a positive number is given the symbols are scaled to make largest dimension
this siz
Hi there,
I am trying to plot z values using Circle symbol. Each x and y has a value
which will be plotted using a circle where circle's radius is corrlated
with the value of z.
I wrote the code , but unable to change the size of circle no matter what I
chose for Scale. Any help please?
x=c(84390
Look no further! The answer is yes.
However, if you are interested in why your query is probably nonsense
and why overall tests of significance are a **really bad idea** in
most scientific contexts (imho, anyway), then I suggest you post to a
statistical list like stats.stackexchange.com .
...
I have a dataset composed of a dependent variable (species percent cover) and
a range of abiotic variables (salinity, temperature, pH, water movement
etc). It is a longitudinal study, in which species percent cover was
measured once a month for five months. The abiotic variables were measured
using
Hi Kathryn,
another solution would be to use tapply function. So the code to
create new1 vector would be:
a <- 1:8
fc <- c('g1','g1','g2','g3','g3','g3','g4','g4') # definitions of
groups to sum over
tapply(a,fc,sum)
ivan
On Fri, Jan 23, 2015 at 10:32 AM, Bert Gunter wrote:
> If Jim's answer i
Dear R-colleagues,
I am looking for a way to test whether one regression has significant
different coefficients and overall results for 10 groups (grouping variable
is "irr").
*What I have*
The regression is:
Depend = temp + temp² + perc + perc² + conti è split up for multiple groups
of irr
Here is some examples using functions 'tapply()' as suggested by Bert
Gunter in the previous post, 'aggregate()', and 'xtabs()'. Note that
'grp.id' means 'group indicator'.
> a <- c(1,2,3,4,5,6,7,8)
> new1 <- c(1+2, 3, 4+5+6, 7+8)
> new1
[1] 3 3 15 15
>
> grp.id <- c(1,1, 2, 3,3,3, 4,4)
> ta
I did not know there was a warning about that!
I usually find it easier to use [ in scripts anyway.
--
Ivan Calandra, ATER
University of Reims Champagne-Ardenne
GEGENAA - EA 3795
CREA - 2 esplanade Roland Garros
51100 Reims, France
+33(0)3 26 77 36 89
ivan.calan...@univ-reims.fr
https://www.resea
On 2015-01-23 11:09, Ivan Calandra wrote:
Hi Alain,
I think you're looking for %in% (see ?'%in%' for the help page)
id.vector <- c(1,3) ## here you define the values you want to select:
x, y, z...
subset(df, id %in% id.vector)
But note the Warning in
>?subset
Göran
HTH,
Ivan
--
Ivan
Hi Alain,
I think you're looking for %in% (see ?'%in%' for the help page)
id.vector <- c(1,3) ## here you define the values you want to select:
x, y, z...
subset(df, id %in% id.vector)
HTH,
Ivan
--
Ivan Calandra, ATER
University of Reims Champagne-Ardenne
GEGENAA - EA 3795
CREA - 2 esplanad
Dear R-List,
I have nested data with cases grouped by IDs and I want to remove all cases
with specific IDs.
something like
df<-data.frame(id=c(1,1,1,2,2,2,3,3,3,4,4,4,5,5,5),var=c(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15))
subset(df,id== 1 | id == 3)
Having a very large dataset with many IDs to
If Jim's answer is not what you want, then I would say it is because
your question is too vague to be answered. In particular, how do you
specify the elements of the vector that are to be summed to create the
new vectors? ?tapply might then be relevant here, but that's just a
guess.
-- Bert
B
Hi Kathryn,
I think this might do the trick:
make_group_sums<-function(x,maxgroups) {
lenx<-length(x)
runlengths<-sample(1:lenx,1)
for(i in 2:(maxgroups-1)) {
lenx<-lenx-runlengths[i-1]
runlengths[i]<-ifelse(lenx,sample(1:lenx,1),0)
}
runlengths[maxgroups]<-length(x)-sum(runlengths)
grou
Dear R users,
I have a quick quesiton.
Here is a vector "a".
a<- c(1,2,3,4,5,6,7,8).
(In fact, I have a huge vector.)
With "a", I'd like to create new vectors, for example,
new1 = (1+2, 3, 4+5+6, 7+8)
new2 = (1, 2+3+4+5+6+7, 8)
new3 = (1+2+3+4+5+6+7, 8)
How could I make the above vectors u
24 matches
Mail list logo