Displaying 20 results from an estimated 8000 matches similar to: "keep empty subsets using aggregate"
2010 Feb 05
2
sum a particular column by group
Dear all,
I have a table like this:
> eds
R.ID Region Gender Agegr Time nvisits
1 1 A F 60--64 1:00 1
2 2 O F 55--59 1:20 1
3 3 O F 55--59 3:45 3
4 4 S M 60--64 1:10 3
5 5 W F 55--59 12:30 1
6
2009 Nov 02
3
problems with read.csv
Dear all,
I''d like to ask help on R code to get the same results as the following
Splus code:
>indata<-importData("/home/data_new.csv")
>indata[1:5,4]
[1] 0930 1601 1006 1032 1020
I tried the following R code:
> indata<-read.csv("/home/data_new.csv")
> indata[1:5,4]
[1] 930 1601 1006 1032 1020
I''d like the first
2009 Oct 23
2
extract day or month as in Splus
Dear all,
I am writing to ask for help to find R code to do the same thing as the
following Splus code:
dates <- c("02/27/1992", "02/27/1992", "01/14/1992", "02/28/1992",
"02/01/1992")
timeDate(as.character(dates),in.format="%m/%d/%Y","%a")
[1] Thu Thu Tue Fri Sat
Could anyone give me some R codes to get the
2008 May 31
2
Segfault in imap_bodystructure_write when searching
Whenever I try to search on my dovecot test install, dovecot dies. It
immediately spawns a new process, which the client tries to connect to, and
send search commands to, causing that to die, and so forth. This loop means I
have to kill either the server or the client.
Running Dovecot 1.0.13 from/on Debian testing, rebuilt with vpopmail support
and no other source changes. Vpopmail version is
2006 May 19
1
problem with pdf() R 2.2.1, os 10.4.6
Hi,
I'm trying to write a histogram to a pdf
pdf()
plot<-hist(c, xlim=c( 0.69, 0.84), ylim=c(0,100))
when I try to open the pdf I can't open it, there is always some
error . Is there something I should add to make it run under this
operation system? I had problems upgrading to 2.3 (problem
downloading packages) so I'm not sure an upgrade will work out with
me. I just want a
2008 Jan 20
1
Looping over subsets
Hi,
Possibly a dumb question, but I wonder if anyone can help me with this.
What I want to do, essentially, is to loop over all ordered subsets of a
given size of a certain set. Ultimately, the idea is to find the subset
that maximises a certain value.
The set in question is likely large (the subset size is likely small,
though), so things like combn don't seem to be a good solution. The
2007 Jan 28
2
help with RandomForest classwt option
Hello there,
I am working on an extremely unbalanced two class classification problems. I
wanna use "classwt" with "down sampling" together. By checking the rfNews()
in R, it looks that classwt is not working yet. Then I looked at the
software from Salford. I did not find the down sampling option. I am
wondering if you have any experience to deal with this problem. Do you
2005 Feb 22
1
Memory error in Mac OS X Aqua GUI v1.01 with cluster package functions
I'm sorry if the answer to my problem is buried in the archives. I
have limited experience with R and I couldn't find a solution to my
particular problem. I am running Mac OS X Aqua GUI v1.01 on a new G5
running os 10.3.8 with a 1.8Ghz processor and 1GB of sdram. I just
downloaded bioconducter a week ago and I'm trying to cluster a matrix
I created with a simulation with
2008 Jan 02
1
wants to get all parents with no children, etc
To all:
hi,
i have implemented the associations in my models
so i have a Parent model that has many Children model
but i need to get a list of Parents that do not have children
or
Parents that have just 2 children
or Parents that have children whose name is ''James'', or ''Sarah'', or
''Betty''
or Parents whose children do not have names like
2004 Apr 14
1
Aggregate drops empty subsets
Greetings, R community.
I am trying to create a multi-dimensional contingency table suitable
for analysis by glm() using the poisson family. I have three factors,
each with four levels, with some observed zeros. I'm trying to use
aggregate to construct my contingency table, but it drops empty
subsets, so the zeros get lost. I also tried tapply() but it doesn't
carry over the main
2017 Sep 19
3
what do you think about write.table(... qmethod = "excel")?
Last week one of our clients reported trouble with a csv file I
generated with write.table. He said that columns with quotes for
character variables were rejected by their data importer, which was
revised to match the way Microsoft Excel uses quotation marks in
character variables. I explained to them that quoted character
variables are virtuous and wise, of course, but they say Microsoft
Excel
2006 May 09
1
problem accessing trees after read.nexus from ape package
Hello,
I've been trying to figure out how to access the individual elements
from an object of class phylo.
I am reading in 201 trees created by paup as below.
> read.nexus("A_30knj_200t.txt", tree.names= NULL) -> anj30
> anj30[1]
$tree1
$edge
[,1] [,2]
[1,] "-1" "-2"
[2,] "-2" "-3"
[3,] "-3" "1"
2006 Sep 05
4
Ferret 0.10.2 - Index#search_each() and :num_docs
Hi,
I seem to be having trouble getting more than 10 hits from
Index#search_each since upgrading to 0.10.2 (ie, this was working in
0.9.4). Maybe a bug, as the #search_each doesn''t seem to use the options
parameter any more ?
Thanks,
Neville
===========================================
require ''rubygems''
require ''ferret''
p Ferret::VERSION
idx =
2002 Oct 04
1
Samba servers and Mac OS X clients
I am trying to set up a file server using RedHat or Mandrake Linux. The
Linux server is running netatalk. Clients include Mac OS 9.1 and 9.2,
Windows 2K, ME, MacOS X (10, 10.1 and Jaguar).
I seem to have connectivity issues with the clients running OS X, and was
wondering if this is supported in Samba. My server is running version
2.2.6pre2, which was recently upgraded from 2.2.3. Thanks.
--
2010 Mar 15
2
aggregate without removing empty subset
Hi the list,
As it is say in its doc, the aggregate function remove empty subsets. Is
it possible to NOT remove empty subset ?
--- 8< -------
m <- matrix(1:12,4)
part <- factor(c("A","B","A","B"),levels=c("A","B","C"))
aggregate(m,list(part),mean)
### I get:
# Group.1 V1 V2 V3
# 1 A 2 6 10
# 2 B 3 7
2008 Apr 26
4
how to use printk() in xen?
hi, all:
i want to add a function in xen. in the function i need to call the "printk" to display the values of some variables.
i found the definition of printk() in file "xen-3.1.0-src\xen\include\xen\lib.h ":
extern void printk(const char *format, ...)
__attribute__ ((format (printf, 1, 2)));
who can tell me the location of printk()?
thanks in advance.
2008-04-26
2013 Jul 26
2
[LLVMdev] arch-specific predefines in LLVM's source
> ----- Original Message -----
>> Hi all,
>> My recent commit r187027 fixed a simple oversight of forgetting to
>> check for __ppc__ (only checking __powerpc__), which broke my
>> powerpc-apple-darwin8 stage1 tests, since the system gcc only
>> provided
>> __ppc__. I was wondering if this justifies using simpler macros like
>>
>> #define
2011 Dec 16
3
[LLVMdev] llvm/clang test failures on powerpc-darwin8
Hi,
Thanks for the quick reply again.
> On Thu, Dec 15, 2011 at 1:17 PM, David Fang <fang at csl.cornell.edu> wrote:
>> Hi,
>>
>> I've bootstrapped llvm/clang from svn-trunk on powerpc-darwin8 (g++-4.0.1), and
>> have the following test results to share.
>> Summary below, full log at:
>>
2013 Jul 27
1
[LLVMdev] arch-specific predefines in LLVM's source
Hi,
> ----- Original Message -----
>>> ----- Original Message -----
>>>> Hi all,
>>>> My recent commit r187027 fixed a simple oversight of forgetting
>>>> to
>>>> check for __ppc__ (only checking __powerpc__), which broke my
>>>> powerpc-apple-darwin8 stage1 tests, since the system gcc only
>>>> provided
2013 Jul 27
0
[LLVMdev] arch-specific predefines in LLVM's source
----- Original Message -----
> > ----- Original Message -----
> >> Hi all,
> >> My recent commit r187027 fixed a simple oversight of forgetting
> >> to
> >> check for __ppc__ (only checking __powerpc__), which broke my
> >> powerpc-apple-darwin8 stage1 tests, since the system gcc only
> >> provided
> >> __ppc__. I was