search for: fulldata

Displaying 8 results from an estimated 8 matches for "fulldata".

2001 Jul 17
1
enable fulldata journaling
Hi, well I've deployed ext3 on two machines already and so far it does its job excellently at no (for me) noticable performance loss. I hope it gets incorporated into stock kernels by Linus soon. Anyways I've been hearing about ext3 supporting full-data journalling on a per-file basis but couldn't find any detailed info about it. Even tried grep'ing throught the source. How
2008 Apr 11
1
SQL INSERT using RMySQL
...ilently dropped. I did manage to get things working by doing the following: ## get the last used id value (primary key) maxId <- dbGetQuery(con, "SELECT MAX(id) FROM past_purchases")[1,1] maxId if(is.na(maxId)) maxId <- -1 ## add the new unique primary keys as row names rownames(fulldata) <- maxId + 1:nrow(fulldata) ## now write out the data dbWriteTable(con, "past_purchases", value=fulldata, overwrite=FALSE, append=TRUE, row.names=TRUE) Is there a better way to accomplish this task? (Session info is below) Thanks!, -Greg Gregory R. Warnes, Ph.D. Associate Pro...
2008 Jun 06
2
Merging two dataframes
...I can use the merge command to merge two datasets together this but i still get some odd results, i'm using the code below; ETC <- read.csv(file="CSV_Data2.csv",head=TRUE,sep=",") 'SURVEY <- read.csv(file="survey.csv",head=TRUE,sep=",") 'FullData <- merge(ETC, SURVEY, by.SURVEY = "uid", by.ETC = "ord") The merged file seems to have 1800 cases while the ETC data file only has 67 and the SURVEY file only has 28. (Reading the help it looks as if it merges 1 case with all cases in the other file, which is not what i wan...
2011 Jul 24
1
Histogram of a dataframe subset failing
Like most help forum users, I'm very new to R. I've been having this problem: I started with a dataframe called fullData. With the subset command, I split it into two separate dataframes, soloData and teamData. The hist() function works when I use... hist( subset(fullData, fullData$playlist_id==4 )$deaths) ...the exact call to subset() that I used to create each dataframe. However, when I input, hist(soloData$de...
2012 Sep 17
6
help with calculation from dataframe with multiple entries per sample
Hi  I have a dataframe similar to: >Sample<-c(1,1,1,2,2,2,3,3,3) >Time<-c(1,2,3,1,2,3,1,2,3) >Mass<-c(3,3.1,3.4,4,4.3,4.4,3,3.2,3.5) >mydata<-as.data.frame(cbind(Sample,Time,Mass))   Sample Time Mass 1      1    1  3.0 2      1    2  3.1 3      1    3  3.4 4      2    1  4.0 5      2    2  4.3 6      2    3  4.4 7      3    1  3.0 8      3    2  3.2 9      3    3
2013 Jan 03
3
Small changes to big objects (1)
Martin Morgan commented in email to me that a change to any slot of an object that has other, large slot(s) does substantial computation, presumably from copying the whole object. Is there anything to be done? There are in fact two possible changes, one automatic but only partial, the other requiring some action on the programmer's part. Herewith the first; I'll discuss the second
2009 Jun 24
1
Coxph frailty model counting process error X matrix deemed singular
...of the terminal event time and the censoring time. I then repeat for each subject. I then try to analyze the data like this: coxph(Surv(start,end,censorind)~binary+uniform+frailty(subject,distribution="gauss", method="reml"), method="breslow", singular.ok=FALSE, data=fulldata) Where start is the previous recurrent time, end is the current recurrent time, censorind is the censoring indicator for the current recurrent time, and subject is the current observation. There does not appear to be an issue with the binary variable taking a particular value for every observed e...
2008 Jun 06
6
Subsetting to unique values
I want to take the first row of each unique ID value from a data frame. For instance > ddTable <- data.frame(Id=c(1,1,2,2),name=c("Paul","Joe","Bob","Larry")) I want a dataset that is Id Name 1 Paul 2 Bob > unique(ddTable) Will give me all 4 rows, and > unique(ddTable$Id) Will give me c(1,2), but not accompanied by the name column.