Mark Fingerle writes:
> Dear all,
> I have a .txt file which contains multiple tables and I would like to
> read these tables separately in order to create graphs for each one.
> The tables are separated by a blank line, have a variable number of
> lines, fixed nr. Of rows, have a header and a c
>
> on Wed, 4 May 2016 08:30:50 +0200 writes:
> Hi All,
> Hi Carl,
>
> I am not sure if this is useful to you, but I followed your conversation
> and thought of you when I read this:
>
> for (i in 1:ncol(dataset)) {
> if(class(dataset) == "character|numeric|factor|or whatsoever
It is impolite to put such a minor code fragment on a transient website. Also,
this is a plain text mailing list... html usually gets stripped, damaging any
advantage the HTML might have had and creating confusion for people reading
your message, so please learn how to send plain text.
You wrot
Yes, but the answer is likely to depend on the actual patterns of strings in
your real data, so the sooner you go find a book or tutorial on regular
expressions the better. This is decidedly not R specific and there are already
lots of resources out there.
Given the example you provide, the p
Hi Martin,
many thanks for your answer and your broad explanation.
I am a newbie to "R" and got help on this list and thought I could give
something back what looked OK to me.
regarding 0)
You're right, it's pseudo code. I assumed that anybody on the list would
be able to adapt the code to th
Hi
> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of
> g.maub...@weinwolf.de
> Sent: Wednesday, May 4, 2016 10:06 AM
> To: Martin Maechler
> Cc: r-help@r-project.org
> Subject: [R] Antwort: Antwort: Re: selecting columns from a data frame or
> data tab
> x <- c("abc","def","rst","xyz","age","age2")
> grep("^age$", x)
[1] 5
> grep("^age2$", x)
[1] 6
>
>
-Oprindelig meddelelse-
Fra: R-help [mailto:r-help-boun...@r-project.org] På vegne af Steven Yen
Sendt: 4. maj 2016 07:46
Til: r-help
Emne: [R] Grep command
Dear all
In the grep command
Dear Jim and David,
Thank you very much for your reply. I guess my question is whether it is
legal to store vectors in the elements of a data.frame. These are useful
for storing things like neighbors of a graph vertex, orthologs of a gene
etc. I have been using data frames of this sort and they ar
On 04/05/2016 7:11 AM, Naresh Gurbuxani wrote:
I am trying to write a function, which can be made very general if one of the
inputs can be an expression. How can this be done?
For example, to find root of a function, I would like to say
my.func <- function(x) {x^3 + 2 * (x^2) - 7}
x.left <-
I am trying to install R-3.3.0 on Xenial.
I followed the instructions on the corresponding CRAN page, and I added the GPG
key.
But after adding
deb https://cran.at.r-project.org//bin/linux/ubuntu xenial/
to /etc/apt/sources.list
and
sudo apt-get update
I get the following error:
Err:7 https://cra
Pick different mirror.
--
Sent from my phone. Please excuse my brevity.
On May 4, 2016 5:22:43 AM PDT, Erich Neuwirth
wrote:
>I am trying to install R-3.3.0 on Xenial.
>I followed the instructions on the corresponding CRAN page, and I added
>the GPG key.
>But after adding
>deb https://cran.at.
Hi all,
I know it seems simple but I am trying to copy a code and I don't know what is
the problem with this command!
msubsub=msub[,cn]
the error I get is : error in '[.data.frame '(msub, ,cn) : undefined columns
selected
Thanks for any help,
Elahe
_
On Wed, May 4, 2016 at 8:05 AM, ch.elahe via R-help
wrote:
>
> Hi all,
> I know it seems simple but I am trying to copy a code and I don't know
> what is the problem with this command!
>
> msubsub=msub[,cn]
>
> the error I get is : error in '[.data.frame '(msub, ,cn) : undefined
> columns sel
The the column name must be quoted in the index:
msubsub=msub[,"cn"]
Please go through a basic R tutorial or two if you want to learn to use R.
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley
First, type
names(msub)
and then type
cn
and compare the output.
Probably, you will find a name in cn that is not among the names of msub.
To maybe make it easier to see the missing column(s), you can type
setdiff(cn, names(msub))
The expression
msub[,cn]
is intended to select columns
Dear all,
I am an R beginner and new to the list. In preparation for using mi to impute
missing values I am setting up the missing data frame and would like to specify
the transformation types for some of my variables, as I will be using these
transformations in my analysis models. According to
Hello,
In a situation where the dimension is high and the parameter is close to
the bound computing the density of the gumbel copula throws the following
error.
library(copula)
dCopula(rep(0.5,127),gumbelCopula(1.19,127),log=TRUE)
Loading required namespace: Rmpfr
Failed with error: ‘there is n
Dear experts,
I have a problem in compute Bonferroni,Tukey's,Sheffe 95%-condence intervals
for coefficients B1,B2,B3 in linear regression using R? how can i do it? I only
know how to compute these three cofindence intervals in multicomparsion by
using multcomp package, and i am search a lot
You asked this question yesterday, and received responses on this same
response. Is there a reason this is reposted?
-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Steven Yen
Sent: Wednesday, May 04, 2016 1:46 AM
To: r-help
Subject: [R] Grep command
Dear R-helpers,
I would like to know if it is possible using R (earth packages or another one)
to realize robust MARS regression RMARS or RCMARS (C mean "conic").
Some authors have done it using MOSEK combined with Salford-MARS and special
MATLAB programs.
Best Regards,
Sacha
___
> On May 3, 2016, at 11:16 PM, Jeff Newmiller wrote:
>
> Yes, but the answer is likely to depend on the actual patterns of strings in
> your real data, so the sooner you go find a book or tutorial on regular
> expressions the better. This is decidedly not R specific and there are
> already l
Hi Martin and list:
First let me thank you for thinking of me. It is probably apparent that my
programming experience is limited, and the vector aspect of R has taken some
getting used to. A very very long time ago I did some programming in Fortran
and for loops and if statements were ordina
No matter how expert you are at writing regular expressions,
it is important to list which sorts of strings you want matched
and which you do not want matched. Saying you want to match
"age" but not "age2" leads to lots of possibilities. Saying how
you want to categorize each string in a vector o
> install.packages("latex2exp")Installiere Paket nach
> ‘/home/apa/R/x86_64-pc-linux-gnu-library/3.2’(da ‘lib’ nicht
> spezifiziert)Warnung: kann nicht auf den Index für das Repository
> https://cran.cnr.Berkeley.edu/src/contrib zugreifen: nicht unterstütztes URL
> SchemaWarnmeldung:Paket ‘lat
> On May 4, 2016, at 10:53 AM, Alaios wrote:
>
> > install.packages("latex2exp")
> Installiere Paket nach ‘/home/apa/R/x86_64-pc-linux-gnu-library/3.2’
> (da ‘lib’ nicht spezifiziert)
> Warnung: kann nicht auf den Index für das Repository
> https://cran.cnr.Berkeley.edu/src/contrib zugreifen:
>
kindly help me ..from where do i get sample code and details about
community detection...
Thanks
Swagatam Basu
On Mon, May 2, 2016 at 2:25 PM, Swagatam Basu
wrote:
> Hi
>
> I am very new to R studio and R language. I have installed the R studio in
> my machine.
>
> I need to do a community det
Hello
> Berwin A Turlach writes:
> That you don't have the package Rmpfr installed? And it seems to be
> needed for the higher dimension. On my machine it works:
>
Thanks for the lead,
Best regards,
Jeremie
__
R-help@r-project.org mailing list -
Hello,
First time user on Ubuntu 14.4 with Ubuntus R Commander and
> $ R --version
> R version 3.0.2 (2013-09-25) -- "Frisbee Sailing"
> Copyright (C) 2013 The R Foundation for Statistical Computing
> Platform: x86_64-pc-linux-gnu (64-bit)
The program icon of the commander executes
> sh -c 'R_D
Please do not re-post. Search on your own. Entering "community
detection" at the rseek.org R search site brought up many hits,
especially from the igraph package.
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Op
> On May 4, 2016, at 7:45 AM, super wrote:
>
>
> Dear experts,
>I have a problem in compute Bonferroni,Tukey's,Sheffe 95%-condence
> intervals for coefficients B1,B2,B3 in linear regression using R? how can i
> do it? I only know how to compute these three cofindence intervals in
> mult
Thank you for providing a working example. I think you need to contact the
package maintainer:
> maintainer("mi")
[1] "Ben Goodrich "
When I run your code it appears that the c column is correctly transformed to
square roots, but the show() function is incorrectly indicating a log transform:
>
Hi Andreas,
Try installing plyr, arm, scales and mi separately. If you get an
error message about a version mismatch, that's where your problem is.
_Sometimes_ upgrading R will fix it, if the problem is that the
version you are downloading is too new for your R version.
Jim
On Thu, May 5, 2016 at
Did you follow the instructions for setting up apt to pull recent versions of
R, as described in CRAN? I suspect not, since your version is old.
--
Sent from my phone. Please excuse my brevity.
On May 4, 2016 11:51:27 AM PDT, "C&A Säger" wrote:
>Hello,
>
>First time user on Ubuntu 14.4 with Ub
Am 05.05.2016 um 00:17 schrieb Jim Lemon:
> Hi Andreas,
> Try installing plyr, arm, scales and mi separately. If you get an
> error message about a version mismatch, that's where your problem is.
> _Sometimes_ upgrading R will fix it, if the problem is that the
> version you are downloading is too
Dear Andreas,
As has been suggested, you're probably better off using an up-to-date version
of R and corresponding up-to-date packages, but if the only issue is that sem
can't be installed, the Rcmdr package should still work. The menu item for
confirmatory factor analysis will be missing, and
Am 05.05.2016 um 01:41 schrieb Jeff Newmiller:
> Did you follow the instructions for setting up apt to pull recent
> versions of R, as described in CRAN? I suspect not, since your version
> is old.
> --
Hello Jeff,
Thank you very much for taking notice.
I was hoping that any old version which u
An old version of R would be fine if that was all you wanted, but no, you want
all the latest contributed packages as well. I can't blame you for that, but
don't blame R for difficulties with contributed packages that have external
dependencies and depend on recent versions of R.
You might find
37 matches
Mail list logo