Hi all,
I was conducting a meta-analysis of single proportions(i.e. without a
control group) using the metafor package. When I performed a classic
fail-safe N, I noticed that the result (the number of missing studies that
would bring p-value to the alpha, to be exact)was different than that I got
i
Hi
Maybe I am missing something but in package "zoo" is function "na.locf", which
fills empty cells with previous value.
So when you read your file
dat<-read.table("", na="")
you can use
library(zoo)
sapply(dat, na.locf)
the only problem is that it changes factors to numeric representati
> On Jun 25, 2017, at 7:35 PM, Bhaskar Mitra wrote:
>
> Hello Everyone,
>
> I have a data frame which looks something like this:
>
>V1 <-c(1,2,3)
>V2 <-c(5,6,7)
>V3 <-c(9,10,11)
>
> df <- data.frame(V1,V2,V3)
>
> I want to add couple of text files at the beginning of df and s
You appear to either be ignorant of the structure pf data frames or
have not expressed yourself clearly enough (for me, anyway). Please go
through a tutorial to learn about the fixed structure of data frames,
for which your request does not appear to reflect an understanding.
Cheers,
Bert
Bert G
You really really need to go through one of the many R (web) tutorials
where this is discussed in detail. Or see the Intro to R tutorial that
ships with R. This is not the proper venue for learning how R handles
linear models and how its formula interface works. A terse treatment
can be found in ?l
On Sun, Jun 25, 2017 at 5:29 PM, Jim Lemon wrote:
> Hi Rabby,
> Before you run your regression, try this:
>
> is.factor(Final$Cor)
>
> If this returns TRUE, then this variable is a factor and it will be
> treated as a number of levels rather than a set of numeric values.
> This usually happens whe
Hello Everyone,
I have a data frame which looks something like this:
V1 <-c(1,2,3)
V2 <-c(5,6,7)
V3 <-c(9,10,11)
df <- data.frame(V1,V2,V3)
I want to add couple of text files at the beginning of df and save
the df as a csv file.
The csv file should look something like this:
Hi there,
I have a experimental design related question. I have done a experiment
with 3 factors. The design matrix is similar to:
data.frame(Factor.1 = rep(rep(0:2, each = 3),3), Factor.2 =
rep(c("U","S","N"), 9), Factor.3 = rep(0:2, each = 9))
Factor.1 Factor.2 Factor.3
1 0
Hi Rabby,
Before you run your regression, try this:
is.factor(Final$Cor)
If this returns TRUE, then this variable is a factor and it will be
treated as a number of levels rather than a set of numeric values.
This usually happens when a text file is read in and there is at least
one value that can
I can't think of a more appropriate time to point out that there is an
r-sig-debian mailing list that focuses on operating-system-related issues like
this.
--
Sent from my phone. Please excuse my brevity.
On June 25, 2017 6:47:10 PM EDT, Lorenzo Isella
wrote:
>Dear All,
>I think there is some
Please look at what I see in your code below (run-on code mush) to understand
part of why it is important for you to send your email as plain text as the
Posting Guide indicates. You might find [1] helpful.
[1] https://wiki.openstack.org/wiki/MailingListEtiquette
--
Sent from my phone. Please
Hi all,
I was conducting a meta-analysis of single proportions(i.e. without a
control group) using the metafor package. When I performed a classic
fail-safe N, I noticed that the result (the number of missing studies that
would bring p-value to the alpha, to be exact)was different than that I got
i
Dear All,
I think there is something wrong with rJava on any Debian based
distribution.
I may be wrong, but I experiencing exactly the problems mentioned at
https://github.com/amattioc/SDMX/issues/130
and at
https://github.com/s-u/rJava/issues/110
A couple of packages (RJSDMX and xlsx) are now
Hi Eliza,
How about this:
library(plotrix)
plot(0,type="n")
draw.arc(rep(0,6),seq(0.1,0.6,by=0.1),radius=0.05,
angle1=3*pi/2,angle2=5*pi/2)
Jim
On Sun, Jun 25, 2017 at 9:34 PM, Eliza B wrote:
> Dear useRs,
>
>
> I am to teach my students some drawing techniques in R. I started shape of an
> h
That's the kind of help that we like to provide. And for extra marks, you
can write a small function that will deal with consecutive NA values.
Jim
On Mon, Jun 26, 2017 at 1:25 AM, Christophe Elek
wrote:
> Perfect Jim, that Is exactly what I needed – let me check that ...
>
> Cheers
>
>
>
> *Fr
The tidyverse also has nice functions
On Sun, Jun 25, 2017 at 5:48 PM Sarah Goslee wrote:
> This is pretty badly mangled (please don't post in html), but
> ?aggregate
> is probably what you want.
>
> Sarah
>
> On Sun, Jun 25, 2017 at 5:27 PM, Jackson Rodrigues
> wrote:
> > Hi everybody,
> >
> >
This is pretty badly mangled (please don't post in html), but
?aggregate
is probably what you want.
Sarah
On Sun, Jun 25, 2017 at 5:27 PM, Jackson Rodrigues
wrote:
> Hi everybody,
>
> My name is Jackson and come here ask for a help to organize data.
> I really need help from you. I have several
Hi everybody,
My name is Jackson and come here ask for a help to organize data.
I really need help from you. I have several data sets to organize.
I have to summarize precipitation data collected in different days and
months in only one table.
However, those data are disperse in days and times. T
Hi all,I had a question last week on asking for a function that will help me
draw three different circles on x,y,z axis based on polar coordinates (Each
X,Y,Z circle are coming from three independent measurements of 1-360 polar
coordinates). It turned out that there is no such function in R and
I forgot to mention that a circle with radius 0.05 cannot go from
(0,0.6) to (0,0.1), that's why I've changed the radius to 0.25, half the
distance between those points. I also chose the center point.
Rui Barradas
Em 25-06-2017 19:45, Rui Barradas escreveu:
Hello,
I'm not the greatest graphi
Hello,
I'm not the greatest graphics programmer but is this it?
#install.packages("shape")
library(shape) # for function plotcircle
plot(0,0,col="white")
segments(0,0,0.3,0.3)
segments(0.3,0.4,0.3,0.3)
segments(0.3,0.4,0,0.7)
segments(0,0.7,0,0.6)
segments(0,0.0,0,0.1)
plotcircle(r = 0.25, m
Excellent Boris, thx – this helps
From: Boris Steipe
Sent: June 25, 2017 11:23 AM
To: Christophe Elek
Cc: r-help@r-project.org
Subject: Re: [R] Fill in empty cell in data.frame from previous value
Run it through a loop. I assume the cell contents is NA (Not Available). Test
for it with is.na().
Dear useRs,
I am to teach my students some drawing techniques in R. I started shape of an
handle by using the following codes;
>plot(0,0,col="white")
>segments(0,0,0.3,0.3)
>segments(0.3,0.4,0.3,0.3)
>segments(0.3,0.4,0,0.7)
>segments(0,0.7,0,0.6)
>segments(0,0.0,0,0.1)
The coding will dr
Perfect Jim, that Is exactly what I needed – let me check that ...
Cheers
From: Jim Lemon
Sent: June 25, 2017 3:11 AM
To: Christophe Elek
Cc: r-help@r-project.org
Subject: Re: [R] Fill in empty cell in data.frame from previous value
Hi Chris,
You may know about the *apply family of functions. Th
> library(tidyr)
> ?fill
Göran
On 2017-06-24 19:49, Christophe Elek wrote:
Hello Total newbie here... I hope I read the guide properly
I have the following data.frame (I read it from a CSV file I cannot change)
names val
1 Mandy 1
2 2
3 John2
4 2
I want to read the r
Run it through a loop. I assume the cell contents is NA (Not Available). Test
for it with is.na(). Whenever that returns TRUE, replace the NA value with the
value from the previous row.
Cheers,
B.
> On Jun 24, 2017, at 1:49 PM, Christophe Elek
> wrote:
>
> Hello Total newbie here... I hope
You need to go through some tutorials, not expect us to tutor you
here. That is not the purpose of this list (although we do some of
this indirectly of course). There are many good online tutorials --
search or see here: https://www.rstudio.com/online-learning/#R . Or
start by going through the I
Hi Rabby,
It looks to me as though your variable Final$Cor is being treated as a
factor rather than a numeric value. This may be due to one or more
non-numeric values occurring in the data that is read in. Also you do
not have to use the Final$* notation in the formula as you have
specified the dat
Hi Chris,
You may know about the *apply family of functions. These slice various
data structures and "apply" a specified function to each slice,
usually returning a list of return values. As far as I am aware, you
can't access adjacent rows unless you reformat the data structure.
There is a way to
29 matches
Mail list logo