[R] How to resolve the following error: (list) object cannot be coerced to type 'double'

2012-09-12 Thread Jason Love
Hello, I'd like to test a significance of two variables in their correlation using rcorr, which gave me an error of format incompatibility. Below are the lines that I typed in the R window and let me know if anyone knows how to resolve this. Var=read.csv("03apr10ab_corr_matrix_in_overlaps.csv",hea

[R] digit precision in p value of rcorr

2012-09-12 Thread Jason Love
10), which doesn't seem to help at all. Any help would be appreciated. P D Prime T statistics D Prime 0 T statistics 0 On Wed, Sep 12, 2012 at 2:19 PM, Jason Love wrote: > thanks all for the prompt answer. > Yes, I need to go through the R tutorial rather than

Re: [R] How to resolve the following error: (list) object cannot be coerced to type 'double'

2012-09-12 Thread Jason Love
NA > > ct$p.value > [1] 0.1101842 > > To the op: you should say which library you are using. Even if Hmisc is a > very popular one. > > Hope this helps, > > Rui Barradas > > > Em 12-09-2012 16:10, R. Michael Weylandt escreveu: > > On Wed, Sep 12,

[R] how to flip row/ column of a matrix?

2012-10-03 Thread Jason Love
Hi all, Sorry about posting such a basic question, but I can't seem to find out a way of flipping a column and row of a matrix. In matlab, this can be easily done by putting a prime next to a variable name. (e.g., a -> a') If anyone knows, please help. -Jason [[alternative HTML version del

[R] how to add a 'label' column

2012-06-01 Thread Jason Love
Hello R users, I'd like to ask a question about how to add a new column. So, below is my situation. In order to perform the repeated ANOVA, I first imported the following table. score=read.csv("patients_tests.csv"); subject test1 test2 test3 test4test5test6 test7 1

Re: [R] how to add a 'label' column

2012-06-02 Thread Jason Love
Thanks all for the helpful tips. Jason On Sat, Jun 2, 2012 at 7:14 AM, Jim Lemon wrote: > On 06/02/2012 05:47 AM, Jason Love wrote: > >> Hello R users, >> I'd like to ask a question about how to add a new column. So, below is my >> situation. >> >>

[R] How can I export a paired t-test output table to an excel file?

2012-06-02 Thread Jason Love
Hi R users, Could anyone let me know how to export a paired t-test output table (see below) to an excel file? Jason, with(score2,pairwise.t.test(values,ind, + p.adjust.method="holm", paired=T)) Pairwise comparisons using paired t tests data: values and ind test1

[R] How can I avoid the warning messages when calling DAAG package?

2012-02-29 Thread Jason Love
Dear R users, I'm a newbie for R and want to ask some basic questions. So, after I open the R software, I typed library(DAAG). Then, I get massive warning messages as shown below. Why does it happen? Also, here are few specific questions regarding each message. 1) Loading required package: MAS

[R] How to remove an object that is loaded every time R is opened?

2012-02-29 Thread Jason Love
Dear R users, I'm a newbie and have another basic question that you guys can answer for me. So, I've been noticing that an object (data frame) called "FossilFuel" is loaded as default when I first open up the R (see below). I created this data frame a while ago which is a data set for tutorial and

Re: [R] How to remove an object that is loaded every time R is opened?

2012-03-01 Thread Jason Love
t Delivers > +44 1249 705450 > > > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of Jason Love > Sent: 29 February 2012 15:10 > To: r-help@r-project.org > Subject: [R] How to remove an object that is loaded ever

[R] How to remove title from plot

2012-04-24 Thread Jason Love
Dear R users-- I made a typo in the title after adding it to a plot, but I don't know how to delete the title. Could anyone let me know the command for that? Also, I wonder if there is any way to amend the title which already exists. Thanks, Jason [[alternative HTML version deleted]] ___