Displaying 20 results from an estimated 500 matches similar to: "Use of argument '...'"
2007 May 15
1
Efficiently reading random lines form a large file
I need to read two different random lines at a time from a large
ASCII file (120 x 296976) containing space delimited 0-1 entries.
The following code does the job and it's reasonable fast for my needs:
lineNumber = sample(120, 2)
line1 = scan(filename, what = "integer", skip=lineNumber[1]-1, nlines=1)
line2 = scan(filename, what = "integer",
2006 Jul 31
2
math symbols and text with mtext()
Dear R users,
Two questions:
1) Is there a way to simplify the mtext() line below ?
beta=c(1,-1)
m=5
plot(1)
mtext( bquote(paste( beta == .(paste( "(", paste(beta, collapse=", "), ")" )) )), outer=TRUE,line=-3)
2) How do I get the embedded carriage return "\n" below to work, i.e for the text that follows it to appear on the next line?
beta=c(1,-1)
m=5
2006 Jun 23
1
numeric variables converted to character when recoding missing values
Dear R helpers,
I have a data frame where missing values for numeric variables are coded as
999. I want to recode those as NAs. The following only partially succeeds
because numeric variables are converted to character in the process:
df <- data.frame(a=c(999,1,999,2), b=LETTERS[1:4])
is.na(df[2,1]) <- TRUE
df
a b
1 999 A
2 NA B
3 999 C
4 2 D
is.numeric(df$a)
[1] TRUE
2007 Jun 19
3
Controlling text and strip arrangement in xyplot
I've searched the archives and read the xyplot help but can't figure
out the 2 lattice questions below?
Consider:
library(lattice)
DF <- data.frame(x=rnorm(20), y=rnorm(20), g1=rep(letters[1:2], 10),
g2=rep(LETTERS[1:2], each=10),
g3=rep(rep(letters[3:4],each=5),2))
xyplot(y ~ x | g1 + g2, groups=g3, data=DF)
1) Is there a way to get one strip per row and column
2007 May 25
1
Speeding up resampling of rows from a large matrix
I'm trying to:
Resample with replacement pairs of distinct rows from a 120 x 65,000
matrix H of 0's and 1's. For each resampled pair sum the resulting 2
x 65,000 matrix by column:
0 1 0 1 ...
+
0 0 1 1 ...
_______
= 0 1 1 2 ...
For each column accumulate the number of 0's, 1's and 2's over the
resamples to obtain a 3 x 65,000 matrix G.
For those
2003 Feb 28
0
How do I find the first derivative from the cubic natural spline
Hi, Everyboday,
Does anybody know how to get the first derivative form the cubic natural
spline matrix?
Thanks !!!
Jassy
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Nuoo-Ting (Jassy) Molitor, MS, Junior Statistician
Division of Biostatistics
Department of Preventive Medicine
University of Southern California Tel: (323) 442-2584
1540 Alcazar St., CHP-210F Fax:
2007 Oct 18
2
image quality of plot inserted into PowerPoint
Dear R-helpers,
I need to insert an R (2.6.0) generated plot containing semi-transparent colors into PowerPoint (2002). When I directly paste it from the clipboard or insert it as (enhanced) Metafile (I'm on Windows XP) the semi-transparent colors don't show. When I insert it at as a Bmp, Png or Jpeg and then convert to PDF the semitransparent colors do show but the quality of the image
2008 Oct 30
3
SIP # DTMF
Hi. In creating a custom extension, and dialing
SIP/222/333#444, seems the party receives only "333"
What should I do to send the # symbol? or better, where can I find that
syntax? Googled a lot, nothing.
Thanks!
--
Rodolfo Alcazar
Responsable red y datos
Deutsche Gesellschaft f?r
Technische Zusammenarbeit (GTZ) GmbH
Programa de Apoyo a la Gesti?n P?blica Descentralizada y
Lucha
2008 Oct 16
2
Triggering a call from bash
Hi.
Does anyone knows how to trigger a phone call from a bash command?
Thx!
--
Rodolfo Alcazar
Responsable red y datos
Deutsche Gesellschaft f?r
Technische Zusammenarbeit (GTZ) GmbH
Programa de Apoyo a la Gesti?n P?blica Descentralizada y
Lucha Contra La Pobreza - PADEP
Av. S?nchez Lima 2226
La Paz, Bolivia
Tel: +591 22417628 (121)
Fax: +591 22417628 (126)
Web: www.padep.org.bo
Email:
2006 Sep 13
2
Retrieving value computed in inner function call
Dear R users,
Consider the following example function:
f = function(a,b) {
g = function(x) a*x + b
h = function(x) g(x)^2 + x^2
opt = optimize(h,lower = -1, upper = 1)
x.min = opt$minimum
h.xmin = opt$objective
g.xmin = g(x.min)
return(c(x.min, h.xmin, g.xmin))
}
In my real problem the function that plays the role of "g" is costly
to compute. Now, to
2008 Nov 01
1
SPA3102 interdigit timers bug?
Hi. I have a SPA3102 updated with with Software Version: 5.1.7(GW).
I have this settings on Voice/Regional:
Interdigit Long Timer: 10
Interdigit Short Timer: 3
Anyway, when hooking up (without dialing anything), the timeout starts
after 3 seconds. It's like the Long Timer is unused. After dialing, the
Short Timer is also used to timeout.
Is that normal? Am I missing something?
Thanks.
--
2008 Oct 14
7
Panasonic x Asterisk if I can emulate Panasonic fast!
Im a 3-days-asterisk-newbie. In 3 weeks, I must have a PBX installed in
a new office of ours: Panasonic or Asterisk. Asterisk would be, if I can
emulate some Panasonic functions on Asterisk fast, to convince the
executives.
What I have done until now: Bought 1 Linksys pap2 (2 FXS), 1 Linksys
SPA3102 (1 FXS + 1 FXO) for making asterisk tests. Configured
Asterisk/Fedora 9 so I can make SIP->PSTN
2008 Nov 17
1
Deny FOP originated calls
Hi,
I just want to deny FOP originated calls in TRIXBOX. All remaining
operations (hanging up, transferring, etc) should go. Where is that
option in TRIXBOX (already googled, nothing, checked config files but
cant find that option)?
Thanks a lot.
--
Rodolfo Alcazar
Responsable red y datos
Deutsche Gesellschaft f?r
Technische Zusammenarbeit (GTZ) GmbH
Programa de Apoyo a la Gesti?n P?blica
2015 Jul 30
2
POSIX-Share fails with NFS-mounts
Hi there,
I'm sure this must have been discussed before, but I can't find anything that addresses exactly my problem in the archives.
The problem I ran into is, that a samba-share relying on POSIX file-permissions stops working as soon as the shared folder is a NFS-mount itself.
In that case, it is no longer possible for any user to access files or folders.
So in my example, if
2018 Dec 18
3
Samba-created files with POSIX ACLs gaining execute bit
Hai,
The docs shown are a bit old, yes, i suggest start reading these.
https://wiki.samba.org/index.php/Setting_up_a_Share_Using_Windows_ACLs
https://wiki.samba.org/index.php/Setting_up_a_Share_Using_POSIX_ACLs
Look at the smb.conf man and search for acl ( or exec )
Greetz,
Louis
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens
2008 Feb 08
2
R version of SAS Proc Varclus
I am interested in finding an R version of SAS "Proc Varclus". SAS's Proc Varclus implements an oblique cluster analysis based on principal components. How can I find out if R has a package that runs the same algorithm implemented in SAS "Proc Varclus"?
Thank you,
Mary Helen Black
__________________________
Mary Helen Black, M.S.
Keck School of Medicine of USC
2009 Feb 23
1
[S] ASA Southern California Chapter Applied Statistics Workshop
The workshop organizing committee of the Southern California Chapter
of the American Statistical Association announces the 28th Annual
Workshop in Applied Statistics.
Professor Colin Cameron from the department of Economics at UC Davis
will give a one-day workshop titled "Advances in Count Data Regression."
The event will take place on Saturday, March 28, 2009 at UCLA.
Details on
2011 Feb 14
1
conditional value assignment
Dear R-Help,
I am trying to compute a new variable, let's call it "target cannon orientation (tco)" based conditionally on old variables, "TargetColor," "CannonOriB," and "CannonOriR." For every case in the data set, if TargetColor is "B" then I want tco to equal the value for that case of CannonOirB, else CannonOriR. I've tried writing
2011 Apr 10
2
list to data frame
I need to make a data frame out of the data that I currently have in a list. This works, but is ugly:
ineffData<-rbind(ineffFilesList[[1]], ineffFilesList[[2]], ineffFilesList[[3]], ineffFilesList[[4]], ineffFilesList[[5]], ineffFilesList[[6]], ineffFilesList[[7]], ineffFilesList[[8]], ineffFilesList[[9]], ineffFilesList[[10]], ineffFilesList[[11]], ineffFilesList[[12]], ineffFilesList[[13]],
2008 Sep 10
2
trouble printing from graphics device in R 2.7.2
Hi,
I've been using R for many years and have always tried to keep my R
version up to date, and when I switched from 2.7.1 to 2.7.2 I'm
suddenly having trouble printing from the graphics device. I have
Windows XP, and installed both versions of R from the binaries. If I
start 2.7.2 and simply do:
> plot(1:10)
the default R Graphics Device window opens as usual. However, when I