Re: [R] understanding the no-label concept

2014-10-11 Thread Prof Brian Ripley
On 11/10/2014 22:16, David Winsemius wrote: On Oct 11, 2014, at 1:04 PM, Richard M. Heiberger wrote: It looks like a terminology issue. R has names for elements of a vector and for rows and columns of a matrix or data.frame, and more generally for all dimensions of multi-dimensional array. I

Re: [R] Update package dor r-devlop

2014-10-11 Thread Prof Brian Ripley
On 12/10/2014 07:25, Jeff Newmiller wrote: Off topic. See the Posting Guide, which indicates that development questions belong on R-devel. And questions about Mac-specific distributions of R on R-sig-mac. But note that the best way to select source packages is options(pkgType = "source") -

Re: [R] Update package dor r-devlop

2014-10-11 Thread Jeff Newmiller
Off topic. See the Posting Guide, which indicates that development questions belong on R-devel. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go...

[R] rbind in array of lists

2014-10-11 Thread Cesar Caballero
Hi all, I have an array of lists. All lists have the same names and the vectors inside each name have the same dimension. For instance, a[1:4] [[1]] [[1]]$var1 [1] 1 2 3 4 5 [[1]]$var2 [1] 6 7 [[2]] [[2]]$var1 [1] 2 4 6 8 10 [[2]]$var2 [1] 12 14 [[3]] [[3]]$var1 [1] 3 6 9 12 15 [[3

[R] Update package dor r-devlop

2014-10-11 Thread Marc Girondot
I use R-devel 3.2 in order to check "as cran" packages that I develop. To maintain my package uptodate, I cannot use the update.packages() directly because the packages are not still compiled for version 3.2. Then I use: update.packages(contriburl = contrib.url(repos=options("repos")$repos, typ

Re: [R] Help with caret, please

2014-10-11 Thread Max Kuhn
What you are asking is a bad idea on multiple levels. You will grossly over-estimate the area under the ROC curve. Consider the 1-NN model: you will have perfect predictions every time. To do this, you will need to run train again and modify the index and indexOut objects: library(caret) set.s

[R] Help with caret, please

2014-10-11 Thread Iván Vallés Pérez
Hello, I am using caret package in order to train a K-Nearest Neigbors algorithm. For this, I am running this code: Control <- trainControl(method="cv", summaryFunction=twoClassSummary, classProb=T) tGrid=data.frame(k=1:100) trainingInfo <- train(Formula, data=trainData, method = "knn",tuneGr

Re: [R] errors in initial values in R2winBUGS

2014-10-11 Thread Daniel Miquelluti
You are separating the objects using commas, the correct should be semicolons. Example: xi1=matrix(data=rep(0.0,600),ncol=3);xi2=matrix(data=rep(0.0,600),ncol=3)) Best regards, Daniel Miquelluti Em S�bado, 11 de Outubro de 2014 18:06, Uwe Ligges escreveu: On 11.10.2014 06:09, thanoon

Re: [R] understanding the no-label concept

2014-10-11 Thread William Dunlap
You can use 'factors' to assign labels to small integer values. E.g., > x <- c(1,2,3,4,3) > fx <- factor(x, levels=1:5, labels=c("One","Two","Three","Four","Five")) > table(fx) fx One Two Three Four Five 1 1 2 1 0 Bill Dunlap TIBCO Software wdunlap tibc

Re: [R] understanding the no-label concept

2014-10-11 Thread David Winsemius
On Oct 11, 2014, at 1:04 PM, Richard M. Heiberger wrote: > It looks like a terminology issue. R has names for elements of a > vector and for rows and > columns of a matrix or data.frame, and more generally for all > dimensions of multi-dimensional array. > > I think your next step is to read th

Re: [R] errors in initial values in R2winBUGS

2014-10-11 Thread Uwe Ligges
On 11.10.2014 06:09, thanoon younis wrote: Dear all R users I am trying to find the bayesian analysis using R2winBUGS but i have errors in initial values with two groups. the R-code #Initial values for the MCMC in WinBUGS init1<-list(uby1=rep(0.0,10),lam1=c(0.0,0.0,0.0,0.0,0.0,0.0), gam1=c(1.0

Re: [R] understanding the no-label concept

2014-10-11 Thread Bert Gunter
No, you are wrong. Read the docs! -- start with "An Introduction to R" which ships with R. Please do not post further until after you have done your homework. x <- c(a=1,b=2,c=3) See also ?names. Cheers, Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374 "Data is not informat

Re: [R] understanding the no-label concept

2014-10-11 Thread Richard M. Heiberger
It looks like a terminology issue. R has names for elements of a vector and for rows and columns of a matrix or data.frame, and more generally for all dimensions of multi-dimensional array. I think your next step is to read the introductory document. Start with either of these (they are the same

[R] understanding the no-label concept

2014-10-11 Thread moonkid
I am new to R but a bit familiar with Stata and SPSS and a software dev. As I understand it right, there is no possibility to give variables or values a lable. Is that right? Just for example. "x" need a name. And the four values (1, 2, 3, 4) need it to. [code] > table(x) 1 2 3 4 17 6 6 2

Re: [R] xts array in minutes ?

2014-10-11 Thread ce
that's very good , thanks. -Original Message- From: "John McKown" [john.archie.mck...@gmail.com] Date: 10/11/2014 12:20 PM To: "ce" CC: "r-help" Subject: Re: [R] xts array in minutes ? On Sat, Oct 11, 2014 at 11:03 AM, ce wrote: > > Dear all, > > I want to convert to character array

Re: [R] xts array in minutes ?

2014-10-11 Thread John McKown
On Sat, Oct 11, 2014 at 11:03 AM, ce wrote: > > Dear all, > > I want to convert to character arrays "2014-10:10 00:00:00" and > "2014-10-10:23:59:00" to an array of minutes : > > 2014-10:10 00:00:00 > 2014-10:10 00:01:00 > 2014-10:10 00:02:00 > > What is the best way to do it ? > thanks > Best?

[R] xts array in minutes ?

2014-10-11 Thread ce
Dear all, I want to convert to character arrays "2014-10:10 00:00:00" and "2014-10-10:23:59:00" to an array of minutes : 2014-10:10 00:00:00 2014-10:10 00:01:00 2014-10:10 00:02:00 What is the best way to do it ? thanks __ R-help@r-project.org mail

Re: [R] Problem Invoking System Commands from R

2014-10-11 Thread Matt Borkowski
I appreciate the feedback. 1) The paths are properly set...I only wonder if the spaces in the path to wget.exe are problematic for R. The full path (C:\\Program Files (x86)\\GnuWin32\\bin) is properly included in the return list for Sys.getenv("PATH"). Sys.which("wget") returns: >"C:\\PROGRA~2

Re: [R] complain about a[-integer(0)]

2014-10-11 Thread Jeff Newmiller
I don't understand what you think it should actually return. As for why it should behave the way it does now... hmmm, keep in mind that each sub-expression needs to make sense as well. Consider -integer(0)... applying the unary negation operator to a vector of integers yields a new vector of

Re: [R] complain about a[-integer(0)]

2014-10-11 Thread PO SU
Tks, i have to do it. -- PO SU mail: desolato...@163.com Majored in Statistics from SJTU At 2014-10-11 17:57:40, "Jim Lemon" wrote: >On Sat, 11 Oct 2014 05:25:14 PM PO SU wrote: >> Dear helpeRs, >> let a <- 1:10 >> let b <- integer(0) first, then i will randomly write a intege

Re: [R] complain about a[-integer(0)]

2014-10-11 Thread Jim Lemon
On Sat, 11 Oct 2014 05:25:14 PM PO SU wrote: > Dear helpeRs, > let a <- 1:10 > let b <- integer(0) first, then i will randomly write a integer > differently in the range(1,10) or NULL into b. for supposed 5 times. then > i want to get a[-b],that means i not want the values at index b. if

[R] complain about a[-integer(0)]

2014-10-11 Thread PO SU
Dear helpeRs,     let a <- 1:10     let b <- integer(0) first, then i will randomly write a integer differently in the range(1,10)  or NULL into b. for supposed 5 times.    then i want to get a[-b],that means i not want the values at index b.     if any time of  5 times generate a integer, it w

Re: [R] Problem Invoking System Commands from R

2014-10-11 Thread Prof Brian Ripley
Please do follow the posting guide and not sent HTML: it gets mangled. There are two issues here: 1) Paths. Use Sys.which("wget") to see if the command is on your path. I suspect it is not, and you need to set the path when running R in the same way as is done for your shell. Compare the se