similar to: Reading multiple tables from file

Displaying 20 results from an estimated 400 matches similar to: "Reading multiple tables from file"

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 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),
2007 Aug 01
2
Simple table with frequency variable
Hallo, Im trying to find out how to tabulate frequencies of factors when the data have a frequency variable. e,g: i<-rep(1:5,2) j<-rep(1:2,5) N<-10*i+j table(i,j) gives a table of ones as each combination occurs only once. How does one get a table with the corresponding N's? Thanks! Gerrit. -- Gerrit Draisma Department of Public Health Erasmus MC, University Medical Center
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
2001 Nov 20
2
rename file1 -> file2: No such file or directory
I'm rsyncing from an linux box to a win2k box with a precompiled version of rsync for win2k. durring the procces he gives me a lotte of the following errors (with different filenames): rename realother/Maildir/cur/.1005882149.8001_0.nyx.wildape,S=3080:2,.001002 -> realother/Maildir/cur/1005882149.8001_0.nyx.wildape,S=3080:2, : No such file or directory I user the command: rsync -cru
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,
2011 Sep 22
2
Proportions of a vector
> > Hi all, > I have a vector xm say: xm = c(1,2,3,4,5,5,5,6,6) > > I want to return a vector with the corresponding probabilities based on the > amount of times the numbers occurred. For example, I should get the > following vector for xm: > prob.xm = c(1/9, 1/9, 1/9, 1/9, 3/9, 3/9, 3/9, 2/9, 2/9) > Using prop.table gives: Usage (with table) > prob.xm <-
2012 Feb 01
0
Bug#658305: Prevent silently failing on duplicate vifname
Package: xen-utils-common Version: 4.1.2-3 Severity: normal When configurating a duplicate custom vifname for interfaces in the Xen dom0 that are added to a bridge (which is obviously a configuration error), the hotplug scripts fail silently to rename the new vifX.0 to the custom vifname, if it's already existing. The result of this, is that the domU will start normally, but no network
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 Mar 19
2
Ubuntu edgy and wine
I have installed ubuntu edgy with latest patches and wine 0.9.29. I use a application called osfinancials, www.osfinancials.org, this installs, but does not run. Strangly enough, it does run when using suse and wine, so it seems to be related to the combination of ubuntu edgy and wine. When I run the exe, osfinancials.exe, I get the following errors: sudo wine osFinancials.exe
2008 Sep 26
1
How to update a column in a dataframe, more simply...
Hello, I would like to be able to update an existing column in a dataframe, like this... data$score[data$type=="1" & data$year=="2001"]<-data$score * 0.111 data$score[data$type=="1" & data$year=="2002"]<-data$score * 0.222 data$score[data$type=="1" & data$year=="2003"]<-data$score * 0.333 ...but, if possible,
2011 Aug 24
4
Column of probabilities
Hi all, I have a vector xm say: xm = c(1,2,3,4,5,5,5,6,6) I want to return a vector with the corresponding probabilities based on the amount of times the numbers occurred. For example, I should get the following vector for xm: prob.xm = c(1/9, 1/9, 1/9, 1/9, 3/9, 3/9, 3/9, 2/9, 2/9) Any help greatly appreciated. -- Thanks, Jim. [[alternative HTML version deleted]]
2006 Sep 21
1
Problems with making a complex graphic
En innebygd og tegnsett-uspesifisert tekst ble skilt ut... Navn: ikke tilgjengelig Nettadresse: https://stat.ethz.ch/pipermail/r-help/attachments/20060921/b479a8df/attachment.ksh
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") >
2010 Feb 17
2
extract the data that match
Hi r-users,   I would like to extract the data that match.  Attached is my data: I'm interested in matchind the value in column 'intg' with value in column 'rand_no' > cbind(z=z,intg=dd,rand_no = rr)             z  intg rand_no    [1,]  0.00 0.000   0.001    [2,]  0.01 0.000   0.002    [3,]  0.02 0.000   0.002    [4,]  0.03 0.000   0.003    [5,]  0.04 0.000   0.003    [6,] 
2012 Jul 02
1
How to get prediction for a variable in WinBUGS?
Dear all,I am a new user of WinBUGS and need your help. After running the following code, I got parameters of beta0 through beta4 (stats, density), but I don't know how to get the prediction of the last value of h, the variable I set to NA and want to model it using the following code.Does anyone can given me a hint? Any advice would be greatly appreciated.Best
2011 Oct 20
3
Survival analysis
Hello, I need some results from the survival analysis of my data that I do not know whether exist in Survival Package or how to obtain if they do: 1. The Mean survival time 2. The standard error of the mean 3. Point and 95% Lower & Upper Confidence Intervals estimates Any help will be greatly appreciated. Cem [[alternative HTML version
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/
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