similar to: Simple table with frequency variable

Displaying 20 results from an estimated 1200 matches similar to: "Simple table with frequency variable"

2010 Dec 07
3
understanding output of tapply/by cumsum
Dear R-users, I have a dataset with categories and numbers. I would like to compute and add cumulative numbers to the dataset. I do not understand the structure of by(...) or tapply(...) output enough to handle it. Here a small example -------------- d<-expand.grid(a=1:5,b=1:3,c=1:2) d$n = 10 * d$a + d$b +0.1* d$c Sn<-by(d$n,list(d$a,d$c),cumsum) str(Sn) --------- List of 10 $ : num
2008 May 08
1
Reading multiple tables from file
Dear R-users, I have output files having a variable number of tables in the following format: ------------- 1 Pietje I1 I2 Value 1 1 0.11 1 2 0.12 2 1 0.21 2 Jantje I1 I2 I3 Value 1 1 1 0.111 3 3 3 0.333 ... ------------- Would there be an easy way of turning this into (a list of) data.frames with names Pietje, Jantje and variables I1,I2,...Value? (I1,I2 are string or categorical,
2008 Jul 30
1
Unexpected line type in lattice plot key on pdf device
L.S., With the code below, on the Windows screen the line types in the key show as solid and dashed as in the graph, and in the pdf file they show as solid in the key and solid and dashed in the graph. I would not expect that, but may be I get something wrong. Gerrit. ------- library(lattice) # pdf("pietje.pdf") x<-0:10 xyplot((x^0.5)+(x^0.75)~x,type="o",lty=c(1,2),
2008 Apr 18
1
Vertical bars with barchart
Hallo, What is the right way to get vertical bars in a barchart? For instance barchart(VADeaths, key=simpleKey(colnames(VADeaths),points=F,rectangles=T)) gives what I need, only I would like the bars to be vertical. But barchart(VADeaths,horizontal=F, key=simpleKey(colnames(VADeaths),points=F,rectangles=T)) does not give what I need, and I do not understand how to change the
2011 Nov 14
2
how to include integrate in a function that can be solved with uniroot?
Hallo, I am trying to define expectation as an integral and use uniroot to find the distribution parameter for a given expectation. However I fail to understand how to define properly the functions involved and pass the parameters correctly. Can anyone help me out? Thanks, Gerrit Draisma. This what I tried: ======= > # exponential density > g <- function(x,lambda){ lambda
2009 Jun 06
1
correct line types in lattice legends
Hallo R-users, I do not understand how to specify the correct line and symbol types in the legends of a lattice xyplot. This is what I tried, but the line types and symbol in the graph are not seen in the legend. Any help is appreciated. Thanks, Gerrit. library(lattice) s<-rep(1:3,len=10) x<- 1:10 y<- x+s+rnorm(10) d<-data.frame(s,x,y) xyplot(y~x, groups=s,data=d,
2010 May 19
1
printing a dataframe by categories
I am looking for the following simple question. I have a data frame with names and numbers, divided in categories. I would like to produce a text file with page breaks, listing the names and numbers by category, and totalling the numbers. Example: Name<-LETTERS[1:6] Score<-rep(5:8,length.out=6) Form<-rep(1:2,each=3) x<-data.frame(Name,Score,Form) This gives approximately
2007 Aug 02
1
sapply?
I have to compare four different grape varieties proteome in two different years. I don't know what test would be more suitable for my data. I think that an anova two way can be usefull also if someone suggested me to perform a manova. In addiction, I can perform each test on a single protein a time, but I can't loose my whole life carrying out anova (I have more than 1000 protein to
2009 Dec 04
1
latex.table for table with character and numeric columns
Hallo, I have a dataset with one or two columns with character data and the rest with numeric data. Using latex.table from the quantreg package produced a table, but I cannot set the decimals. For instance: --- > x<-data.frame(Name=c("Jan","Piet","Jan"), V=c(1,2.991,3)) > latex.table(as.matrix(x),file="x",caption="x") >
2009 Jun 08
0
SMACOF joint configuration plot with bread data? (Michael Kubovy)
Hi Michael, with res.uc$conf you'll get the single configurations for each rater. You can use these to produce the plot you want to have. Best, Patrick r-help-request at r-project.org wrote: > Send R-help mailing list submissions to > r-help at r-project.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://stat.ethz.ch/mailman/listinfo/r-help >
2016 Dec 21
2
different compilers and mzR build fails
I'm not sure if I should bother you team with this, apologies in case it's a bother. I'm trying gcc 6.2.1 (from devtoolset-6) with R, everything seems to work just fine, except for mzR. Here is failed build: g++ -m64 -shared -L/usr/lib64/R/lib -Wl,-z,relro -o mzR.so cramp.o ramp_base64.o ramp.o RcppRamp.o RcppRampModule.o rnetCDF.o RcppPwiz.o RcppPwizModule.o RcppIdent.o
2016 Dec 21
1
different compilers and mzR build fails
I do this on a vanilla-clean R installation, simply: > biocLite("mzR") it pulls some deps in which compile fine, only mzR fails. ... meanwhile... I grabbed devtools and comiled github master - still fails. Should I attach build log? One should not send attachments to the list.. I don't suppose? On 21/12/16 17:06, Martin Morgan wrote: > mzR is a Bioconductor package, so
2004 Nov 23
3
Wiki Choices
I have selected 4 software packages for us to evaluate in order to decide on the best possible engine for the much-requested cAos Community Wiki. All 4 samples are now up and running for you to try out, play around with, and evalute. The URL's are as follows: https://caos.nplus1.net/c-arbre/ https://caos.nplus1.net/dokuwiki/ https://caos.nplus1.net/pwp/ https://caos.nplus1.net/tikiwiki/
2008 Jan 18
3
name resolution question
Can anyone explain the following behavior to me? [jgreen at t-rex ~]$ nslookup proteome.hpcc.triad.local Server: 127.0.0.1 Address: 127.0.0.1#53 Name: proteome.hpcc.triad.local Address: 10.2.149.1 [jgreen at t-rex ~]$ nslookup proteome.vlan88.hpcc.triad.local Server: 127.0.0.1 Address: 127.0.0.1#53 Name: proteome.vlan88.hpcc.triad.local Address: 192.168.88.179
2003 Mar 24
1
Install on Solaris 5.9
I'm trying to install R-1.6.2 on a Sparc machine running Solaris 5.9. I download and unpack R, run ./Configure from the R directory. Configure fails.The last line on the Configure script prints is 'Checking for Fortran 77 name-mangling scheme', This output and the config.log files are available at: http://www.phineas.pwp.blueyonder.co.uk/config.log and
2003 Apr 28
1
Sorry
On my previous message I gave incorrect URL's for the configuration output. They should be www.phineas.pwp.blueyonder.co.uk/config.log and www.phineas.pwp.blueyonder.co.uk/config.out Also this technique appears to work with Netscape on Solaris, but not IE on Windows. If this is not a sensible way to post diagnostic output let me know and I will post them in a different way. Phineas Campbell
2006 Mar 14
3
Can anybody tell me step by step how validate data on form?
Hi, I am new to ROR. I have created a form with foru fields in ROR. Now its working fine for all CRUD operations. But I want to validate data on form for "validates_presence_of" validation. How to do this? I tried it by putting line "validates_presence_of :description" . But its not working. Its throws error like "undefined method `each'' for
2012 Aug 10
3
Parsing large XML documents in R - how to optimize the speed?
Hello everyone, I would like to parse very large xml files from MS/MS experiments and create R objects from their content. (By very large, I mean going up to 5-10Gb, although I am using a 'small' 40M file to test my code.) My first attempt at parsing the 40M file, using the XML package, took more than 2200 seconds and left me quite disappointed. I managed to cut that down to around 40
2009 Dec 17
2
some help regarding combining columns from different files
Dear all, Here is my code which am using to combine 5th column from different data sets. Here is the function to do my job genesymbol.append.file <-NULL gene.column <- NULL readGeneSymbol <- function(files,genesymbol.column=5){ for(i in fnames){ temp <- read.table(fnames,header=T,sep="\t",stringsAsFactors=F,quote="\"")
2024 Apr 16
5
read.csv
Dear R-developers, I came to a somewhat unexpected behaviour of read.csv() which is trivial but worthwhile to note -- my data involves a protein named "1433E" but to save space I drop the quote so it becomes, Gene,SNP,prot,log10p YWHAE,13:62129097_C_T,1433E,7.35 YWHAE,4:72617557_T_TA,1433E,7.73 Both read.cv() and readr::read_csv() consider prot(ein) name as (possibly confused by