Hi R,
I am a new Chinese user of R, I like this language very much.In the
recent months,I spend over 4 hours every day leanring R,but during the learning
I come across some problems I can not understand.For R is still not very
popular in China,I ask some net friends but nobody can give
Here're a couple alternatives if you want to use the index instead of
the variable name:
# Reproducible data frame
a1 - 1:15
a2 - letters[1:15]
a3 - LETTERS[1:15]
a4 - 15:1
a5 - letters[15:1]
df - data.frame(a1, a2, a3, a4, a5)
df
# a1 a2 a3 a4 a5
# 1 1 a A 15 o
# 2 2 b B 14 n
# 3
Thank you very much!
I used indeed rgl.
The problem was apperently that I used text3d() in the wrong way.
When I use it this way:
plot3d(x, y, z,xlab=PC1, ylab=PC2, zlab=PC3, size=5)
text3d(x=x,y=y,z=z,texts=names, col=4)
It workes the way I wanted.
So thanks again and have a nice
Is this what you're going for?
factor(values, levels=mylevels[[1]], labels=mylevels[[2]])
[1] a b e e j
Levels: a b c d e f g h i j
On 2014-03-28 16:38, Jonathan Greenberg wrote:
R-helpers:
Hopefully this is an easy one. Given a lookup table:
mylevels -
Hi,
After loading my data in R I get the error:
Error in .jcall(com/github/egonw/rrdf/RJenaHelper,
Lcom/hp/hpl/jena/rdf/model/Model;, :
java.lang.OutOfMemoryError: GC overhead limit exceeded
How can I solve it?
[[alternative HTML version deleted]]
Luca Braglia lbraglia at gmail.com writes:
g++ -shared -o pROC.so RcppExports.o delong.o perfsAll.o
Rcpp:::LdFlags() -L/usr/lib/R/lib -lR
g++: error: : File o directory non esistente
This can happen when you have a ~/.Rprofile that messes up the invocation
of Rscript in the src/Makevars
I have a time series with 1100 rows of data and am getting contradicting
results from these tests:1) My ACF and PACF plots have lot of lags and upon
looking visually, it looks as if the series in not-stationary.2) But when I
do the ADF test with with lag=30, I reject the null and conclude that
Hi there,
Is there a function in R that can draw vector density plot? The vector
density plot example can be found here:
http://reference.wolfram.com/mathematica/ref/VectorDensityPlot.html
As for the vector field plot, I found a function that has been posted in
this mailing list:
2014-03-28 19:09 GMT+01:00 Dirk Eddelbuettel e...@debian.org:
Luca Braglia lbraglia at gmail.com writes:
g++ -shared -o pROC.so RcppExports.o delong.o perfsAll.o
Rcpp:::LdFlags() -L/usr/lib/R/lib -lR
g++: error: : File o directory non esistente
This can happen when you have a ~/.Rprofile
and your hunch was correct, thank you!
cheers
Luca
2014-03-29 10:02 GMT+01:00 Luca Braglia lbrag...@gmail.com:
2014-03-28 19:09 GMT+01:00 Dirk Eddelbuettel e...@debian.org:
Luca Braglia lbraglia at gmail.com writes:
g++ -shared -o pROC.so RcppExports.o delong.o perfsAll.o
Rcpp:::LdFlags()
On 28 Mar 2014, at 17:39 , T Bal studentt...@gmail.com wrote:
Hi,
After loading my data in R I get the error:
Error in .jcall(com/github/egonw/rrdf/RJenaHelper,
Lcom/hp/hpl/jena/rdf/model/Model;, :
java.lang.OutOfMemoryError: GC overhead limit exceeded
How can I solve it?
For
On 28 Mar 2014, at 18:09 , KIRA 396884...@qq.com wrote:
Hi R,
I am a new Chinese user of R, I like this language very much.In the
recent months,I spend over 4 hours every day leanring R,but during the
learning I come across some problems I can not understand.For R is still not
very
On 29/03/2014 09:28, peter dalgaard wrote:
On 28 Mar 2014, at 17:39 , T Bal studentt...@gmail.com wrote:
Hi,
After loading my data in R I get the error:
Error in .jcall(com/github/egonw/rrdf/RJenaHelper,
Lcom/hp/hpl/jena/rdf/model/Model;, :
java.lang.OutOfMemoryError: GC overhead limit
Hello!
I'm going to use the RExcel. My OS - Windows 7, 32 bit. I'm using R 3.0.3
and Excel 2007. I've never worked with RExcel before.I try to do this (see
the pic. 1) - this is the photo from the book 'R through Excel'. In this
book it's said, that we have to select Rcommander -with Excel menus
This is a question about statistics theory, not about R, so it is off topic
here... you might try discussing this at the CrossValidated forum. In general,
the amount of lag that is relevant depends on how you intend to use the data.
This is not unlike the application of linear models to
Dear All,
I have a vector x (as a factor, see below) for which I'd like to know
frequencies for each
level of the factor itself. I generally use tapply function for that but it
gave to me
an unespected result as you can see and according my knowledge of R language
and if my memory did not
The argument to tapply is FUN, not fun. R is case sensitive.
-- Bert
Bert Gunter
Genentech Nonclinical Biostatistics
(650) 467-7374
Data is not information. Information is not knowledge. And knowledge
is certainly not wisdom.
H. Gilbert Welch
On Sat, Mar 29, 2014 at 6:51 AM, Massimiliano
Hi,
Try:
dat- data.frame(id=1:3,abcmor=2:4,relmor=c(5,4,3), neomor=c(6,3,1),
Column5=c(4,8,1) )
colnames(dat)[grep(mor,colnames(dat))] -
gsub(mor$,,colnames(dat)[grep(mor,colnames(dat))])
dat
A.K.
I have several columns which all end with mor. How can I remove the suffix
mor for all
Hi,
a reproducible example would help us to help you. In any case, you might
want to consider a for-loop in combination with par(mfrow = c(?, ?)). The
lattice or ggplot2 package might also provide a solution to your problem.
Cheers,
Jannes
--
View this message in context:
Hi,
one way to include a random effect would be:
require(lme4)
mymodel - lmer(counts ~ Season + Rainfall + (1 | Year), family =
quasipoisson, data = mydata)
Nevertheless, there are other ways to include a random effect using R.
In any case, you need to provide justification why you are
Hi,
I'm trying use R CMD build, and cannot for the life of me get it work. The
OS is Windows 7, and I just upgraded R to 3.0.3. Depending on what I try, I
get Error: unexpected symbol or Error: unexpected input. I have no idea
where I am going wrong. I think I am supposed to type this R at
Hi,
Try:
#dat is the dataset:
library(plyr)
dcast(dat,ID~Group,value.var=value,fill=)
#or
dcast(dat,ID~Group,value.var=value,fill=0)
A.K.
On Friday, March 28, 2014 4:54 AM, Mat matthias.we...@fnt.de wrote:
Hello togehter,
i have a litte problem. I have an output data.frame which look like
Hi,
Try:
vec1 - setNames(c(0.1,0.2, 0.5, 0.1,0.8, 0.4, 0.9), 1:7)
vec2 - sort(vec1,decreasing=TRUE)
names(vec2[seq(ceiling(length(vec2)*0.3))])
#[1] 7 5 3
A.K.
Hi, I need your help again. I have some data like this:
1 23 4 56 7 ...
0.1 0.2 0.5
If you rename two or more levels with the same string, R collapses them.
Using gsub like you suggest works well. If there are more than the two
characters causing problems you may need to expand the pattern that's
being matched. With the example you sent, this works:
df - structure(c(6L, 4L,
Hi Stefano,
first of all, it would be really helpful, if you provided a reproducible
example. That way we could better help you!! Second of all, please have a
look at ?gamm before posting a question:
Returns a list with two items:
gam
an object of class gam, less information relating to
On 29.03.2014 20:47, Josef Dustin Tracy wrote:
Hi,
I'm trying use R CMD build, and cannot for the life of me get it work. The
OS is Windows 7, and I just upgraded R to 3.0.3. Depending on what I try, I
get Error: unexpected symbol or Error: unexpected input. I have no idea
where I am
On Mar 29, 2014, at 1:18 PM, el_alisio wrote:
Hi Stefano,
first of all, it would be really helpful, if you provided a reproducible
example. That way we could better help you!! Second of all, please have a
look at ?gamm before posting a question:
Yes, that would certainly have been helpful
On 03/29/2014 04:09 AM, KIRA wrote:
Hi R,
I am a new Chinese user of R, I like this language very much.In the
recent months,I spend over 4 hours every day leanring R,but during the learning
I come across some problems I can not understand.For R is still not very
popular in China,I ask
On Mar 28, 2014, at 1:52 PM, Noah Marconi wrote:
Is this what you're going for?
factor(values, levels=mylevels[[1]], labels=mylevels[[2]])
[1] a b e e j
Levels: a b c d e f g h i j
That is certainly what looks like the right (or at least obvious) answer to me.
The OP should note that
Hi All,
I was unable to find help in search history.
I have all my regression outputs in my environment tab, and wish to run
them against my data, so that instead of having to export regression outputs
to excel, and manually connect data-regression.
I have predictive regressions that forecast 5
Hi DM,
I'm currently dealing with very similar issues. To date I've been exporting
regression outputs in mass quantities (updated every 5 days) to excel, and
manually linking to data to get my predictions.
I've been doing a ton of research on forecast, caret, and SEM packages and
am still empty
31 matches
Mail list logo