Dear Pan Yang,
pan yang writes:
> Dear R-community,
>
> I faced this problem when I tried to install the R gsl wrapper in my
> university's HPC cluster. Before installing the R wrapper, I have already
> installed the 'gsl' version 2.1 in my own directory '/home/pyangac/dev'. I
> have tested the
Hi
If I want to plot several variables in separate plots I usually use for cycle
something like
pdf("graph.pdf")
for ( i in 1:n) {
p<- ggplot(data, aes(x, data[,i], colour=...))
print(p + geom_point() + ...)
}
dev.off
and maybe add xlim=c(min, max)
Cheers
Petr
> -Original Message-
Thanks Sarah,
The code works just fine.
Luca
2016-07-11 22:43 GMT+02:00 Sarah Goslee :
> Taking your question at face value, except for the factors in your
> original data frame, you can output anything you'd like to text
> onscreen using cat(). Output can also be saved to text files with
> sin
Hi Ken,
You can use coord_cartesian() to set axis. Or if it makes sense to your
problem you can facet your plot.
Hope this helps
Ulrik
KMNanus schrieb am Di., 12. Juli 2016 01:35:
> I’m plotting few dozen variables, doing so because I need to examine them
> one at a time. The range of these v
I’m plotting few dozen variables, doing so because I need to examine them one
at a time. The range of these variables varies widely. One can range from -.5
to .03, another from -600 to +750.
I want both axes to automatically plot from both min and max values for both
continuous variables.
I find that instead of using assign() and get(), it is more convenient to
make
an environment in which to store a related set of variables and
then use env[[varName]] instead of get(varName) or assign(varName)
to get and set variables.
The advantages are
* the same syntax works for setting and get
> On Jun 26, 2016, at 3:16 PM, Marcin Kosiński wrote:
>
> Hi all R devs,
>
> archivist.github has appeared on CRAN in it's updated version.
> You can check the last blog post on how has RHero saved the Backup City
> with the power or archivist and GitHub
> http://www.r-bloggers.com/r-hero-saves
Hi Rolf,
Thanks for the warning. I think because my initial efforts used the
assign function, that Jim provided his solution using it.
Any suggestions for how it could be done without assign() ?
Matthew
On 7/11/2016 6:31 PM, Rolf Turner wrote:
On 12/07/16 10:13, Matthew wrote:
Hi J
On 12/07/16 10:13, Matthew wrote:
Hi Jim,
Wow ! And it does exactly what I was looking for. Thank you very much.
That assign function is pretty nice. I should become more familiar with it.
Indeed you should, and assign() is indeed nice and useful and handy.
But it should be used with car
> On Jul 11, 2016, at 1:01 PM, Matthew wrote:
>
> I want to get a value that has been assigned to a variable, and then use that
> value to be the name of a variable.
>
> For example,
>
> tTargTFS[1,1]
> # returns:
>V1
> "AT1G01010"
>
> Now, I want to make AT1G01010 the name o
Hi Jim,
Wow ! And it does exactly what I was looking for. Thank you very much.
That assign function is pretty nice. I should become more familiar with it.
Matthew
On 7/11/2016 5:59 PM, Jim Lemon wrote:
Hi Matthew,
This question is a bit mysterious as we don't know what the object
"chr" i
Hi Matthew,
This question is a bit mysterious as we don't know what the object
"chr" is. However, have a look at this and see if it is close to what
you want to do.
# set up a little matrix of character values
tTargTFS<-matrix(paste("A",rep(1:4,each=4),"B",rep(1:4,4),sep=""),ncol=4)
# try the assi
You really need to follow the posting guide and ask an actual
question, ideally a reproducible one.
Failing that, contacting the package maintainer may be the appropriate action.
You're very unlikely to get much interest on the R-help list in such a
vague question, but many of us are able to help
I still haven't heard back from anyone. Please let me know as I think it is
better to discuss here.
On Sun, Jul 10, 2016 at 1:25 PM, lily li wrote:
> Has anyone used smwrGraphs package? I have some problems and think it may
> be better to discuss if you have been using it. Thanks very much.
>
Taking your question at face value, except for the factors in your
original data frame, you can output anything you'd like to text
onscreen using cat(). Output can also be saved to text files with
sink() or using batch files, etc and so forth.
date <-
c("07-jul-16","07-jul-16","07-jul-16","08-j
If you use Rcpp::Rcpp.package.skeleton() to make a package out
of the attached C++ code you can speed up the run counting quite
a bit - to 1.4 s. from 48 s. for the 101 x 107 x 17 x 103 example.
The package you make will define an R function called CountColumnRuns
that computes the number of runs
Can anyone point me to an R script/function/procedure which, starting from
the following sample data
#sample data
#NB: nrow(df) is variable
date =
c("07-jul-16","07-jul-16","07-jul-16","08-jul-16","08-jul-16","08-jul-16","09-jul-16","09-jul-16")
varA = c("text A1","text A2","text A3","text A4","t
I want to get a value that has been assigned to a variable, and then use
that value to be the name of a variable.
For example,
tTargTFS[1,1]
# returns:
V1
"AT1G01010"
Now, I want to make AT1G01010 the name of a variable:
AT1G01010 <- tTargTFS[-1,1]
Then, go to the next tTargTF
Your clarification is promising. A reproducible example is always preferred,
though never a guarantee. I expect to be somewhat preoccupied this week so
responses may be rather delayed, but the less setup we have to the more likely
that someone on the list will tackle it.
Re an answer: If you c
> On Jul 11, 2016, at 7:28 AM, stn021 wrote:
>
> Hello,
>
> thank you for the replies. Sorry about the html-email, I forgot.
> Should be OK with this email.
>
>
> Don't be fooled be the apparent simplicity of the problem. I have
> tried to reduce it to only a single relatively simple question
How fast is fast enough and what size and shape is your dataset
(show the output of str(yourData))? You will get the fastest execution
time by using C or C++ or Fortran, but you will want to parameterize
the problem well enough that you can amortize the time it takes to
write the code over many pr
Dear R-community,
I faced this problem when I tried to install the R gsl wrapper in my
university's HPC cluster. Before installing the R wrapper, I have already
installed the 'gsl' version 2.1 in my own directory '/home/pyangac/dev'. I
have tested the gsl installation by compiling the simple progr
Hello,
thank you for the replies. Sorry about the html-email, I forgot.
Should be OK with this email.
Don't be fooled be the apparent simplicity of the problem. I have
tried to reduce it to only a single relatively simple question.
The idea here is to model cooperation of two persons. The model
Hi Klaus,
I saw you post “package flexmix: models for ordinal data?” on grokbase. I was
wondering did you find the answer? Or what package did you use at the end? I
really appreciate if you would like to help me.
Best,
Xin
__
R-help@r-project.org m
Hi all R devs,
archivist.github has appeared on CRAN in it's updated version.
You can check the last blog post on how has RHero saved the Backup City
with the power or archivist and GitHub
http://www.r-bloggers.com/r-hero-saves-backup-city-with-archivist-and-github/
There is also going to be a ta
Dear R users,
We are happy to announce that the R package 'forestinventory: Design-Based
Global and Small-Area Estimations for Multiphase Forest Inventories'
is now on CRAN (https://cran.r-project.org/web/packages/forestinventory/).
The aim of our package is to provide global- and smallarea esti
Dear R community,
I faced this problem when I am installing the Rmpi in our university's
linux86-64 cluster:
> install.packages('Rmpi',repos='http://cran.r-project.org
',configure.args=c(
+ '--with-Rmpi-include=/usr/mpi/gcc/openmpi-1.8.2/include/',
+ '--with-Rmpi-libpath=/usr/mpi/gcc/openmpi-1.8.
Dear all,
I am having problem finding a reliable code for my country fixed effects model.
I have 21 countries in my database and individuals nested within them. I am
running a multilevel analysis first, and then I am using the fixed effects
approach to check the robustness of my findings. At thi
We are pleased to announce your a new version of fitdistrplus (
https://cran.r-project.org/package=fitdistrplus). Among the new features of
the package (https://cran.r-project.org/web/packages/fitdistrplus/NEWS), a
FAQ vignette is now available (
https://cran.r-project.org/web/packages/fitdistrplu
Hi friends,
If you are interested in univariate time series data predictions, have a
look in PSF algorithm and it's R Packages available at :
CRAN: https://cran.r-project.org/web/packages/PSF/index.html
GitHub: https://github.com/neerajdhanraj/PSF
How to use:
https://www.researchgate.net/publicat
Dear all,
I am having problem finding a reliable code for my country fixed effects model.
I have 21 countries in my database and individuals nested within them. I am
running a multilevel analysis first, and then I am using the fixed effects
approach to check the robustness of my findings. At thi
Greetings –
A new package “simstudy” is now available on CRAN. What started as a small
number of functions that enabled me to quickly generate simple data sets for
teaching and power/sample size calculations has grown into a more robust set of
tools that allows users to simulate more complex da
Note the "reproducible code" directive. We cannot check your calculations.
It would not surprise me if the objective for Excel was really, really
good BUT the parameters were out of bounds or violated other constraints.
At the EUSPRIG meeting in Klagenfurt in 2004 I sat next to Dan Fijlstra
of Fr
Hi All,
For a non-linear minimization optimization problem that I have, I am
getting better objective function value in Excel(15) as compared to
nloptr (73).
the nloptr is setup as:
opts = list("algorithm"="NLOPT_LN_COBYLA",
"xtol_rel"=1.0e-8, "maxeval"= 1)
lb = vector("numeric",l
Hi All,
Dear Readers,
I need to create a choropleth graph with turnover by zipcode. This is what
I have so far:
# Not run (Begin)
# Install packages if needed
# install.packages(pkgs = c("maptools", "rgdal", "RColorBrewer",
"grDevices"))
# Not run (End)
# Load libraries
library(maptools); libr
35 matches
Mail list logo