Displaying 20 results from an estimated 10000 matches similar to: "if(--as-cran)?"
2011 Jul 06
1
trouble parsing a date using strptime()
Hi,
I am having a trouble parsing dates using strptime() that I get in the
format of year and week number. The data looks like this "201127" which
means year 2011 and week 27. I would like to graph this using ggplot but
then I get a gap between 201054 and 201101 so I thought I would just easily
convert it.
I tried to use strptime and as.Date and the format string of %Y%W but it
seems
2013 Apr 12
2
"Failed to locate the 'texi2pdf' output file"
Hi,
Every day a few Bioconductor packages (different ones each day) fail
to build, on Windows only, with an error like this:
D:\biocbld\bbs-2.13-bioc\meat>D:\biocbld\bbs-2.13-bioc\R\bin\R.exe CMD
build --keep-empty-dirs --no-resave-data OrganismDbi
[...]
Error in find_vignette_product(name, by = "texi2pdf", engine = engine) :
Failed to locate the 'texi2pdf' output file (by
2013 Oct 21
0
lapply(ts(1:2), length) inconsistent answers
Hello, All:
I'm getting different answers from "lapply(ts(1:2), length)",
depending on what is attached, with nothing obviously masked.
1. Am I correct that the answer to "lapply(ts(1:2),
length)" should be a list of length 2 consisting of "int 1" twice? This
is what I get from R 3.0.2 with nothing else attached. If I've attached
2013 Oct 08
1
"Failed to locate the 'texi2pdf' output file"
Just thought I would mention that the issue below (and in https://stat.ethz.ch/pipermail/r-devel/2013-April/066318.html) is still not resolved.
It hasn't been a big problem, but it potentially could be, if a critical package were to have this error on release day, then all its dependencies would fail to build, which would probably require us to postpone our release.
See the complete thread
2011 Jan 18
2
ggplot2, geom_hline and facet_grid
Hi
I have a long data set on which I want to do Bland-Altman style plots for each rhythm type
Using ggplot2, when I use geom_hline with facet_grid I get an extra set of empty panels.
I can't get it to do it with the "Diamonds" data supplied with the package so here is a (much abbreviated) example:
> lvexs
cvd_basestudy ecd_rhythm fixed_time variable_time
1 CBP05J02
2017 May 19
2
test fails when requesting LC_CTYPE
On RedHat Enterprise Linux 6, the test below fails (this is using the stock
GCC 4.4.7) from R-devel r72707. LC_CTYPE is unset when I run it, but
LANG=en_US.UTF-8
It also failed "yesterday" where as far as I recall the test code looked a
bit different.
Best,
Kasper
> ## Results differed by platform, but some gave incorrect results on
string 10.
>
>
> ## str() on large
2011 Jul 22
1
3d plotting with cloud and wireframe
Hi,
I'm trying to plot an equation in two variables to get a feel
for sensitivity to its parameters. I've run expand.grid to get made-up
vectors of the combinations of the two independent variables, and am trying
to plot the output of the dependent, M, against both the dependent in a 3d
space.
t <- 0:100
DBH <- 10:100
TxDBH<-expand.grid(t,DBH)
time<-TxDBH[,1]
2011 Jun 10
1
Double x grid in ggplot2
I am trying to overlay raw data with a boxplot as follows:
pp = qplot(factor(time, levels=0:60, ordered=TRUE),
error, data=dfsub, size=I(1), main =" title", ylab="Error
(min)",
xlab="Time before ON (min)", alpha=I(1/10),
ylim=c(-30,40), geom="jitter") +
facet_wrap(~ runway, ncol=2) +
2012 Mar 19
1
diff(time) vs. difftime?
I just encountered another RTFM problem: With
diff(as.POSIXct(...), ...) I was unable to control the units of the
results. Examples:
> (d.d <- diff(as.POSIXct(c('2012-12-12', '2012-12-13'))))
Time difference of 1 days
> (d.h <- diff(as.POSIXct(c('2012-12-12 08:00', '2012-12-12 09:00'))))
Time difference of 1 hours
> (d.m <-
2017 May 20
1
test fails when requesting LC_CTYPE
>>>>> Kasper Daniel Hansen <kasperdanielhansen at gmail.com>
>>>>> on Fri, 19 May 2017 20:09:24 -0400 writes:
> I rebuilt R with
> export LC_CTYPE=en_US.UTF-8
> and the test still fail. Surprisingly, when I run R from the bin directory
> and execute the test code, it runs without error:
>> oloc <-
2010 Oct 12
1
Help with STL function to decompose
Hi everyone.
I'm having some troubles with STL function to decompose some data.
My issue is that I have monthly data from September 2005 up to August 2010
i. e. 60 observations.
I define it in the following way:
*u<-read.csv("C:/CELEBREX.csv",header = TRUE)
u.ts<-ts(u, start=c(2005,9), frequency=12)
*
The issue is that when I try to use
stl(u.ts, 'per')
Then the
2011 May 25
2
Importing fixed-width data
I have a data set where the lines look like:
2011-05-13 00:00:00 EONAAL330 dfa13002516PSCNONA
2011-05-13 00:00:01 EONAAL223 laa13044510AS.NONM
Some lines are missing the field before and after the NON:
2011-05-13 00:00:05 EONBHS229 mia13001621NON
I read them into R using
df = read.fwf(file, widths=c(19,-4,7,3,8,2,1,3,1),
2011 Jul 31
4
Error in plotmath
Under
platform x86_64-pc-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 2
minor 13.1
year 2011
month 07
2012 Oct 16
1
cannot open gplots libray
hi all
i'm trying to open gplots library but i keep on getting this error:
/Loading required package: gdata
Error in readRDS(mapfile) : embedded nul in string: 'ref\0\0\002\0\0\0\0'
Error : unable to load R code in package ?gdata?
Error: package ?gdata? could not be loaded/
if i run session info the results are:
/> print(sessionInfo())
R version 2.15.1 (2012-06-22)
Platform:
2012 Dec 05
1
NAMESPACE problem: import(zoo) but 'zoo' could not be loaded
Hello:
I'm having problems creating a real NAMESPACE to replace the pro
forma one in the fda package on R-Forge. "R CMD check" complains,
"Error: package 'zoo' could not be loaded ... there is no package called
'zoo'"; see below. I get this both with and without "import(zoo)" in
NAMESPACE.
Suggestions?
Thanks,
2008 Dec 16
2
"could not find function" error in "R CMD check"
Hi, All:
What might cause "R CMD check" to report, "could not find
function" for a function that has long been in the 'fda' package?
Both Jim Ramsay in Ottawa, Canada, and I in San Jose, CA, get this
same error. I replicated it with a fresh, anonymous checkout from
R-Forge (svn checkout svn://svn.r-forge.r-project.org/svnroot/fda).
With this, I did
2012 Jul 10
1
identify.hclust() doesn't cut tree at the vertical position of the mouse pointer
Dear All
According to the identify.hclust documentation the function "cuts the tree at the vertical position of the pointer and highlights the cluster containing the horizontal position of the pointer".
When I carry out this, the tree isn't cut where I click - in fact, there seems to be a limit below which I cannot go.
Consider the following code:
mat <- matrix(rnorm(5000),
2012 Sep 19
2
Data Frame (Very Simple Problem)
Hi List Members,
This is a very stupid problem but I am not able to know what the solution
can be.
I am trying to run a query like below
*Program Flow :*
1. a <- data.frame(table( cut( Sys.time() + seq(0,82800,3600), "60 mins")
)) # It generates the 60 minute intervals. Thanks David
2. b <- data.frame(a$Var1)
# To extract only First Column i.e.
2013 Feb 18
1
compare posterior samples from R2OpenBugs and R function bugs{R2WinBUGS}
Hi all,
I used both OpenBugs and R function bugs{R2WinBUGS} to run a linear mixed
effects model based on the same data set and initial values. I got the same
summary statistics but different posterior samples. However, if I order
these two sets of samples, one is generated from OpenBugs and the other is
generated from R, they turn to be the same. And the samples from R do not
have any
2012 Sep 11
1
Animation Problem
Hi List,
I am trying to build an animation and facing problem as animation is not
coming "live".
The goal is to build "heart beats" like diagram for the data given below.
data :
structure(list(date = 1971:1991, x = c(41L, 60L, 41L, 61L, 22L,
83L, 31L, 55L, 22L, 14L, 38L, 6L, 29L, 17L, 10L, 99L, 88L, 32L,
68L, 78L, 26L)), .Names = c("date", "x"), class =