search for: cafanselmo12

Displaying 6 results from an estimated 6 matches for "cafanselmo12".

2009 Jun 26
5
(performance) time in Windows vs Linux
Hi, all. I began to migrate my R codes from Windows to Linux and surprised me with an old question. I simplified the problem and made a little test to compare times at same computer and the Linux time is worse (not so little) than Windows time: 28 vs 53 seconds. I make an example (below) to facilitate all to see the difference. I also build from source (it's my first time) a version of R to
2008 Oct 01
3
"tapply versus by" in function with more than 1 arguments
Hi. I searched the list and didn't found nothing similar to this. I simplified my example like below: #I need calculate correlation (for example) between 2 columns classified by a third one at a data.frame, like below: #number of rows nr = 10 #the third column is to enforce that I need correlation on two variables only dataf =
2006 Apr 19
1
apply(table) miss factor structure
Hi, all. I didn't find something similar to this problem in past list. I have a data frame (named restr) where some columns are factors, like you can see: > table(restr[,"p1"]) 0 1 2 3 4 5 0 26 1 0 1 0 > table(restr[,"p2"]) 0 1 2 3 4 5 6 0 13 11 1 2 1 0 When I use apply, the factor structure is missed: >
2006 May 17
1
changing single to double backslash
Hi, all. I didn't find something like this in the faq list: I wound like build a function to substitute single backslashes in a string to double: ChangeSlash<-function(dir) ... so ChangeSlash("C:\mydocs\test") returns "C:\\mydocs\\test" Thanks, C. _______________________________________________________ Abra sua conta no Yahoo! Mail: 1GB de espa?o, alertas
2008 Oct 02
0
[solutions] "tapply versus by" in function with more than 1 arguments
Thanks to all. I summarized (in order to thank the list) the solutions to help future workers searching subjects like this at R help.   # Number of rows nr = 10 # Data set dataf = as.data.frame(matrix(c(rnorm(nr),rnorm(nr)*2,runif(nr),sort(c(1,1,2,2,3,3,sample(1:3,nr-6,replace=TRUE)))),ncol=4)) names(dataf)[4] = "class" #----------------------------------------------------- #Solution 1:
2005 Feb 17
1
short plots: lwd, margin and postscript behavior
Hi all. I'm working with a short plot (3x3 inches), but the results (via postscript command) are not nice. The lwd command don't affect the lines (that are very large) and the margins don't change using oma, mai, mar, ... Below I put an example. Moreover, save the graphics via postscript command isn't working well (see the attached ps). Thanks by the help, Cezar Freitas.