Displaying 20 results from an estimated 3000 matches similar to: "Traffic shaping problem"
2004 Aug 14
2
Private methods
Hi,
I'm trying to understand R's object oriented abilities.
I have read (in a very recent email to r-help) that R's methods package
does not support private methods. However, I also looked at the source
for the function "is":
> is
function (object, class2)
{
cl <- .class1(object)
if (missing(class2))
return(extends(cl))
if (.identC(cl, class2)
2011 Feb 25
4
means, SD's and tapply
I'm trying to use tapply to output means and SD or SE for my data but
seem to be limited by how many times I can subset it. Here's a snippet
of my data
> stems353[1:10,]
Time DataSource Plot Elevation Aspect Slope Type Species
SizeClass Stems
1 Modern Cameron 70F221 1730 ESE 20 Conifer ABCO
Class1 3
2 Modern Cameron 70F221 1730
2006 Jan 12
2
Finding by association
I have two objects that are associated in the following way:
class Class1 < ApplicationController
has_and_belongs_to_many :class2s
has_and_belongs_to_many :otherClasses
end
class Class2 < ApplicationController
has_and_belongs_to_many :class1s
has_and_bleongs_to_many :otherClasses
end
Now, when I run the following query,
@objects = Class1.find(:all, :conditions
2004 Oct 14
2
setClassUnion
Hello,
I have a question concerning "setClassUnion".
I'm working with R 2.0.0 Patched (2004-10-06) on windows 2000.
I tried to use "setClassUnion" in a package I am currently working on. The
situation is similar to the following example:
The DESCRIPTION file has entries:
Depends: R (>= 2.0.0), methods
Imports: methods
LazyLoad: yes
The NAMESPACE file has
2004 Oct 14
2
setClassUnion
Hello,
I have a question concerning "setClassUnion".
I'm working with R 2.0.0 Patched (2004-10-06) on windows 2000.
I tried to use "setClassUnion" in a package I am currently working on. The
situation is similar to the following example:
The DESCRIPTION file has entries:
Depends: R (>= 2.0.0), methods
Imports: methods
LazyLoad: yes
The NAMESPACE file has
2006 May 22
2
Project Support Open Source (SOS) wanted to donation to your project
Hi my name is Bob Mutch and I am the owner of Solutions with Service, a
Canadian company that uses open source software products.
I have started a project called ?Project SOS? (Support Open Source) to
help fund free and open source software projects.
I would like to make a donation to your open source work
http://theora.org/ though our project.
Here is the page that how the donations work.
2011 Sep 23
1
Newbie question: Converting Table
Hi,
I'm new to R, and I have searched helpfiles and this forum on my 2
questions. Hope you guys can help me out! :-)
Many thanks in advance!
Cheers,
Lars
Q1: I imported a csv file with columnames subject and class. There are about
1000 different classes...
It looks like this:
subject1, class1
subject1, class2
subject2, class1
subject2, class3
...
subject999, class1
subject999, class2
2001 Feb 26
1
"untable" function
Dear R-users!
I am using R1.2.0 under Windows NT4.0, and have data of the following form:
> #simple example of data structure:
> x <- data.frame(group=LETTERS[1:3], class1=1:3, class2=4:6)
> x
group class1 class2
1 A 1 4
2 B 2 5
3 C 3 6
I would like to convert this to a data.frame y of the following form:
> y
group class counts
1
2007 Feb 02
2
Quick Element.getElementsBySelector() question
Hi,
Does this code should works ?
elm.getElementsBySelector(''UL.class1 > LI.class2'');
I have an error caused by "UL.class1 > LI.class2"
- Does CSS Selector ">" works ?
- What is the exact ? may be "UL.class1>LI.class2"
Regards,
--
Jean-Philippe Encausse - R&D Jalios SA
Jp [at] encausse.net - http://www.encausse.com -
2006 Apr 04
1
Added method to ActiveRecord Class
Hi,
Let''s say:
class Class2 << ActiveRecord
belongs_to: class1
end
class Class1 << ActiveRecord
has_many :class2s
def get_max_class2
?how to get the max of class2 list ?
end
end
I would like to know how I have to write the get_max_class2 method
in order to have the max value of the class2 list ?
I would like to call this method this way:
class2_max
2017 Dec 06
2
Who wants faster LLVM/Clang builds?
> To find which header files could be removed it scanned the file for
"#include" lines and tried to remove them one by one (checking if the file
still compiles after the removal). When there were no more include lines to
remove, we verified the change with ninja+ninja check.
It looks like this makes us rely heavily on transitive header includes --
is that right?
Specifically what I
2006 Jan 05
2
has_many - when are child objects created?
I has several model objects that flow down like a tree:
Class1 has_many Class2
Class2 has_many Class3
and so on.
when are the child records actually created?
If I do:
c1 = Class1.find(:all)
are the child objects (C2s below) created then or not until i do something like:
c2s = c1.C2s while iterating through the c1s?
If the form, that''s cool, no problem, but If I''ve got
2009 Aug 10
3
how use cat() function?
i want to print in the console and to have an excel file like this
no_GWP NbOfPolicyClass1[0-1000] NbOfPolicyClass2[1000-3000] NbOfPolicyClass3[> 3000]
No_GWPMax=8 NbpolicyClass1=5 NbpolicyClass2=4 NbpolicyClass3 =3
i have do it like this:!!!
data1 <-
2012 Apr 05
2
count() function
I keep expecting R to have something analogous to the =count function in
Excel, but I can't find anything. I simply want to count the data for a
given category.
I've been using the ddply() function in the plyr package to summarize
means and st dev of my data, with this code:
ddply(NZ_Conifers,.(ElevCat, DataSource, SizeClass), summarise,
avgDensity=mean(Density),
2003 Jun 27
2
IP phone with asterisk
hi,
can some one tell me a good IP phone (not software, but a "real"
phone :) that work well with asterisk?
how mutch does it cost a good IP phone?
i made a VoIP network for my company, but now we are using a client
for PC phone...
i'd like to buy a IP phone, can someone tell me witch model i should
buy?
thanks,
Angelo
2007 Jul 18
2
hist() Frequancy values
I have seen that the hist() function plots an histogram of the frequency but I
cannot find the value of the object hist that contains theese values... how
is possible to get out them?
thank you very mutch
best regards
Manuele
--
Manuele Pesenti
manuele a inventati.org
amicogodzilla a jabber.linux.it
http://mpesenti.polito.it
2008 Feb 06
1
filling data into objects
I am trying to generate artificial data for feature selection. Basically trying to generate a total of 1000 features with 100 that are informative and rest are uninformative.
Informative.data.class1<-rnorm(100,0.25,1)
Uninformative.data.class1<-rnorm(900,0,1)
Informative.data.class2<-rnorm(100, -0.25,1)
Uninformative.data.class2<-rnorm(900,0,1)
The above will give me one set of data
2009 Aug 18
1
create a table in the console!!
HI
I want to do a table with R (in the console)
GWP_Max NumberOfPolicies
No_GWPMax 8
[0-1000] 4
[1000-3000] 3
[> 3000] 5
i begin by calculate the number of policies in each class :
Data1 <- read.csv2("c:/Total1.csv", sep=",")
> Data2 <- read.csv2("c:/GWPMax1.csv",sep=",")[1:20,1:2]
> M <- merge(Data1,Data2, by.x =
2010 Mar 16
1
heatmap.2 - ColSideColors question
Hi,
I wanted to make more than one side color bar. For example, I can make one side color bar (col1) with the following code:
-----------------------------------
library(gplots)
mat <- matrix(sample(1:100,40),nrow=5)
class1 <- c(rep(0,4),rep(1,4))
col1 <- ifelse(class1 == 0,"blue","red")
class2 <- c(rep(1,3),rep(2,5))
col2 <- ifelse(class2 ==
2009 Aug 18
1
Tr : create a table in the console!!
----- Message transféré ----
De : Inchallah Yarab <inchallahyarab@yahoo.fr>
À : r-help@r-project.org
Envoyé le : Mardi, 18 Août 2009, 16h26mn 20s
Objet : create a table in the console!!
HI
I want to do a table with R (in the console)
GWP_Max NumberOfPolicies
No_GWPMax 8
[0-1000] 4
[1000-3000] 3
[> 3000] 5
i begin by calculate the number of policies in each class :
Data1 <-