Displaying 20 results from an estimated 15305 matches for "area".
Did you mean:
are
2010 Dec 08
4
evaluating NAs in a dataframe
...uot;NA", it returns as "NA"
also. I know that I can remove NAs, but would like to keep the dataframe as
is without creating a subset. I basically want to add a line that evaluates
the NA in the demo dataframe.
As an example, I want to assign rows to classes based on values in
demo$Area. Some of the values in demo$Area are "NA"
for (i in 1:nrow(demo)) {
if (demo$Area[i] > 0 && demo$Area[i] < 10) {Class[i]<-"S01"} ## 1-10 cm2
if (demo$Area[i] >= 10 && demo$Area[i] < 25) {Class[i] <- "S02"} ##
10-25cm2
if (demo$A...
2006 Feb 03
1
Stupid drag/drop add on
To constraint the movement to a specific area, I added the following lines in dragdrop.js
This will allow you to specify: area: [2,3,100,120]
to draw a rectangular area where movement is allowed...
might have very strange side effects, just needed a quick/dirty hack. Plus I installed script.aculo.us just 10 minutes ago :)
Don''t flame...
2009 Oct 14
1
Cacheing computationally expensive getter methods for S4 objects
Hi,
I was wondering if there was a way to store the results of a
computationally expensive "getter" call on an S4 object, so that it is
only calculated once for each object.
Trivial example: let's say I want to cache the "expensive" area
calculation of a square object.
setClass("Square",
representation(
length='numeric',
width='numeric',
area='numeric'
),
prototype(
length=0,
width=0,
area=-1
)
)
setGeneric("area", function(x) standardGeneric(...
2011 Dec 16
1
Model design
...dvance and ask for
understanding in the simplicity of my question:
I have data on the amount of grass per km in a cell ( of which i have
lots) "grass" and for each cell i have x/y coordinates - required due
to spatial autocorrelation
Cells can be classfied in a hierarchical nature into AREAS and STATES
i.e Cell 1, Cell 2, Cell 3 are all in AREA "A"
where as Cell 4,5 and 6 are in AREA "B"
However both area A + B are in state "S1"
I have lots of these (13000) cells which are classfied into ~2000
AREA's and ~750 STATE'S
So my question is do AREA...
2011 Oct 04
1
F-values in nested designs
Hello all
I'm trying to learn how to fit a nested model in R. I found a toy
example on internet where a dataset that have?3 areas and 4 sites
within these areas. When I use Minitab to fit a nested model to this
data, this is the ANOVA table that I got:
Nested ANOVA: y versus areas, sites
Analysis of Variance for y
Source DF SS MS F P
areas 2 4.5000 2.2500 0.158 0.856
sites 9 128.2500...
2011 Mar 18
4
subset data frame with condition
Hello,
One more question.. I have the data.frame "pop":
xloc yloc gonad ind Ene W Area
1 23 20 516.74 1 0.02 20.21 1
2 23 20 1143.20 1 0.02 20.21 1
3 23 20 250.00 1 0.02 20.21 1
4 22 15 251.98 1 0.02 18.69 2
5 22 15 598.08 1 0.02 18.69 2
6 21 19 250.00 1 0.02 20.21 3
7 22 20 251.98 1 0.02 18.69...
2006 May 25
5
Model Structure Advise
...on setting up the model relationships.
I was going to go with a simple system of a Category table and a FAQ
table (holding questions and answers) - where one FAQ belongs to one
category.
That''s all nice - a simple has_many / belongs_to relationship. Then I
decided to add another level - Area. So I could make the system work
for a wider audience (IT area has it''s own categories and FAQ''s, Sales
area has it''s own categories and FAQ''s, etc.)
I''m not sure how the best way to set this up - areas has_many
categories has_many faqs, or areas has_ma...
2013 Apr 04
3
summing vectors
Hi All,
Year Area Q Bin FD
I have a large dataset I need to re-structure. It looks something
like this: 2000 1 1 5 0 2000 1 1 10 1 2000 1 1 15 23 2000 1 1 20 12 2000
1 1 25 1 2000 2 1 5 1 2000 2 1 10 3 2000 2 1 15 15 2000 2 1 20 11 2000
2 1 25 3 2000 1 2 5 0 2000 1 2 10 1 2000 1 2 15 23 2000 1 2...
2006 Dec 04
0
How to calculate area between ECDF and CDF?
...ice issues). I'd use
the Kolmogorov-Smirnov test, but of course this is invalid when the
distribution parameters are estimated from the data.
So I'm tinkering with an alternative method (excuse my naivet? if this
is a bad idea, I'm a relative statistical novice) that calculates the
area of the difference between the ECDF of the data and the CDF of the
estimated function (somewhat like KS, which looks at the greatest
distance between these). My thought is to compare this observed area to
a distribution of simulated areas derived by monte carlo simulation
(draw N random samples...
2007 Aug 10
3
having problems with factor()
Dear R Help,
I have a set of data of heights of trees described by area that they are in. The areas are numerical (0 to 7).
ht area
1 320 3
2 410 4
3 230 2
4 360 3
5 126 1
6 280 2
7 260 2
8 280 2
9 280 2
10 260 2
.......
180 450 4
181 90 1
182 120 1
183 440 4
184 210 2
185 330 3
186 210 2
187 100 1
188 0...
2006 Apr 13
1
Adding a title to an AJAX link.
Hello all.
I am trying to add a title to a link_to_remote created AJAX link.
What I want to create is:
<a href="#" title="VALUE-HERE" onclick="new Ajax.Updater(''content'',
''/area/show/28/40'', {asynchronous:true, evalScripts:true}); return
false;">Area Name</a>
However I cannot seem to get it to work, the API says that
link_to_remote is
link_to_remote(name, options = {}, html_options = {})
If I try:
<%= link_to_remote area.name, :update =>...
2010 Aug 27
2
Nestad ANOVA with random Factors
Hi,
I need a help. I am new in R and I need to run a nested anova with fixed and
random factors (Mixed Model). I have a design with three factors: Day, Area
and Plot and the dependent variable is density. The factors Day and Area are
fixed while Plot is random, factor Area is nested in factor Day, and factor
Plot is nested in Area.
I can do it using aov by:
mod1<-aov(density~ day + day%in%area + day%in%area%in%plot)
symmary(mod1)
Getting this re...
2013 Jan 27
3
Package: VennDiagram. Error in draw.pairwise.venn Impossible: cross section area too large
Dear list,
When I use VennDiagram package, I got a error as follow:
venn.plot <- draw.pairwise.venn(
area1 = 3186,
area2 = 325,
cross.area = 5880);
Error in draw.pairwise.venn(area1 = 3186, area2 = 325, cross.area = 588) :
Impossible: cross section area too large.
Does anyone have suggestion?
Thank you.
2006 Mar 26
2
Problem with names() in a plot after ordering a data.frame. Syntax or stupidity?
...d
produce a simple
Cleveland style dotchart with a line from the '2' axis
to the dot rather
than a continuous line as do "dotchart" and
"dotchart2". At least I could not
find that option.
I got a crude program to work but it includes
unnecessary steps.
The data in Area (below) is sorted in reverse order to
how I want it displayed
I am doing to many 'sorts' either a sort() or a rev()
to handle this problem.
When I change from sorting variables to using order()
on the data.frame I
lose my names() When I try to assign it, I get a NULL
return.
It is prob...
2006 Oct 08
1
Probability of exceedance function question
I'm trying to calculate a cumulative area distribution (graph) of drainage
areas. This is defined as P(A > A*). Simple in principle. I can do this in
excel, with "COUNTIF", which will count the number of cells in the row
"area" that have area A, then determine, for each cell in the row "area, how
many cells exce...
2009 Oct 22
5
How to calculate the area under the curve
Hi all,
I would like to calculate the area under the ROC curve for my predictive
model. I have managed to plot points giving me the ROC curve. However, I do
not know how to get the value of the area under.
Does anybody know of a function that would give the result I want using an
array of specificity and an array of sensitivity as input?...
2011 Jan 03
3
Inverse Gaussian Distribution
Dear,
I want to fit an inverse gaussion distribution to a data set.
The predictor variables are gender, area and agecategory.
For each of these variables I've defined a baseline
e.g.
#agecat: baseline is 3
data<-transform(data, agecat=C(factor(agecat,ordered=TRUE),
contr.treatment(n=6,base=3)))
The variable 'area' goes from A to F (6 areas: A,B,C,D,E,F)
How can i manipulate the data t...
2013 Mar 18
2
OrgMassSpecR peak area issue
Hello!
I am having an issue with the OrgMassSpecR package. I run my HPLC using a
DAD detector. My raw data is exported form chemstation as a csv file. I
then upload the csv into Rstudio no problem. Using the DrawChromatogram
function, I get a nice chromatogram, and my retention time, peak area, and
apex intensity values are given as well.
The problem comes with the peak area value given. The peak area is much
smaller than a value that would make sense. My peak area value is actually
less than my apex intensity value. Is this because I am using a DAD
detector rather than an MS? If so,...
2002 Dec 04
1
use of offset - clarification
Hi Listers,
seems I have forgotten some basics re offset in glm:
data:
counts (y) from locations off different size (area),
explanatory variable: x
Model:
y ~ x+offset(area)
Predictions (pred) using Poisson errors
plot(x,y) and points(x,pred) gives neat "line" of estimated values.
However, for ease of understanding graphs are better using plot(x,y/area).
Question:
How to display predictions from the mod...
2009 Jul 23
1
ggplot2 : commands on one line vs two lines.
...L, 7L, 2L, 9L, 1L, 12L, 3L, 13L, 5L, 4L, 6L, 10L), .Label = c("AB",
"BC", "MB", "NB", "NL", "NS", "NT", "NU", "ON", "PE", "QC", "SK",
"YT"), class = "factor"), Area = c(1936113L, 1365128L, 1183085L,
925186L, 917741L, 642317L, 591670L, 553556L, 474391L, 373872L,
71450L, 53338L, 5660L)), .Names = c("Name", "Pcode", "Area"),
class = "data.frame", row.names = c(NA,
-13L))
library(ggplot2)
p <- ggplot(provs, aes(x = 0, x...