search for: dfx

Displaying 15 results from an estimated 15 matches for "dfx".

Did you mean: df
2011 Mar 24
5
subset and as.POSIXct / as.POSIXlt oddness
Dear R users, Given this data: x <- seq(1,100,1) dx <- as.POSIXct(x*900, origin="2007-06-01 00:00:00") dfx <- data.frame(dx) Now to play around for example: subset(dfx, dx > as.POSIXct("2007-06-01 16:00:00")) Ok. Now for some reason I want to extract the datapoints between hours 10:00:00 and 14:00:00, so I thought well: subset(dfx, dx > as.POSIXct("2007-06-01 16:00:00"),...
2015 Aug 02
3
ayuda con análisis de supervivencia
...anima a contestar, adjunto un link con los datos (.Rdata) y el script que he utilizado en el análisis. https://www.dropbox.com/s/d96itird8ms42yx/dataframe.Rdata?dl=0 <https://www.dropbox.com/s/d96itird8ms42yx/dataframe.Rdata?dl=0> sapply(levels(df0$bmi0),function (x){ #####SURVIVAL CURVE dfx=filter(df0,bmi0==x) surv2=Surv(dfx$bmi,dfx$MetS) km2=survfit(surv2~dfx$apoe4)##start.time=20,type='kaplan') plot(km2,lty=2:1,xlim=c(20,41),xlab='BMI at onset',main=x,mark.time = F) legend('bottomleft',c('E4','no-E4'),lty=2:1) cox=list(coxph(surv2...
2011 Aug 31
2
reshape/aggregate
Hi all, I apologize for this probably stupid question, but I really can't figure it out. I have a dataframe like this: group <- c(rep('A', 8), rep('B', 15), rep('C', 6)) time <- c(rep(seq(1:4), 2), rep(seq(1:5), 3), rep(seq(1:3), 2)) value <- runif (29, 1, 10) dfx <- data.frame (group, time, value) I want to calculate mean and standard deviation for all values that belong to the same group and the same time and end up with a dataframe with the columns time, group, mean and sd that contains the calculated values for every group at every time point only on...
2013 Apr 06
1
Creating quintiles on monthly basis
...LATILITY, unique(breaks), label = FALSE, na.rm =TRUE): invalid number of intervals Could you give me some advice on how to improve this code so that it works properly. It's relatively urgent. Many thanks! quintilesVolByMonth <- function(x){ months<-as.vector(unique(x$DATE)) dfx<-data.frame() for(n in seq(1,length(months))){ num<-5 print(paste("Appending month",months[n],sep="")) df<-subset(x,DATE==months[n]) breaks<-quantile(df$VOLATILITY,probs=seq(0,1, 1/num),na.rm=TRUE) df$volquintile <- cut(df$VOLATILITY,un...
2004 Nov 10
1
lattice: ordering the entries in a dotplot of a vector
I tried: n <- 9 x <- sample(n) names(x) <- LETTERS[1:n] dotplot( sort(x) ) The lines of the dotplot are not ordered according to the values of x (but according to the names of x). So I did: dfx <- data.frame( x=x, label=factor( names(x), names(x)[order(x)] ) ) dotplot( label ~ x, data=dfx ) So I got what I wanted. My question: Is there an easier solution for doing that? Wolfram
2007 Oct 02
4
Strange names when creating a data.frame: Difference between <- and =
This is just a curiosity question. Why do the two different syntaxes for df1 and df2 give such different results in the names(dfx)? Thanks df1 <- data.frame(nas = c("A", "B" , "B" ,"C" ,"B", "A", "D"),nums = c(3, 2, 1, 1, 2, 3, 7)) df2 <- data.frame(nas <- c("A", "B" , "B" ,"C" ,"B&q...
2005 Sep 21
3
Sort a data frame with respect to more than one variable
Dear All, How can I sort a data frame with respect to more than one variable? I know that for one variable X one may use: df[order(df$X), ] where df is the data frame containing X. Many thanks, Bernard --------------------------------- [[alternative HTML version deleted]]
2005 Aug 16
2
problem using model.frame()
Hi I'm having a problem with model.frame, encapsulated in this example: y1 <- matrix(c(3,1,0,1,0,1,1,0,0,0,1,0,0,0,1,1,0,1,1,1), nrow = 5, byrow = TRUE) y1 <- as.data.frame(y1) rownames(y1) <- paste("site", 1:5, sep = "") colnames(y1) <- paste("spp", 1:4, sep = "") y1 model.frame(~ y1) Error in model.frame(formula, rownames,
2012 Mar 01
1
[Bug 46810] New: Mesa Failing To Build
https://bugs.freedesktop.org/show_bug.cgi?id=46810 Bug #: 46810 Summary: Mesa Failing To Build Classification: Unclassified Product: Mesa Version: git Platform: x86-64 (AMD64) OS/Version: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/DRI/nouveau
2004 Nov 11
0
ROracle SQL length limitation
...110112813.GA4165 at s1x.local> Content-Type: text/plain; charset=us-ascii I tried: n <- 9 x <- sample(n) names(x) <- LETTERS[1:n] dotplot( sort(x) ) The lines of the dotplot are not ordered according to the values of x (but according to the names of x). So I did: dfx <- data.frame( x=x, label=factor( names(x), names(x)[order(x)] ) ) dotplot( label ~ x, data=dfx ) So I got what I wanted. My question: Is there an easier solution for doing that? Wolfram ------------------------------ Message: 4 Date: Wed, 10 Nov 2004 11:49:27 +0000 From: Paul JH Drak...
2018 Aug 23
3
git workflow, redux
Summary: I have tried the packaging-only repo and I really don't like it at all. I don't know how anyone copes with this - such hard work! IMO we should switch to git-debrebase. (As an alternative, if you don't trust git-debrebase because it's my own tool, gbp pq would be better, too, even though it's not as good as git-debrebase.) Particularly, now that we have more people
2003 Dec 01
0
No subject
...rs for samba printers I'm looking for any help in this. I have installed samba, it's up and running with file shares, printer shares. My setup is as follows: Mandrake 8.0 system ( intranet server ) 1 HP LaserJet 1100A printer on JetDirect 1 HP OfficeJet K 80 printer/fax on JetDirect 2 Epson DFX 8000 printers on JetDirects 1 Epson DFX 8500 printer on JetDirect 1 Kyocera FS 1000+ on JetDirect I want to setup these printers on my intranet server and redirect all printing from current Novell 4.11 server. I have succsesfully installed Kyocera and LJ 1100A using CUPS on intranet, and they work...
2003 Dec 01
0
No subject
...ubscribe> List-Archive: <http://lists.samba.org/pipermail/samba/> Date: Sun Sep 9 02:30:08 2001 X-Original-Date: Sun, 09 Sep 2001 11:28:01 +0200 I'm having strange problem with APW. I have 8 printers connected to samba server and all work great. For all of them ( HP LJ4P, LJ6P, Epson DFX 8000... ) I could easily install printer drivers for Win9x, WinNT, 2k. Only when I try to install drivers for DeskJet 895Cxi I can't install additional drivers for Windows 98 and WinNT. Win2k drivers are installed and ok. I've downloaded correct drivers for this printer ( marked as "fo...
2008 Jun 30
4
Rebuild of kernel 2.6.9-67.0.20.EL failure
Hello list. I'm trying to rebuild the 2.6.9.67.0.20.EL kernel, but it fails even without modifications. How did I try it? Created a (non-root) build environment (not a mock ) Installed the kernel.scr.rpm and did a rpmbuild -ba --target=`uname -m` kernel-2.6.spec 2> prep-err.log | tee prep-out.log The build failed at the end: Processing files: kernel-xenU-devel-2.6.9-67.0.20.EL Checking
2010 Aug 16
2
Devise Nested Resources
I''m working on a new Rails (v3.0.0.rc) application using the Devise (v1.1.1) gem. In my application I have setup a User model which includes the person''s e-mail address and name. I have also setup the following models that I''d like to attach to the User: - Address (street, city, state, zip code) - Interest (name) - Donation (date of donation, amount) My question is