On Aug 16, 2012, at 8:48 PM, ziad.elmou...@tnsglobal.com wrote:
To Whom It May Concern,
In attempting to install the e1071 package, I get the message
below after selecting the mirror site.
And what was the command you issued?
-- Please select a CRAN mirror for use in this session ---
Hello,
Inline
Em 17-08-2012 04:39, bantex escreveu:
Hi guys,
After a long while I came up with this :
set.seed(2)
a-matrix(rnorm(4),ncol=2)
abc-function(a)
{
b=matrix(NA,nrow=3,ncol=3)
b[1,1]=a[1,1]+1
b[1,2]=a[2,1]*a[2,2]
b[1,3]=a[2,2]+a[1,1]
b[2,1]=a[1,1]-5
b[2,2]=sqrt(a[2,2])
On Aug 16, 2012, at 8:39 PM, bantex wrote:
Hi guys,
After a long while I came up with this :
set.seed(2)
a-matrix(rnorm(4),ncol=2)
abc-function(a)
{
b=matrix(NA,nrow=3,ncol=3)
b[1,1]=a[1,1]+1
b[1,2]=a[2,1]*a[2,2]
b[1,3]=a[2,2]+a[1,1]
b[2,1]=a[1,1]-5
b[2,2]=sqrt(a[2,2])
b[2,3]=a[1,1]/a[2,2]
To slightly correct what's been said: In general
lists are linear objects, but a list can have
dimension.
An example is in Circle 8.1.8 of 'The R Inferno'.
http://www.burns-stat.com/pages/Tutor/R_inferno.pdf
Pat
On 16/08/2012 21:50, Schumacher, Jay S wrote:
are these
Dear list,
I have a question about imputing 2 level data in MICE, could you give me some
suggestions please? Thank you very much.
The data set contains 35634 cases and 1007 variables, 280 of them are
categorical variables, and the rest of them are continuous variables. On the
second
Hello,
I've made a mistake, it's in the last if/else/if/else. Complete
statement below.
Em 17-08-2012 06:23, Rui Barradas escreveu:
Hello,
Inline
Em 17-08-2012 04:39, bantex escreveu:
Hi guys,
After a long while I came up with this :
set.seed(2)
a-matrix(rnorm(4),ncol=2)
abc-function(a)
thanks! this solves my problem perfectly
--
View this message in context:
http://r.789695.n4.nabble.com/multiple-boxplots-on-the-same-figure-reducing-space-in-between-tp4640503p4640570.html
Sent from the R help mailing list archive at Nabble.com.
__
Okay, first of a point in ROC space is spanned by true positive rate and false
positive rate.
Now you need to decide if you want to plot a curve for each image or maybe a
curve for the complete data (add all together).
In your case you only have 2 thresholds, so that makes the curves a little
Pretty much every time i reply to a post in this list i get a bounce saying the
above, + waiting for approval.
I first thought it was because i didn't send in plain, but now they are and it
hasn't become any better. Any other ideas? Is this normal?
__
Hi,
thanks for the quick response, but as i said in my case due to two
different threshold the detected features will differ. Moreover, there is
some standard /refined/ formula in calculating the tpr and fpr. herewith i
had attached the refined formula from a standard international journal
Hi,
Here i have a file path,
for eg : -
FPath - D:\\MyFolder\\MyFile.txt
HOW IS POSSIBLE TO GET THE FILE NAME FROM THIS GIVEN PATH ?
- thanks in advance
Antony.
--
View this message in context:
http://r.789695.n4.nabble.com/Get-the-filename-from-the-given-path-tp4640578.html
Sent from the
Hi,
I could build the package, finally, adjusting the path correctly (Rtools
folders in front).
Regards
Eva
--- El jue, 16/8/12, Eva Prieto Castro evapcas...@yahoo.es escribió:
De: Eva Prieto Castro evapcas...@yahoo.es
Asunto: Re: [R] Problem with global variable building a package
Para:
df - data.frame (
RowId = 4:7,
x=c(1_1, 2_2, 3_3, 3_3),
y=c(1_1, 3_3, 2_2, 3_3)
)
How can we compare corresponding values of x and y (first value of x exacly
matches with the first value of y)?
If they were not matced exactly how can we get the row id?
In
On 17.08.2012 02:42, David Winsemius wrote:
On Aug 16, 2012, at 4:33 PM, Kevin Goulding wrote:
Hi, I'm having trouble installing and using the 'foreign' package in R
on a
UNIX machine.
sessionInfo()
R version 2.11.1 (2010-05-31)
sparc-sun-solaris2.10
locale:
[1] C
On 08/17/2012 07:48 PM, Sri krishna Devarayalu Balanagu wrote:
df- data.frame (
RowId = 4:7,
x=c(1_1, 2_2, 3_3, 3_3),
y=c(1_1, 3_3, 2_2, 3_3)
)
How can we compare corresponding values of x and y (first value of x exacly
matches with the first value of
It happens relatively often to me.
Regards
Le 17/08/2012 17:19, Jessica Streicher a écrit :
Pretty much every time i reply to a post in this list i get a bounce saying the
above, + waiting for approval.
I first thought it was because i didn't send in plain, but now they are and it
hasn't
Hello, many thanks for the advice.
Unfortunately I did not mention that my os is Windows 7. I am sorry for
that.
Some feedback here?
install.packages(tikzDevice, repos=http://R-Forge.R-project.org;)
Installing package(s) into C:/Users/N31k/Documents/R/win-library/2.14
(as lib is
I am trying to compile the R package KernGPLM found here:
http://www.marlenemueller.de/KernGPLM/KernGPLM_0.65.tar.gz
since the binary available is for R 2.4.
but the compilation ends with the error message:
*** arch-i386
ERROR: compilation failed for the package 'KernGPLM'
Here is my session
On Thu, Aug 16, 2012 at 3:30 PM, Kenneth Rose kennethros...@gmail.com wrote:
Hi R community
I copied a bit of my R code that gets some data from a database. You
won't be able to run the code, but I am a beginner so you will
probably understand what going on.
I would like to make a variable
Hello,
I've changed the name of the data.frame, df is an R function.
DF$RowId[ DF$x != DF$y ]
Hope this helps,
Rui Barradas
Em 17-08-2012 10:48, Sri krishna Devarayalu Balanagu escreveu:
df - data.frame (
RowId = 4:7,
x=c(1_1, 2_2, 3_3, 3_3),
y=c(1_1, 3_3, 2_2, 3_3)
On 17.08.2012 12:37, nikos giallousis wrote:
Hello, many thanks for the advice.
Unfortunately I did not mention that my os is Windows 7. I am sorry for
that.
Some feedback here?
Yes: R-forge seems to support the current release version of R only re.
binaries. If you want it for an old
At 19:01 16/08/2012, Viechtbauer Wolfgang (STAT) wrote:
I had noticed this oversight a while ago. In an updated version of
the metafor package (hopefully to be released in the near future),
the argument will be called maxiter (as intended). Using maxit
will then work as well, due to partial
Thanks, Bert.
2012/8/17 Bert Gunter gunter.ber...@gene.com
1. Post on R-sig-mixed-models, not here.
2. Models 2 and 3 make no sense (to me, anyway). What do you think
they mean? (Don't answer here -- explain on the mixed models list).
-- Bert
On Thu, Aug 16, 2012 at 9:13 PM, li li
On 17.08.2012 12:38, Fg Nu wrote:
I am trying to compile the R package KernGPLM found here:
http://www.marlenemueller.de/KernGPLM/KernGPLM_0.65.tar.gz
since the binary available is for R 2.4.
but the compilation ends with the error message:
*** arch-i386
ERROR: compilation failed for
On Fri, Aug 17, 2012 at 5:28 AM, Rantony antony.akk...@ge.com wrote:
Hi,
Here i have a file path,
for eg : -
FPath - D:\\MyFolder\\MyFile.txt
HOW IS POSSIBLE TO GET THE FILE NAME FROM THIS GIVEN PATH ?
Quite possibly by yelling at it
or regular expressions: you know, whatever
-
On Fri, Aug 17, 2012 at 5:28 AM, Rantony antony.akk...@ge.com wrote:
Hi,
Here i have a file path,
for eg : -
FPath - D:\\MyFolder\\MyFile.txt
HOW IS POSSIBLE TO GET THE FILE NAME FROM THIS GIVEN PATH ?
Please don't shout.
?basename
Berend
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 17/08/12 15:04, Berend Hasselman wrote:
On Fri, Aug 17, 2012 at 5:28 AM, Rantony antony.akk...@ge.com wrote:
Hi,
Here i have a file path, for eg : - FPath - D:\\MyFolder\\MyFile.txt
HOW IS POSSIBLE TO GET THE FILE NAME FROM THIS GIVEN
Hello, I have a data.frame with 10-15 entries which looks like this:
group time1 time2 time3
1 F18 4394.500 21043.50 14949.00
2 F25 4678.000 23727.65 15683.12
3 F30 4909.775 23487.60 16724.40
I plot this with:
plot(variable[,2:4])
so that a plot with 3 rows and 3
Above mentioned formula is wrong - maybe a typo
http://en.wikipedia.org/wiki/Receiver_operating_characteristic
The false positive rate is the rate of false positives, meaning how many of the
total negatives (all in reality negatives(N), that is, all negatives falsely
classified as positives(fp)
I tried these two and testquery2 now does the job :) Somehow the str_c
function from the stringr package doesn't work when I run the sqlQuery
function even though the testquery string is the same as testquery2
string. Thanks for the pointers!
fromdate - c('2005-01-01 00:00:00')
testquery -
Thanks Gabor!
This is exactly what I was searching for! --- And it works like a charm.
On Fri, Aug 17, 2012 at 1:03 PM, Gabor Grothendieck
ggrothendi...@gmail.com wrote:
On Thu, Aug 16, 2012 at 3:30 PM, Kenneth Rose kennethros...@gmail.com wrote:
Hi R community
I copied a bit of my R code
Hello,
basename(FPath)
Hope this helps,
Rui Barradas
Em 17-08-2012 10:28, Rantony escreveu:
Hi,
Here i have a file path,
for eg : -
FPath - D:\\MyFolder\\MyFile.txt
HOW IS POSSIBLE TO GET THE FILE NAME FROM THIS GIVEN PATH ?
- thanks in advance
Antony.
--
View this message in context:
Thanks pramod.
From: Pramod [via R] [mailto:ml-node+s789695n4640600...@n4.nabble.com]
Sent: Friday, August 17, 2012 5:24 PM
To: Akkara, Antony (GE Energy, Non-GE)
Subject: Re: Get the filename from the given path
x - substr(FPath,13,nchar(FPath)) should give you the desired output.
On 17.08.2012 11:28, Rantony wrote:
Hi,
Here i have a file path,
for eg : -
FPath - D:\\MyFolder\\MyFile.txt
HOW IS POSSIBLE TO GET THE FILE NAME FROM THIS GIVEN PATH ?
basename(FPath)
Uwe Ligges
- thanks in advance
Antony.
--
View this message in context:
Do
splits - strsplit(filePath,file://%22,fixed=true)[[1/]]
fileName - splits[length(splits)])
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting
HI,
Try this:
dat1-data.frame(slope=c(slope (60/25/15),slope (90/10),slope
(40/35/15/10),slope (40/25/25/10) ))
dat1$slope-gsub(slope\\s+.*(\\(.*\\)),\\1,dat1$slope)
dat1$slope-gsub(\\((.*)\\),\\1,dat1$slope)
dat2-strsplit(dat1$slope,/)
dat2[[1]][4]-0
dat2[[2]][3:4]-0
Why the error is coming? even though the length of outcome.new$compkey and
outcome.new$armkey were exactly same.
Can anyone help?
setwd(D:/AZ)
library(RODBC)
cdb_cnct -
odbcConnectExcel(AZIF_DC_GVK_NSCLC_MSALL_287papers_02072012_141450_v1_4.xls)
outcomes - sqlFetch(cdb_cnct, Outcomes_info)
Michael,
Thank you for suggestions;
it seems to me that there's a fundamental lacuna with respect to names of a
three dimensional array:
that is, rownames fits dimension 1, colnames fits another dimension(that is, 3,
if I read it correctly),
but there is no specific name for the third
?text
Have you read the Introduction to R tutorial. If not, do so before
further posting. If so, re-read section 12.2.
-- Bert
On Fri, Aug 17, 2012 at 6:33 AM, cm256 d-...@gmx.at wrote:
Hello, I have a data.frame with 10-15 entries which looks like this:
group time1 time2 time3
1
On Aug 15, 2012, at 23:17 , Trevor Carey-Smith wrote:
On 08/15/2012 10:45 PM, S Ellison wrote:
label- 'Temperature'
unit- bquote(degree*C)
text(5,5,substitute(l~u, list(l=label, u=unit)))
Thanks, that's exactly what I was after.
A curious application of bquote though. How about using it
Have you showed us how to reproduce your original problem?
Have you showed us the output of traceback() after encountering
the error? Have you tried setting options(error=recover) before
encountering the error and then using recover() to look at the dimensions
and dimnames of the array that
On Aug 17, 2012, at 10:00 AM, Rainer M Krug r.m.k...@gmail.com wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 17/08/12 15:04, Berend Hasselman wrote:
On Fri, Aug 17, 2012 at 5:28 AM, Rantony antony.akk...@ge.com wrote:
Hi,
Here i have a file path, for eg : - FPath -
The length of a vector of yes/no answers has little to do with the number of
possible responses (2). Factors keep both pieces of information.
If you only have yes responses in your data set, when converted to factor you
would have to tell R that other responses were possible.
I prefer to
On Fri, Aug 17, 2012 at 6:46 AM, Travis Perry travis.pe...@furman.edu wrote:
Dr. Bates,
Our department is considering replacing existing statistical
software packages in our curriculum with R, at my request. To better inform
this decision we are interested to know the prevalence of
Can anyone tell me how to remove several numbers for a sequence. For example:
xx- c(1,5,7,10)
yy-seq(1,10,1)
how do I get take xx away from yy to get the new sequence
2,3,4,6,8,9
Many thanks in advance
--
View this message in context:
I have a quick question: It appears that in rgdal v0.7-12 (R version
2.15.1, OSX 10.6.8) writeOGR will not write a shapefile the the
current directory. Is this correct? An earlier version of rgdal must
have allowed this because I have a older script that used to work, but
doesn't now.
So, as an
Hello,
The message is not about lengths, it's about sets. It means that the two
factors, compkey and armkey don't have the same levels, which you can
see with
levels(compkey)
levels(armkey)
and test for equality.
Also, your post's prologue doesn't have a direct relation with the
error,
I know about the text function,
it works well if I plot just 2 variables - I give the x and the y
coordinates,
but I doesn't work if i try to do this in this plot whith the multiple
variables:
*time1 plot plot
plot time2 plot
plot plot time3*
so what would the solution?
variable[,2:4] are the
The provided solution is:
panel.text - function(x, y, text, ...)
text (x, y, labels = text)
pairs(variable[,2:4], pch=19, text = variable$group,
lower.panel = panel.text,
upper.panel = panel.text)
--
View this message in context:
Subject: Re: [R] set working directory to current source directory
A windows-centric work-round (assuming .Rdata files are 'associated' with the
right R binary n installation) is to save an empty environment in the relevant
project directory with the source file you would normally run.
On 08/17/2012 09:25 AM, Douglas Bates wrote:
On Fri, Aug 17, 2012 at 6:46 AM, Travis Perry travis.pe...@furman.edu wrote:
Dr. Bates,
Our department is considering replacing existing statistical
software packages in our curriculum with R, at my request. To better inform
this decision
Take a look at ?setdiff
Michael
On Aug 17, 2012, at 12:18 PM, penguins cat...@bas.ac.uk wrote:
Can anyone tell me how to remove several numbers for a sequence. For example:
xx- c(1,5,7,10)
yy-seq(1,10,1)
how do I get take xx away from yy to get the new sequence
2,3,4,6,8,9
Many
When you call plot with more than two columns, uses the pairs() function.
That means you have to write a panel function. Here are a couple of
relatively simple examples:
pairs(variable[,2:4], panel=function(x, y, ...) text(x, y,
variable$group))
pairs(variable[,2:4], panel=function(x, y,
HI,
Try this:
yy[is.na(match(yy,xx))]
#[1] 2 3 4 6 8 9
A.K.
- Original Message -
From: penguins cat...@bas.ac.uk
To: r-help@r-project.org
Cc:
Sent: Friday, August 17, 2012 12:18 PM
Subject: [R] Remove several numbers from a sequence
Can anyone tell me how to remove several numbers
On 17-08-2012, at 18:18, penguins wrote:
Can anyone tell me how to remove several numbers for a sequence. For example:
xx- c(1,5,7,10)
yy-seq(1,10,1)
how do I get take xx away from yy to get the new sequence
2,3,4,6,8,9
You can also do this
yy[!(yy %in% xx)]
Berend
Dear All,
My question is from the simulation of survival time with censoring
indicator.
Suppose I have a person with:
1. exponential life time, h(t) = lambda* exp(- lambda* t), some
known lambda0.
2. a pre-determined event time, constant T;
3. a censoring indicator, delta=0 if the observed life
Q.
Here i have a file path, for eg : - FPath - D:\\MyFolder\\MyFile.txt
HOW IS POSSIBLE TO GET THE FILE NAME FROM THIS GIVEN PATH ?
A.
x - substr(FPath,13,nchar(FPath)) should give you the desired output.
But this is much like saying
x - MyFile.txt
will give you the desired output - where
On Aug 17, 2012, at 9:25 AM, aleksandr shfets a_shf...@mail.ru wrote:
Michael,
Thank you for suggestions;
it seems to me that there's a fundamental lacuna with respect to names of a
three dimensional array:
A lacuna in the English language, not in R: though perhaps Prof Ripley's
The cbind method to data.frame is just a wrapper for data.frame(...). So
character columns are converted to factors.
dat - cbind(data.frame(x = 1:3), a = c(a, b, c), b = c(a, a, c))
str(dat)
## 'data.frame': 3 obs. of 3 variables:
## $ x: int 1 2 3
## $ a: Factor w/ 3 levels a,b,c: 1 2 3
##
yy[!yy%in%xx]
Clint BowmanINTERNET: cl...@ecy.wa.gov
Air Quality Modeler INTERNET: cl...@math.utah.edu
Department of Ecology VOICE: (360) 407-6815
PO Box 47600FAX:(360) 407-7534
Olympia, WA 98504-7600
Here's a slightly different approach without regular expressions:
dat1-data.frame(slope=c(slope (60/25/15),slope (90/10),
slope (40/35/15/10),slope (40/25/25/10) ))
tmp - strsplit(as.character(dat1$slope), split=[/()])
tmp2 - sapply(tmp, function(x) as.numeric(x[-1]))
maxlen -
Dear all,
I am really confused with the syntax for mixed model using lmer in lme4
library.
My model is Value = Sample + Run (nested with Sample )
Here sample is a fixed effect and Run is a random effect nested with
sample.
Can anyone give some hint on the correct syntex for this model.
Folks:
Over the years, many people -- including some who I would consider
real expeRts -- have criticized factors and advocated the use
(sometimes exclusively) of character vectors instead. I would just
like to point out that, for me, factors provide one feature that I
find to be very convenient:
I second to Bert's opinion, factors can be confusing, but they have quite nice
features which can not be easily mimicked by plain character vectors. I find
extremelly usefull possibility of manipulating its levels.
fac-factor(sample(letters[1:5], 20, replace=TRUE))
fac
[1] e e d d e e c e a
I don't know if my recent post on this prompted your post, but I don't see much
to argue with in your discussion. I find factors to be useful for managing
display and some kinds of analysis.
However, I find them mostly a handicap when importing, merging, and handling
data QC. Therefore I
Hi,
On Fri, Aug 17, 2012 at 1:58 PM, Jeff Newmiller
jdnew...@dcn.davis.ca.us wrote:
I don't know if my recent post on this prompted your post, but I don't see
much to argue with in your discussion. I find factors to be useful for
managing display and some kinds of analysis.
However, I find
Steve, et. al:
Yes, if object.size() is to be believed, you're right:
x -sample(c(small,medium,large),1e4,rep=TRUE)
y - factor(x)
object.size(x)
40120 bytes
object.size(y)
40336 bytes
I stand (happily) corrected.
-- Bert
On Fri, Aug 17, 2012 at 11:09 AM, Steve Lianoglou
Dear R users,
I'm estimating a mixed effects model in which the spatial correlation is
controlled for by the corGaus structure. I'm wondering if there is a
document or paper that explains how the spatial correlation structure (such
as corExp or corGaus) works.
Let me use the example and data
Hello,
No, factors may use less memory. System dependent?
x -sample(c(small,medium,large),1e4,rep=TRUE)
y - factor(x)
object.size(x)
80184 bytes
object.size(y)
40576 bytes
sessionInfo()
R version 2.15.1 (2012-06-22)
Platform: x86_64-pc-mingw32/x64 (64-bit)
locale:
[1]
On Fri, Aug 17, 2012 at 11:34 AM, Rui Barradas ruipbarra...@sapo.pt wrote:
Hello,
No, factors may use less memory. System dependent?
I think it's a 32-bit vs. 64-bit distinction - I get Rui's results on
64-bit Windows and Linux installation, but Bert's result on a 32-bit
Linux machine.
Peter
Are the output files already there?
In that case, try overwrite_layer=TRUE
-Don
--
Don MacQueen
Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062
On 8/17/12 9:28 AM, Scott Duke-Sylvester scottdukesylves...@gmail.com
wrote:
I have a quick
In the example I gave, the temp.shp, 'temp.bdf, etc ... do not
exist in the current working directory (.) before I call:
writeOGR(shape, '.', layer='temp', driver='ESRI Shapefile', verbose=TRUE)
I should have specified this. Also, the working directory permissions
are set to owner
Uwe,
I did give you the output from R CMD INSTALL (or at least, what I thought was
the relevant part).
Here is the output in toto:
* installing to library 'C:/programming/r/revolutions/R-2.14.2/library'
* installing *source* package 'KernGPLM' ...
** libs
*** arch - i386
ERROR: compilation
Thank you both for your time and assistance.
On Fri, Aug 17, 2012 at 12:25 PM, Douglas Bates ba...@stat.wisc.edu wrote:
** **
On Fri, Aug 17, 2012 at 6:46 AM, Travis Perry travis.pe...@furman.edu
wrote:
Dr. Bates,
Our department is considering replacing existing statistical
Dear all,
Good day!
I have a problem in reading Excel files in R and appending them to each other.
Suppose we have several Excel files in a directory with headers and want to use
R to append them in a single file with an additional variable in the final file
indicating from which files the
From a blurb I wrote recently:
Publishing on R has accelerated over the last few years. Chapman and
Hall/CRC Press publish over 50 books on R and has recently issued a call for
new submissions. Springer has a growing series called Use R! (38 volumes).
Wiley has a series called Statistics Using R
I am reposting my message from April 8th because I never received a response to
the original post:
Dear R-listers,
I am an MD and clinical epidemiologist developing a measure of comorbidity
severity for patients with liver disease. Having developed my comorbidity score
as the linear
On Aug 17, 2012, at 4:19 PM, Amir Kasaeian amir_kasae...@yahoo.com wrote:
Dear all,
Good day!
I have a problem in reading Excel files in R and appending them to each
other. Suppose we have several Excel files in a directory with headers and
want to use R to append them in a single file
Hello,
Em 17-08-2012 20:27, Bert Gunter escreveu:
... so it may be just the way object.size() counts in the two cases, right?
Or maybe the way character vectors and factors are coded.
(64 bit Windows 7 or ubuntu 12.04) 80k for the character vector seems to
be 8 * 1e4 for pointers plus room
Hello Everyone
I have a dual-core Intel i3-370M processor and Windows 64 operating system.
I have a 3GB RAM and my processor can support a maximum of 8GB RAM.
I have virtual memory enabled on my computer.
I am running a program in the 64 bit R which implements a MCMC on a large
dataset and
Yes, basename(filepath) assumes that filepath represents
path to a file on the OS that R is running on. Hence, on
Windows we get
basename(dir\\path)
[1] path
basename(dir/path)
[1] path
because both / and \ are valid separators (and invalid in file names)
Linux allows \ in a file name
You probably have hyper threading so even though you only have two
physical cores, there are 4 logical cores, hence 25%. Google can lead
you to how to adjust this, if possible.
Cheers,
Josh
On Fri, Aug 17, 2012 at 2:41 PM, Shantanu MULLICK b00295...@essec.edu wrote:
Hello Everyone
I have a
I'm an R newbie. I'm trying to use Rcmdr to make a 3-D scatterplot of data
from a two-independent-variable regression and of the regression plane.
The object dat in R contains the data:
print(dat[1:20,])
y x1 x2
1 431.69 76.40 132.80
Rcmdr knows about dat. If I click Data,
Hello,
You need to provide us with a bit more information:
Do all the files have the same structure, i.e., tables with the same
columns? Are they xls, xlsx or csv files? Do their names share something
in common such as a preffix or are they alone in the directory, or...?
When you write in the
Dear Todd,
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
On Behalf Of ToddE
Sent: Friday, August 17, 2012 5:57 PM
To: r-help@r-project.org
Subject: [R] Making data in R available to Rcmdr
I'm an R newbie. I'm trying to use Rcmdr to
Hi all,
I'm just having trouble getting row means of a matrix which
contain zero.
For example.
m=matrix(c(1:4, c(0, 0, 0, 0), c(1, 0, 1, 1)), nc=4, byrow=TRUE)
I want to be able to calculate means for non-zero elements for each row.
## what i have is this
apply((m[apply(m != 0,
Thanks David. I have actually 1 more question. How do I assign a name to the
output created by this function?
Cheers,
B
--
View this message in context:
http://r.789695.n4.nabble.com/specific-matrix-element-tranformation-tp4640550p4640680.html
Sent from the R help mailing list archive at
On Aug 17, 2012, at 8:28 PM, Yingwei Lee wrote:
m=matrix(c(1:4, c(0, 0, 0, 0), c(1, 0, 1, 1)), nc=4, byrow=TRUE)
is.na(m) - m==0
rowMeans(m, na.rm=T)
#[1] 2.5 NaN 1.0
--
David Winsemius, MD
Alameda, CA, USA
__
R-help@r-project.org mailing list
This is not a typo error, in feature detection when it was not able to
calculate 'tn' then they are using this formula and there are more papers
(referred journal) which quote same formula. In the same manner i had also
got the tp, fp and fn. Based on it can some one suggest me to plot the ROC
89 matches
Mail list logo