Displaying 12 results from an estimated 12 matches for "converty".
Did you mean:
converts
2008 Nov 19
1
Buggy trellis.focus() with xyplot ?
...f the pads in the
follwoing lines :
leftPad <-
convertX(sum(glayout$page.layout$widths[1:(colRange[1]-1)]), "npc",
valueOnly = TRUE)
rightPad <-
convertX(sum(glayout$page.layout$widths[(colRange[2]+1):layCols]), "npc",
valueOnly = TRUE)
topPad <-
convertY(sum(glayout$page.layout$heights[1:(rowRange[1]-1)]), "npc",
valueOnly = TRUE)
botPad <-
convertY(sum(glayout$page.layout$heights[(rowRange[2]+1):layRows]), "npc",
valueOnly = TRUE)
I was succesful in tweaking the follwing lines adding arbitrary constants to
make it w...
2005 Oct 20
3
problème d'import de fichier
hello!
je veux importer un fichier de donnees excel que j'ai au prealable
converti en fichier txt avec separateurs tab, fichier de la forme entree
simple (suite de colonnes contenant des variables).
Voila ma ligne de commande :
> poussins <- read.table("poussins.txt", header=T, sep="\t")
et sa reponse
Erreur dans scan(file = file, what = what, sep = sep, quote =
2006 Aug 30
1
Datetime
Hi all,
I'm getting confused by date handling.
I wish to read a date from a file wich is a number of seconds since 1970
(POSIXct).
Then i wish to convert this date to a human readable form (POSIXlt)
By example :
ctDate<-1132963200 #"Wed Aug 30 14:24:37 2006"
is(ctDate)
[1] "numeric" "vector"
ctDate isn't a numeric vector, it is a
2010 Mar 27
0
Error lm.fit(...) - pairs cointegrated trading
Hello guys,
I'm trying to do a pairs trading cointegration analysis on two stocks (AXAP
and AXANY), but I get an error that I don't understand...
Here's my code:
setwd("S:/Users/Alexis/Desktop/Essai") #chemin du dossier contenant les
donn?es
donnees <- read.csv("Data_R.csv", head=T, sep=";", stringsAsFactors=F)
library(xts)
dates <-
2014 Jan 08
1
CRAN rejects package because of write statement in Fortran
I recently developed an R package to make available a very large legacy
program written in Fortran. My package has been rejected by CRAN due to
this Write statement with the message "As 'Writing R Extensions' warns you
against including Fortran I/O, this will not be allowed."
The issue is that this Write statement does not involve I/O it is inernally
writing an integer to a
2008 Nov 19
0
Buggy trellis.focus() with xyplot in JavaGD ?
...f the pads in the following lines :
leftPad <- convertX(sum(glayout$page.layout$widths[1:(colRange[1]-1)]),
"npc", valueOnly = TRUE)
rightPad <-
convertX(sum(glayout$page.layout$widths[(colRange[2]+1):layCols]), "npc",
valueOnly = TRUE)
topPad <-
convertY(sum(glayout$page.layout$heights[1:(rowRange[1]-1)]), "npc",
valueOnly = TRUE)
botPad <-
convertY(sum(glayout$page.layout$heights[(rowRange[2]+1):layRows]), "npc",
valueOnly = TRUE)
I was succesful in tweaking the follwing lines adding arbitrary constants to
make it w...
2011 Feb 15
1
gList and gTree methods of grid::grobX
..., width=unit(0.8,"npc"),
height=unit(2,"cm")),
circleGrob(r=0.3))
## loop over angles to map the boundary
gtheta <- function(g, theta){
sapply(theta, function(.t){
gx <- convertX(grobX(g, .t), "npc")
gy <- convertY(grobY(g, .t), "npc")
c(gx,gy)
})
}
angles <- seq(0,360,by=30)
p1 <- gtheta(g1, angles)
grid.newpage()
grid.draw(g1)
grid.points(p1[1,],p1[2,], gp=gpar(cex=0.2),
default.units="npc")
If I'm not mistaken, neither gList nor gTree seem to...
2009 Jun 26
1
gradient fill of a grid.polygon
...unction(g, angle=0){ # utility function, works fine
matR <- matrix(c(cos(angle), -sin(angle), sin(angle), cos(angle)),
nrow = 2)
gravity.x = unit(mean(g$x),"npc")
gravity.y = unit(mean(g$y),"npc")
x.center = convertX(g$x - gravity.x ,"npc",TRUE)
y.center = convertY(g$y - gravity.y ,"npc",TRUE)
new.xy <- matrix(c(x.center, y.center),
ncol=2) %*% matR
editGrob(g, x=unit(new.xy[,1],"npc") + gravity.x,
y=unit(new.xy[,2],"npc") + gravity.y)
}
gradient.polygon <- function(g, n=100,
cols=co...
2003 May 22
4
grep, gsub, sub have problems with NA values (PR#3078)
In a string context, grep, gsub, sub are improperly treating NA (missing) as
the string "NA", and returning unexpected results
> grep("A", c(NA,"NA"))
[1] 1 2
# expected:
# [1] 2
> gsub("A", "X", c(NA,"NA"))
[1] "NX" "NX"
# expected
# [1] NA "NX"
> sub("A", "X",
2006 Feb 24
1
Read SAS .sd2 file into R?
Does anyone know how to import a SAS .sd2 file into R? I can't see
anything in library(foreign).
Thank you. Mark
2012 Oct 04
4
barplot with some 0 frequencies
Hi all,
I am back with a new question !
I recorded the occurence of 4 differents event on 20 places for a given time
period.
Now, I want to do some barplot of the frequency of theses events for each
place, so it should be easy. My problem is that I want to see the
frequencies of the 4 events on my barplots even if the frequency of some of
them is 0.
How could I do that ?
Thanking you in advance
2008 Jan 23
6
ROR Learning with Dating /Classified Site Development
Hi,
I am falling in love more and more with RoR.
I am looking for a Book/Tutorial which teaches me creating an excellent
WebSite for dating and Classified.
I am coming from .net community and now willing to grow more with ROR.
We used to have few starterkits in .Net.
Can any one provide me an excellent guideline, how is it possible.
Is there any tutorial site, which offers scripts to study