search for: horta

Displaying 20 results from an estimated 23 matches for "horta".

Did you mean: sorta
2011 Jan 03
7
Saving objects inside a list
...1] "x" "y" "z" and suppose I want to put these objects inside a list object, say object.list <- list() without having to explicitly write down their names as in object.list$x = x object.list$y = y object.list$z = z Is this possible? Thanks in advance, Eduardo Horta [[alternative HTML version deleted]]
2010 Nov 17
2
Numerical integration
Hi! I was wondering if there are any other functions for numerical integration, besides 'integrate' from the stats package, but which wouldn't require the integrand to be vectorized. Oh, and must be capable of integrating over (-inf,+inf). Thanks in advance, Eduardo Horta [[alternative HTML version deleted]]
2010 Dec 13
2
Integration with LaTex and LyX
Hello, Are there any packages which allow for a good integration between R and LaTex / LyX? I'm interested mainly in automatic (automagic?) imports of plots/graphics. Thanks in advance and best regards, Eduardo de Oliveira Horta [[alternative HTML version deleted]]
2010 Nov 16
2
Vectors out of lists?
...)) } but obviously this doesn't work, since Y[[1:n]] is not allowed at all. Any elegant suggestions? I really would like to avoid something like Ybar<-function(u){ for (i in 1:n){ Ybar<-Ybar + Ybar[[i]](u) } Ybar<-1/n*Ybar } Thanks in advance! Best regards, Eduardo Horta [[alternative HTML version deleted]]
2010 Nov 15
3
Defining functions inside loops
...if don't remove the object i, it ends the loop with value equal to 10 and then f[[1]](t)=f[[2]](t)=...=f[[10]](t)=t^2+10. I am aware that I could simply put f<-function(u,i){ f<-t^2+i } but that's really not what I want. Any help would be appreciated. Thanks in advance, Eduardo Horta [[alternative HTML version deleted]]
2011 Jan 05
3
Adding lines in ggplot2
...colour="red") Error: ggplot2 doesn't know how to deal with data of class numeric but it seems that the "data frame restriction" is really very restrictive here. Any solutions that don't imply using as.data.frame to my data? Thanks in advance, and best regards! Eduardo Horta [[alternative HTML version deleted]]
2010 Dec 27
2
Finding indexes of minum and maximum elements of an array
...] 7 5 , , 2 [,1] [,2] [1,] 1 3 [2,] 2 4 then > min(H) [1] 1 and > max(H) [1] 8 Say "idx" were the function I'm looking for. Then, what I'm expecting is > idx(min(H)) [1] 1 1 2 > idx(max(H)) [1] 1 1 1 Thanks in advance, Eduardo de Oliveira Horta [[alternative HTML version deleted]]
2010 Nov 27
3
Two time measures
...ervations (this reflects the fact that the market may open and close at varying daytimes). I have guessed that a list would be a better way to store my data, since a matrix would be filled with NA's and that is not exactly what I'm looking for. Thanks in advance, and best regards, Eduardo Horta [[alternative HTML version deleted]]
2010 Nov 16
2
Integrating functions / vector arithmetic
...ple 'solutions', for example to set g<-function(u){ vec1<-drop(coeff) vec2<-drop(zeta(1:4)(u)) g<-drop(crossprod(coeff,zeta(1:4)(u))) } as well as using the %*% operation, but these won't solve my problem. Any suggestions would be welcome. Thanks in advance, Eduardo Horta [[alternative HTML version deleted]]
2011 Jan 27
2
pdf greek letter typos
...ain=expression((list(mu,sin(mu^2))))) then the characters are displayed correctly. I would like to know if there is any sort of fixes to this problem, such as specifying the symbols font or embedding fonts into the pdf file. Any help would be welcome. Thanks in advance and best regards, Eduardo Horta -------------- next part -------------- A non-text attachment was scrubbed... Name: temp.pdf Type: application/pdf Size: 5726 bytes Desc: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110127/65b8ba1c/attachment.pdf>
2011 Jan 11
1
Alphabetic labels on multi-plot graphics
...generally: is it possible to iteratively (as in a loop) add alphabetic titles to multi-plot graphics when the range over which 't' above varies is of an arbitrary length? It is important that ann=FALSE, because I don't want the axes labels. Thanks in advance, and best regards. Eduardo Horta
2010 Dec 23
1
Removing elements of a list object
...eah!") and want to remove the $second element of that list. My first try was, of course, > rm(x$second) which gave me the following error message > Error in rm(x$second) : ... must contain names or character strings Any ideas here, folks? Best regards, and Merry Christmas! Eduardo Horta [[alternative HTML version deleted]]
2011 Feb 19
1
Building an array from matrix blocks
...(for (j in 1:10000) {X <- matrix(0, n-p, n-p); for (i in 1:(p+1)) X <- X + B[,,i]}) user system elapsed 0.27 0.00 0.26 > system.time(for (j in 1:10000) {X <- apply(B,c(1,2),sum)}) user system elapsed 1.82 0.02 1.86 Thanks in advance, and best regards, Eduardo Horta > sessionInfo() R version 2.11.1 (2010-05-31) x86_64-pc-mingw32 locale: [1] LC_COLLATE=Portuguese_Brazil.1252 LC_CTYPE=Portuguese_Brazil.1252 [3] LC_MONETARY=Portuguese_Brazil.1252 LC_NUMERIC=C [5] LC_TIME=Portuguese_Brazil.1252 attached base packages: [1] stats graphics grDevices utils...
2011 Jan 06
1
Cairo pdf canvas size
Hello, I want to save a pdf plot using Cairo, but the canvas of the saved file seems too large when compared to the actual plotted area. Is there a way to control the relation between the canvas size and the size of actual plotting area? Thanks in advance, and best regards, Eduardo Horta [[alternative HTML version deleted]]
2010 Jul 21
1
how to unsubscribe
Hello, I need to unsubcribe this email to the R help mailing list because I need to create an email only for this mailing list. My email account doesn't have that much space anymore and I don't have access to this every day. How can I do that? Thanks a lot -- Bárbara H. Costa Marine Biologist Researcher SCIAENA - Marine Sciences and Cooperation www.sciaena.org ISPA |
2011 Feb 22
2
Plotting a functional time series
Hello, I'm willing to plot a sequence of densities on a 3d graph, something like ----------------------------------------------------------------- x <- sapply(1:10, function(i)rnorm(1000)) f <- sapply(1:10, function(i)density(x[,i], from=-5,to=5)$y) grid <- density(x[,1], from=-5,to=5)$x win.graph() persp(grid1, 1:10, f,theta=-50, phi=30, d=2)
2009 May 04
1
help_if command_new column
Hi everyone, Do you know how to apply a If command to a vector in a data.frame, creating a new column? Example: If one species has "1" value in the Abundance column then it is "Solitary". If the abundance is higher than 1, is "School". I did: aggregationFunction <-function(x){ (if (x>1) a<- 'School' else a<-
2010 Jul 14
2
count - help
Hi, I have a data frame with several factors and I want to count the occurrences of an event resulting from an interaction of some factors. I tried to do several tables (and then converting to d.f and then merge them by one factor and the freq Tab1 <- merge (BPorAmost,BPorSector,by=c('Sample','Freq')) Tab1 <- merge (Tab1,BPorDist,by=c('Sample','Freq')) Tab1
2011 Jan 28
6
R-/Text-editor for Windows?
Tinn-R (http://www.sciviews.org/Tinn-R/) is one of the topmost suggestions when googling an R-(text-)editor for Windows. However, to me it appears dissappointing that Tinn-R does not handle utf-8 (mac-roman, or any other) encoded R-scripts or, in general, text files. Besides Emacs and the R built-in editor, could you recommend a good editor for Windows, even some commmercial for a small
2009 May 05
1
self organizing map advice for categorical data
...Handling Error Thrown After source(...), read.table(...), and readLines(...) (Jason Rupert) 34. Re: normality test for large a large dataset ? (Greg Snow) 35. Cox Proportional Odds Model (Steve Jaffe) 36. Code of the max() function (Paul Smith) 37. help_if command_new column (barbara horta e costa) 38. Java-R (andrea.spano at quantide.com) 39. Re: Hierarchical Diagram of Networks in sna or otherwise? (jebyrnes) 40. Re: help_if command_new column (David Winsemius) 41. Re: Surface for R outside of R (Francisco J. Zagmutt) 42. Producing a legend successfullly (Steve Murr...