search for: datset

Displaying 10 results from an estimated 10 matches for "datset".

Did you mean: dataset
2015 May 29
3
Mi script R es muy lento
...<- data.frame(ListaABP); #+++++++++++++++++++++++++++++++++++++++++++++++++ Este código tardaba 3 horas en ejecutarse. La solución que me han propuesto es usar data.table en lugar de data.frame y ahora tarda 1 segundo aproximadamente en ejecutarse y es este: #------------- library(data.table) datSet <- fread("Set-A.csv") resOut <- datSet[, .(ValMax=max(Value), ValMin=min(Value), ValAvg=mean(Value)), by=c("RecordID","Parameter")] resOut$RecordID <- as.factor(resOut$RecordID) setkey(resOut, RecordID) head(datSet) datOutcome <- fread("Outcomes-A.csv&...
1999 Aug 24
1
package mlbench updated
Hi, Evgenia and I have copied an updated version of the mlbench package to CRAN which contains several new data sets. We have also changed some of the variable names to avoid name conflicts. Best, -- ------------------------------------------------------------------- Friedrich Leisch Institut f?r Statistik Tel: (+43 1) 58801 10715 Technische
1999 Aug 24
1
package mlbench updated
Hi, Evgenia and I have copied an updated version of the mlbench package to CRAN which contains several new data sets. We have also changed some of the variable names to avoid name conflicts. Best, -- ------------------------------------------------------------------- Friedrich Leisch Institut f?r Statistik Tel: (+43 1) 58801 10715 Technische
2015 Jun 01
2
Mi script R es muy lento
...>> >> Este código tardaba 3 horas en ejecutarse. La solución que me han >> propuesto >> es usar data.table en lugar de data.frame y ahora tarda 1 segundo >> aproximadamente en ejecutarse y es este: >> >> #------------- >> library(data.table) >> datSet <- fread("Set-A.csv") >> resOut <- datSet[, .(ValMax=max(Value), ValMin=min(Value), >> ValAvg=mean(Value)), by=c("RecordID","Parameter")] >> resOut$RecordID <- as.factor(resOut$RecordID) >> setkey(resOut, RecordID) >> head(datSet)...
2013 Nov 21
1
how can I import a number of datsets in a folder in my working directory to a list in R
Hi, Suppose, if I create 15 files in my working directory. set.seed(48) lapply(1:15,function(i) {m1 <- matrix(sample(1:20,1686*2,replace=TRUE),nrow=1686,ncol=2); write.table(m1,paste0("file_",i,".txt"),row.names=FALSE,quote=FALSE)}) ?D <-dir() D1 <- D[order(as.numeric(gsub("\\D+","",D)))] D1 ?res <- t(sapply(D1,function(x) {x1<-
2014 Nov 14
3
Cómo aplicar weights a las observaciones en un GLM binomial
...ema. Si realizo un GLM con ausencia/presencia como variable dependiente no siendo ésta proporcional entre 1 y 0 debo ponderar las observaciones, lo cuál creo que se realiza añadiendo el vector "weights" a la función, quedando asi: modelo <- glm(v_dependiente ~ v1 + v2 + v3, data = datset, weights="x", family = binomial (link=logit) Mi duda es cómo calcular el factor de ponderación de las presencias y las ausencias para crear el vector que pueda introducir en la función weights. Muchas gracias! Un saludo *-------------* *Isabel García Barón* [[alternative HTML version...
2007 Jun 14
0
nlsList problems: control option does not effect output and strange environment search
...s derror) return(Y)})) params contains different parameters for 200 persons in 4 groups. Next I sample for each person five observations one at the start, one at the end and three randomly in between. Now I get the following error messages: testnlslist2<-nlsList(SSfpl,groupedData(Y~Time|group, datset)) Error in nls(y ~ cbind(1, 1/(1 + exp((xmid - x)/exp(lscal)))), data = xy, : step factor 0.000488281 reduced below 'minFactor' of 0.000976562 Error in nls(formula = formula, data = data, control = control) : singular gradient For the first error it could be that...
2006 Nov 16
3
Newbie problem ... Forest plot
Hello! I have some data stored into 2 separate csv file. 1 file (called A.csv) (12 results named Group1, Group2, Group3, etc...) odds ratios, 2 file (called B.csv) 12 corresponded errors. How to import that data into R and make forest plot like I saw inside help file Rmeta and meta with included different font colors and names trough X and Y axis. I know for meta libb ... out <-
2007 Jun 14
2
function with xyplot
Hi, I'm a new user trying to switch from SAS, so sorry for the beginner's question: Suppose I have a dataframe DF that contains variables X,Y,Z. I am trying to write a function like this: myplot <- function(varname){xyplot(varname ~ Y, group = Z, data = DF)}. The problem is then how to enter X into my function. If I write myplot("X") I get an error because the argument is a
2013 Feb 04
1
Problem loading hdf5 file
*Hi everyone, I am a new subscriber, so I hope I'm posting in the right way. I need to load a hdf5 file, so I installed the hdf5 libraries ad the hdf5 R package; in downloaded a small sample file from the hdf5 website and I could correctly load it. But when I try to load my file: * require(hdf5) rm(list=ls()) ls() hdf5load("my_file.h5", verbosity=3) *I get this error message: *