Thank you, Ista, for your quick response and tip. I would love to make a
reproducible example and was not aware of the dput codes as I am a new user.
Is there anywhere I can read up on how to use dput?
Sigrid
--
View this message in context:
http://r.789695.n4.nabble.com/grey-colored-lines-and-
Hello:
I am new using R. I have a file that contain in the same columns date and time
like for example 2011/10/03 12:34:45.123423 p.m., but when I read the file and
display the vector, I see of this way "2011-10-03 12:34:45.123423". I need to
convert the time in a numeric and the date if is po
On Jul 10, 2011, at 12:55 AM, Manoj Aravind wrote:
Hi friends,
I have a doubt reg the application of odds ratio.
When evaluating a diagnostic test, what odds ratio I should apply?
When I use..
*>oddsratio (X)** *
the OR I get is not ad/bc.
PLEASE do read the posting guide http://www.R-projec
Please give a reproducible example. Since we do not have the "test"
data we cannot run your code. One way you might do this is by posting
the output of dput(test)
Best,
Ista
On Sat, Jul 9, 2011 at 11:24 PM, Sigrid wrote:
> I created this graph in ggplot and added ablines to the different facets
On Jul 9, 2011, at 11:42 PM, David Winsemius wrote:
On Jul 9, 2011, at 9:37 PM, Rolf Turner wrote:
On 10/07/11 12:12, David Winsemius wrote:
Uhhh, you meant
drpidx <- -c(5,10, i)
x <- x[-drpidx, ]
Yes, I certainly did. Thanks for the correction.
A little bird has tweeted that I mig
Hi friends,
I have a doubt reg the application of odds ratio.
When evaluating a diagnostic test, what odds ratio I should apply?
When I use..
*>oddsratio (X)** *
the OR I get is not ad/bc.
Thank you.
Regards,
Dr Manoj Aravind,
PG Resident,
Dept of Community Medicine,
Osmania Medical College,
Hyd
I created this graph in ggplot and added ablines to the different facets by
specifying with subset commands. As you might see, there are still a few
issues.
1.) I would like to have the diamonds in a grey scale instead of colors. I
accomplished this (see graph 2) until I overwrote the label
Great.
Thank you for your suggestions.
In case other people are interested too, this is what I got now.
I was able to
#added labels for x-axis and y-axis
p + scale_y_continuous("number of votes")
p + scale_x_continuous("number of votes")
# specify breaks
p + scale_x_continuous(breaks=1:4)
On Jul 9, 2011, at 9:37 PM, Rolf Turner wrote:
On 10/07/11 12:12, David Winsemius wrote:
Uhhh, you meant
drpidx <- -c(5,10, i)
x <- x[-drpidx, ]
Yes, I certainly did. Thanks for the correction.
cheers,
Rolf Turner
David Winsemius, MD
West Hartford, CT
__
Thanks for all your help thus far. My final question is this, if I want to
simulate all the 2 x 3 tables (with column totals and row totals fixed), how
do I do this using r2dtable(), and find the one that gives me the smallest
fisher's exact test.
Will r2table() generate unique tables everytime to
On 10/07/11 12:12, David Winsemius wrote:
Uhhh, you meant
drpidx <- -c(5,10, i)
x <- x[-drpidx, ]
cheers,
Rolf Turner
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
On Jul 9, 2011, at 8:49 PM, Martin Rittner wrote:
I would like to open OpenOffice (LibreOffice) .ods files in R. I've
tried the ROpenOffice package from omegahat, but unfortunately, the
read.ods() function attempts to use the values of the first column
in a worksheet as row names, and thus
Just export to a plain text format. I know it's somehow not very
satisfying, but really it's the easiest thing to do.
Best,
Ista
On Sat, Jul 9, 2011 at 8:49 PM, Martin Rittner wrote:
> I would like to open OpenOffice (LibreOffice) .ods files in R. I've tried
> the ROpenOffice package from omegah
Martin,
Look at ROOo
on rcom.univie.ac.at
It is near the bottom of the Download page.
Rich
On Sat, Jul 9, 2011 at 8:49 PM, Martin Rittner wrote:
> I would like to open OpenOffice (LibreOffice) .ods files in R. I've tried
> the ROpenOffice package from omegahat, but unfortunately, the read.od
I would like to open OpenOffice (LibreOffice) .ods files in R. I've
tried the ROpenOffice package from omegahat, but unfortunately, the
read.ods() function attempts to use the values of the first column in a
worksheet as row names, and thus does not allow duplicates in there
(which, even more u
Hello,
I am a student from Liverpool UK, working with some genetic data using R.
I got a data.frame with about 250.000 rows and using a for loop to delete
certain rows using the following code:
x <- is a data.frame
x = x[-5,] ---> deletes row 5
x = x[-10,] ---> delets row 10
x = x[-i,] -
On Jul 9, 2011, at 7:02 PM, sven wrote:
Hello,
I am a student from Liverpool UK, working with some genetic data
using R.
I got a data.frame with about 250.000 rows and using a for loop to
delete
certain rows using the following code:
x <- is a data.frame
x = x[-5,] ---> deletes row
On 11-07-09 7:30 AM, Simon Chamaillé-Jammes wrote:
Dear all,
sorry if this is a bit on the sidetrack for R-help.
As a regular R user I have developed quite a lot of custom R functions,
to the point of not always remembering what I have already programmed,
where the file is and so on.
You real
On 07/09/2011 09:30 PM, Simon Chamaillé-Jammes wrote:
Dear all,
sorry if this is a bit on the sidetrack for R-help.
As a regular R user I have developed quite a lot of custom R functions,
to the point of not always remembering what I have already programmed,
where the file is and so on.
I was w
On 07/09/2011 08:16 PM, Rosana Ferrero wrote:
Hi!
I want to do a meta-analysis with count data for treatement/control cases.
Mi problem is that I need to use zero values (an informative value) for the
mean and standard deviation for one of the treatement, but R has a
problem: "Studies
with zero v
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
> On Behalf Of DimmestLemming
> Sent: Saturday, July 09, 2011 10:31 AM
> To: r-help@r-project.org
> Subject: [R] Basic vector logic not working
>
> I am interning in a computer science lab and I
I am interning in a computer science lab and I'm very new to R. The language
basics are clear, but this particular problem isn't:
I have a very large dataframe called "data" which holds data from Halo
matches. I'm trying to analyze a certain window such that data$deaths>20 and
data$deaths<=27.
Wh
thanks sarah
--
View this message in context:
http://r.789695.n4.nabble.com/Confusing-piece-of-R-code-tp3656660p3656898.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/lis
The neat thing about R is that it's interpreted, so you can look for yourself.
On Sat, Jul 9, 2011 at 3:46 PM, Bazman76 wrote:
> m0<-epxression((4*theta1*theta2-theta3^2)/(2*x*theta3^2)-0.5*theta1*x)
>
> params<-all.vars(m0) this reads all the params
> from m0 so thet
Have you looked at the manual for any of these?
?get
?sprintf
?assign
#and so on...
?
Bazman76 wrote:
>
> m0<-epxression((4*theta1*theta2-theta3^2)/(2*x*theta3^2)-0.5*theta1*x)
>
> params<-all.vars(m0) this reads all the
> params from m0 so theta1,2 and 3 corre
There's something you're not telling us. How did you get your data into R?
what does str(train) show? (see inline)
On Sat, Jul 9, 2011 at 3:38 PM, darrelkj wrote:
> Hi, I hope this formatting is correct as it is my first time.
>
> I am trying to do comparisons of values in a data frame that has s
m0<-epxression((4*theta1*theta2-theta3^2)/(2*x*theta3^2)-0.5*theta1*x)
params<-all.vars(m0) this reads all the params
from m0 so theta1,2 and 3 correct?
params<-params[-which(params=="x")] checks which params are multiplied
by x?
np<-length(params)
Oh yes! raw=T did the trick. I even tried raw=T while i was still trying
to dig up the coeffs directly from poly. It didn't cross my mind after i
learned about "fit<- lm( y ~ poly( x, k))" from Gerrit, and i jumped
into my own false conclusions. Good of you to "guess" that was my
problem. Now t
Hi, I hope this formatting is correct as it is my first time.
I am trying to do comparisons of values in a data frame that has some factor
variables.
One instance is
> train$sex[2]
[1] Male
Levels: Female Male
So the value is Male but a comparison like "Male" == train$sex[2]
will always retu
On Jul 9, 2011, at 4:38 PM, David Winsemius wrote:
On Jul 9, 2011, at 12:45 PM, Bansal, Vikas wrote:
Dear sir,
I was doing with different code that is why u did not get output
which I was saying.Please use this code on summary file-
I have a file that is summary.txt(I have attached it)
On Sat, Jul 9, 2011 at 12:08 PM, Pete Brecknock wrote:
>
> DimmestLemming wrote:
>>
>> I am interning in a computer science lab and I'm very new to R. The
>> language basics are clear, but this particular problem isn't:
>>
>> I have a very large dataframe called "data" which holds data from Halo
>
On Jul 9, 2011, at 12:45 PM, Bansal, Vikas wrote:
Dear sir,
I was doing with different code that is why u did not get output
which I was saying.Please use this code on summary file-
I have a file that is summary.txt(I have attached it) .we can read
this file using-
dfa=read.table("summar.
Is is possible to recover the return levels and intervals (as reported in a
turn
level plot) at a given confidence interval? See a repducible example.
#Grouped vector
n <- data.frame(n = rep(c(1:3), each = 10))
y = rgamma(30, shape=0.5, rate = 1, scale = 10)
require(plyr)
require(ismev)
require(
DimmestLemming wrote:
>
> I am interning in a computer science lab and I'm very new to R. The
> language basics are clear, but this particular problem isn't:
>
> I have a very large dataframe called "data" which holds data from Halo
> matches. I'm trying to analyze a certain window such that dat
I used this code by Jim Holtman (Thanks to him)and it is working perfectly.
dfa$value <- sapply(dfa$V10, function(a) paste(as.integer(charToRaw(a)),
collapse = ' '))
Thanking you,
Warm Regards
Vikas Bansal
Msc Bioinformatics
Kings College London
From:
On Sat, 9 Jul 2011, Dan Bebber wrote:
I have obtained shapefiles for Indian states from here:
http://www.maptell.com/index.php?option=com_remository&Itemid=159&func=fileinfo&filecatid=115&parent=category
Problem: I want to extract centroid coordinates for each State, but there is
some coding p
And what is the mapping from ascii characters to decimal numbers that
you seek?
One possible answer is to use utf8ToInt, but it is only one answer.
sapply(c('`', 'a', '_', 'Z', '^', '\\'), utf8ToInt)
` a _ Z ^ \\
96 97 95 90 94 92
On Sat, 9 Jul 2011, Bansal, Vikas wrote:
Dear all,
I
On 09.07.2011 13:14, aletheia wrote:
Hi!
I want to do a meta-analysis with count data for treatement/control cases.
Mi problem is that I need to use zero values (an informative value) for the
mean and standard deviation for one of the treatement, but R has a problem:
"Studies with zero values f
On 08.07.2011 18:54, rstudent wrote:
Tried this
Tried what? Nothing cited Please cite the original examples and
answers so that we can follow up.
Best,
Uwe Ligges
> and received this error:
Error in hist.default(x = integer(0), plot = FALSE) :
invalid number of 'breaks'
--
Vi
On 08.07.2011 18:20, VictorDelgado wrote:
ty S. Goslee,
It's helpfull to test the condition:
all.equal(s[4],0.15)
[1] TRUE
instead the previous "FALSE" answer obtained with
s[4]==0.15
[1] FALSE
but I still need get it to vector r:
Victor Delgado wrote:
for (w in 1:length(s)){
r[w]
Dear sir,
I was doing with different code that is why u did not get output which I was
saying.Please use this code on summary file-
I have a file that is summary.txt(I have attached it) .we can read
this file using-
dfa=read.table("summar.txt",fill=T,colClasses = "character",header=T)
In V10
On 08.07.2011 21:07, Gene Leynes wrote:
I noticed that there is a newer version of Tom Short's "cheat sheet" than
the version currently posted on CRAN.
Personally I like the newer version, but maybe keeping the old version is
deliberate. Anyway, I was wondering if there's someone that I can n
Hi,
I was wondering if someone can tell me what is the difference between
"strata" argument (function "adonis" in "vegan" package) and
using random effects in PERMANOVA+ add-on package to PRIMER6 when doing
permutational MANOVA-s? Is the way permutations are done the same?
Thank you very much in
Hey Matti,
lm() _is_ a least square approximation.
Did you notivce in the poly-help you'll probably need to set raw=TRUE ?
Helped me a lot once I figured that one out...
check this:
a <- c(-5:10) ; b <- 5*a^3 + 2*a^2 - 7*a + 3 + rnorm(15, 0, 100)
data.frame(a,b)
modell <- lm(b ~ poly(a,3,
I personally place functions like this in my .First function under the
.Rprofile, making them instantly accessible. I also keep a function called
my.fun() which lists a data frame containing a column of all the function
names, one for arguments, and a brief description. This also goes in .Fir
Hi, I've playd with this kind of problem before, have yoiu looked at
principal coordinates? You can use the cmdscale() function in R to take the
eigenstructure of your distance matrix and plot the differences in low
dimensional space, it can be very instructive as to the dissimilarity
between your
Hi Chris,
You can use scale_x_discrete() to manually set the locations of the
ticks (the "breaks" argument) and what they are labeled with (the
"labels" argument). If you want a third of the the ids (or so) you
could do something like:
breaks = factor(bb.res.math$id.bb)[seq(1, length(bb.res.math
On Sat, Jul 9, 2011 at 7:32 AM, David Winsemius wrote:
>
> On Jul 9, 2011, at 9:44 AM, Berry Boessenkool wrote:
>>
>>
>> Maybe I'm missing something, but in what package do I find that function?
>>
>>> simplify2array(b)
>>
>> Fehler: konnte Funktion "simplify2array" nicht finden
>> # Function wasn
Try this:
> str(x)
'data.frame': 111 obs. of 5 variables:
$ V7 : int 0 0 0 0 0 0 0 0 0 0 ...
$ V8 : int 1 1 1 1 1 1 1 1 1 1 ...
$ V9 : chr "G" "T" "C" "A" ...
$ V10 : chr "`" "a" "a" "a" ...
$ value: chr "96" "97" "97" "97" ...
> x$value <- sapply(x$V10, function(a) paste(as.in
Dear all,
I have a file that is summary.txt(I have attached it) .we can read
this file using-
dfa=read.table("summar.txt",fill=T,colClasses = "character",header=T)
In V10 column I have ASCII values which I want to convert into decimal
numbers -
my data frame(dfa) which is like-
V7 V
Maybe something like this?
withNames <- function(dframe, lineNames, plotName, colors){
one_day <- subset(dframe, data == '1941-06-16')
one_day$lineNames <- lineNames
ggplot(dframe, aes(date, value, group = factor, color = factor)) +
geom_line(size = 1) +
facet_grid(Facet~., scales =
On Jul 9, 2011, at 9:44 AM, Berry Boessenkool wrote:
Maybe I'm missing something, but in what package do I find that
function?
simplify2array(b)
Fehler: konnte Funktion "simplify2array" nicht finden
# Function wasn't found
help.search("simplify2array")
No help files found with alias
On Jul 9, 2011, at 9:07 AM, Marius Hofert wrote:
Dear David,
thanks for the hint, I completely forgot about phantom(). With that,
I can solve the problem:
library(lattice)
xyplot(0~0, xlim=c(0,3), scales=list(x=list(at=c(1,1.1),
labels=c(expression(hat(t
On Sat, Jul 9, 2011 at 2:37 PM, Abhijit Dasgupta, PhD
wrote:
> I think most of us are in a similar situation. I've usually kept mine in a
> file which is sourced when I start R. The main problem I have with this is
> that it clutters up my environment with a lot of stuff I don't need all the
> tim
Hi,
I have the follow ggplot2 code I am running:
ggplot(data=bb.res.math,aes(x=factor(id.bb),y=bb.math.comb,fill=BB)) +
geom_bar() + facet_grid(BB~.) + scale_fill_brewer(pal="Set1") + ylab("Average
Student Residual (Math)") + xlab("Student ID")
The number of unique id.bb is 2207 and so my X-axi
Hi:
Is this what you're after?
testX <- function(X) {
print(summary(X))
print(str(X))
invisible() # returns nothing
}
testX(1:10)
Min. 1st Qu. MedianMean 3rd Qu.Max.
1.003.255.505.507.75 10.00
int [1:10] 1 2 3 4 5 6 7 8 9 10
NULL
See inline..
On Jul 9, 2011, at 4:20 AM, andrewH wrote:
Using str() in a function.
I am in the early phase of learning R, and I find I spend a lot of
time
trying to figure out what is actually in objects I have created or
read in
from a file. I'm trying to make a simple little function to display a
c
Maybe I'm missing something, but in what package do I find that function?
> simplify2array(b)
Fehler: konnte Funktion "simplify2array" nicht finden
# Function wasn't found
> help.search("simplify2array")
No help files found with alias or concept or title matching ‘simplify2array’
using fuzzy
I think most of us are in a similar situation. I've usually kept mine in
a file which is sourced when I start R. The main problem I have with
this is that it clutters up my environment with a lot of stuff I don't
need all the time. I'm in the process of creating a custom package which
will be l
Dear David,
thanks for the hint, I completely forgot about phantom(). With that, I can
solve the problem:
library(lattice)
xyplot(0~0, xlim=c(0,3), scales=list(x=list(at=c(1,1.1),
labels=c(expression(hat(theta)[italic(n)]),
On Fri, Jul 8, 2011 at 7:31 PM, Jim Lemon wrote:
> Hi folks,
> I have been tormented for some time by Excel's habit of exporting dates to
> CSV files as mm/dd/ format even if the dates are formatted dd/mm/ in
> the display. What's worse, if there are dates that are of ambiguous
> (6/6/2011
Hi!
I want to do a meta-analysis with count data for treatement/control cases.
Mi problem is that I need to use zero values (an informative value) for the
mean and standard deviation for one of the treatement, but R has a problem:
"Studies with zero values for sd.e or sd.c get no weight in meta-ana
Hi,
I want to do a meta-analysis with count data for treatement/control cases.
Mi problem is that I need to use zero values (an informative zero value) for
the mean and standard deviation for one of the treatement, but R has a
problem: "Studies with zero values for sd.e or sd.c get no weight in
met
Július 7-től 14-ig irodán kívül vagyok, és az emailjeimet nem érem el.
Sürgős esetben kérem forduljon Kárpáti Edithez (karpati.e...@gyemszi.hu).
Üdvözlettel,
Mihalicza Péter
I will be out of the office from 7 July till 14 July with no access to my
emails.
In urgent cases please contact Ms. Ed
Hi!
I want to do a meta-analysis with count data for treatement/control cases.
Mi problem is that I need to use zero values (an informative value) for the
mean and standard deviation for one of the treatement, but R has a
problem: "Studies
with zero values for sd.e or sd.c get no weight in meta-ana
Dear all,
sorry if this is a bit on the sidetrack for R-help.
As a regular R user I have developed quite a lot of custom R functions,
to the point of not always remembering what I have already programmed,
where the file is and so on.
I was wondering what other people do in this regards. A basi
On 07/09/2011 06:26 PM, (Ted Harding) wrote:
...
I would not dare to suggest the above exchange for inclusion in
the Fortunes package. Fortunes are supposed to bring us joy.
But there is perhaps scope for a package Misfortunes.
Then, when things are not going well, one can enter
source(misfo
Using str() in a function.
I am in the early phase of learning R, and I find I spend a lot of time
trying to figure out what is actually in objects I have created or read in
from a file. I'm trying to make a simple little function to display a
couple of things about a object, let's say the summar
Thanks Jim and Prof Ripley
i believe, the problem with my internet connection, Coz i tried all the method
found in internet to solve the problem, like proxy setting, set internet true,
etc..intially problem was unable to connect, then after setting proxy it
became 407 authentication problem
Because the common FOSS licenses are installed with R, CRAN asks you
to refer to those copies not distribute your own. See 'Writing R
Extensions'.
I agree that most R packages are lacking copyright statements (which
is a separate issue, and whose purpose varies by jurisdiction:
provided owne
On 07/08/2011 07:22 PM, gwanme...@aol.com wrote:
Dear Sir,
I am doing some work on a population of patients. About half of them are
admitted into hospital with albumin levels less than 33. The other half have
albumin levels greater than 33, so I stratify them into 2 groups, x and y
respectively.
I have obtained shapefiles for Indian states from here:
http://www.maptell.com/index.php?option=com_remository&Itemid=159&func=fileinfo&filecatid=115&parent=category
Problem: I want to extract centroid coordinates for each State, but there is
some coding problem with the shapefiles that prevents
On 09-Jul-11 08:08:56, Duncan Mackay wrote:
> At 09:31 09/07/2011, you wrote:
>>Hi folks,
>>I have been tormented for some time by Excel's habit of exporting
>>dates to CSV files as mm/dd/ format even if the dates are
>>formatted dd/mm/ in the display. What's worse, if there are
>>dates
At 09:31 09/07/2011, you wrote:
Hi folks,
I have been tormented for some time by Excel's habit of exporting
dates to CSV files as mm/dd/ format even if the dates are
formatted dd/mm/ in the display. What's worse, if there are
dates that are of ambiguous (6/6/2011) and unambiguous (16/
74 matches
Mail list logo