Thanks. Another way of handling is which I understood from other forum, thought
to share here as well.
data.frame(Value=dat[!is.na(dat)])
Regards,
Anshuk Pal Chaudhuri
-Original Message-
From: PIKAL Petr [mailto:petr.pi...@precheza.cz]
Sent: 10 August 2015 12:21
To: Anshuk Pal Chaudhur
Hi
I have an R script which invokes WriteXLS() (from the package of the
same name) which as you may know, calls perl via system(). I've noticed
that when I enable profiling using Rprof(), when the script gets to the
part where perl is called, it gets "stuck": it just sits there using
99-100% CPU a
You need to:
1) Re-read ?seq. Your syntax is wrong. ("," not ":" )
2) Note that (n-1) x m != n x m
Cheers,
Bert
Bert Gunter
"Data is not information. Information is not knowledge. And knowledge
is certainly not wisdom."
-- Clifford Stoll
On Tue, Aug 11, 2015 at 2:21 AM, Rosa Oliveira wro
Have you tried the usual install.packages method from CRAN? I just installed it
into 3.2.1 and 3.1.3 on Win7x64 just fine.
Note that this list does not officially support old versions of R, so if this
is really specific to 3.1.1 then you should just upgrade.
-
Dear Thierry,
even using the code:
id.pat = rep(seq(1:nsample), each
=n.longitudinal.observations)
time = rep(seq(1:n.longitudinal.observations)-1,
nsample)
age = rnorm(nsample, mean = 36, sd = .8)
f.age
Dear Thierry
id.pat = rep(seq(1:nsample), each
=n.longitudinal.observations)
time = rep(seq(1:n.longitudinal.observations)-1,
nsample)
age = rnorm(nsample, mean = 36, sd = .8)
f.age= table(cut(age, b
How or where can I find the appropriate version of CaTools to install into R
version 3.1.3 on Windows 7 platform ?
I have tried to install manually, but with no success.
Paul Parker
IT Technical Analyst
AMS MS&O MMD Site Operations
West Point
WP62-7
a
Notice: This e-mail message, together wit
Hello there,
I am performing a path analysis using plspm.
I successfully ran one analysis but then tried to rerun with some tweaks of
my data and now am getting this error message:
Error in solve.qr(qr(X[, blockinds == j]), Z[, j]) :
singular matrix 'a' in 'solve'
My code is:
> PNS = c(0, 0, 0
I am a newbie and trying to create my own bactesting code after going through
demo(). I am using a *candle engulfing pattern* strategy and this is the
formula
buy=(close(1) < close) and (high(1) < high) and (low(1) < low)
sell=(close(1) > close) and (high(1) > high) and (low(1) > low)
**(1) repres
Thanks Bert,
I think that arrow() would do what the OP needs. The main problem would be
calculating the angles properly if I understand the issue. Still there cannot
be "that" many points on a compass, can there?
John Kane
Kingston ON Canada
> -Original Message-
> From: bgunter.4...@g
Thanks Bert,
I think that arrow() would do what the OP needs. The main problem would be
calculating the angles properly if I understand the issue. Still there cannot
be "that" many points on a compass, can there?
John Kane
Kingston ON Canada
> -Original Message-
> From: bgunter.4...@g
In the R GUI the output is
> path.expand("~")
[1] "~"
Did you set the environment variable R_USER to something odd like "~"?
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Tue, Aug 11, 2015 at 7:41 AM, Thierry Onkelinx
wrote:
> Dear all,
>
> I'm puzzled by the behaviour of path.ex
Dear Janka
If you supply a single number to the breaks parameter of cut I think it
is the number of intervals.
On 11/08/2015 13:57, Janka Vanschoenwinkel wrote:
Hi Thierry!
Thanks for your answer. I tried this, but I get this error:
"Error in cut.default(x, k2) : invalid number of intervals"
On 11/08/2015 10:51 AM, Sarah Goslee wrote:
> Hm.
>
> On my linux system:
>
>> path.expand("~")
> [1] "/home/sarahg"
>
> The help file says:
> Expand a path name, for example by replacing a leading tilde by
> the user's home directory (if defined on that platform).
>
> Does Windows 7
Works correctly on 3.1.1 under Windows . You may have found a problem in
the Windows port. The Linux version of R 3.2.1 works correctly, for me.
R version 3.1.1 (2014-07-10) -- "Sock it to Me"
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: i386-w64-mingw32/i386 (32-bit)
R
... don't know if this will help, but grid graphics, which is the
graphics engine for both trellis and ggplot, has a basic arrow()
function. Trellis's provides an interface to it with the
panel.arrows() panel function. I suspect ggplot has something similar,
but as I don't use it, I don't know for
Hm.
On my linux system:
> path.expand("~")
[1] "/home/sarahg"
The help file says:
Expand a path name, for example by replacing a leading tilde by
the user's home directory (if defined on that platform).
Does Windows 7 define ~?
Just because RStudio defines it for you, doesn't mean th
Dear all,
I'm puzzled by the behaviour of path.expand("~")
In the RStudio IDE the output is
> path.expand("~")
[1] "C:/Users/thierry_onkelinx/Documents"
In the R GUI the output is
> path.expand("~")
[1] "~"
But I'm expecting the same result as in the RStudio IDE. The "Start in"
parameter of sho
Hi,
Good example and data. Thanks.
Here are a couple of approaches that may help.
I tend to use a lot of what I tend to think of as the ggplot family of
associated so you may need to install a couple packages. I used lubridate to
transform your character dates to POSIXct. Jeff N's code does
>From my experience, that is often an indication that you built R from
source but didn't pay attention to the cairo/pango dependencies. You
can either install R from a repository, or make sure you have all the
dependencies installed before you build R from source (e.g. for
Ubuntu, use apt-get build
Hi Thierry!
Thanks for your answer. I tried this, but I get this error:
"Error in cut.default(x, k2) : invalid number of intervals"
Which is strange because I am not specifying intervals, but the number at
where the sample has to be cut?
Greetings from Belgium! :-)
2015-08-11 14:52 GMT+02:00 T
Hello,
I have the following reproducible knitr document:
\documentclass{article}
\usepackage[sc]{mathpazo}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\begin{document}
<>=
library(lattice)
xyplot(1:2~1:2)
@
\end{document}
but knitr is giving me an error:
Quitting from lines 9-11 (test.Rn
You'll need to send a reproducible example of the code. We can't run the
code that you send. Hence it is hard to help you. See e.g.
http://adv-r.had.co.nz/Reproducibility.html
ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature and
Forest
team Biometrie & Kw
Dear Janka,
You loop goes for 0 to 100. It should probably go from 1:99
Best regards,
ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature and
Forest
team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance
Kliniekstraat 25
1070 Anderlecht
Belg
Dear list members,
I have a loop where I want to do several calculations for different samples
and save the results for each sample. These samples are for each loop
different. I want to use the "i" in the loop to cut the samples.
So for instance:
- In loop 1 (i=1), I have a sample from 0-1 an
Dear Rosa,
1) use cut() to convert a continuous variable into a factor. See ?cut for
the details.
2) The syntax for factors is the same as for continuous variables. Just add
the name of the factor variable to the formula
fAge <- cut(age)
yy~1+fAge+time+(time|id.pat)
3) Add + (1|fAge) to the formul
Hello, Xianming,
I have changed your (particular) data structure: use matrices because you
have only numeric scores and effects, use NA instead of -1 as missing
value (as usual), don't use columns for ids or row/column names (except
for the easy of reading the data structures), increase your s
27 matches
Mail list logo