Re: [R] Unable to compile & install rggobi (Solved)

2012-04-28 Thread Indrajit Sengupta
I finally managed to get this done. I went to the contributed packages for version 2.14 Windows 32 bit and downloaded the zip file. This got installed smoothly in R 2.15. Don't know why I did not try this before.   Regards, Indrajit   From: Prof Brian Ripley To

[R] Equivalent of Nothing (in VBA) or [] in Matlab in R

2012-04-28 Thread lm
Hi, I am very new to R so please excuse me if I am asking very obvious questions. I am trying to call a blackbox api function implemented in as a COM object from R. The function definition says that 1. if calling from VBA, the first parameter should be set to "Nothing" 2. if calling from matlab,

Re: [R] r-package RDCOMClient

2012-04-28 Thread lm
Hi, I am new to R. I was trying to use RDCOMClient package to access com object based applications within R. This has been working fine for a while. I have identical set up on two PCs (R-2.1.10 running on XP both on network so same profile). Recently while installing a new package, I had to upgrade

Re: [R] lanyrd site for useR! 2012

2012-04-28 Thread cory n
I signed up. I'm doing a talk on real time text classification using node.js and R Cory On Saturday, April 28, 2012 2:20:08 PM UTC-5, Barry Rowlingson wrote: > > There's now a page on lanyrd ("the social conference directory") for > useR! 2012 in Nashville: > > http://lanyrd.com/2012/useR/

Re: [R] Min , Max

2012-04-28 Thread Rui Barradas
Hello, > > Yes ,It worked. So how can I insert it in my code? Please > Simply like this: #for (n in 1:length(listfile)) #{ # h=listfile[n] # for(h in listfile) { Rui Barradas -- View this message in context: http://r.789695.n4.nabble.com/Min-Max-tp4593065p4595458.html Sent from the R h

Re: [R] Min , Max

2012-04-28 Thread Rui Barradas
Hello, again. > > Yes ,It worked. So how can I insert it in my code? Please > Easily. Just replace your beginning of loop for(n in 1:length(listfile)) by the for(...) above, and comment out the line h=listfile[n] since it's no longer needed. Rui Barradas -- View this message in context:

Re: [R] Min , Max

2012-04-28 Thread Rui Barradas
Hello, > > Hello again, > I am still having the same problem with the main loop.it succeeded to > finish reading and writing from the first file in my > listfile but failed when it moves to the second file giving this > error:Error: subscript out of bounds > Don't subscript then. The only place

Re: [R] Consolidate column contents of equally "named" columns

2012-04-28 Thread Rui Barradas
Hello, This solution is not very pretty but it works. nms <- unlist(d[1, ]) nm <- unique(nms) dd <- na.exclude(sapply(nm, function(jj){ inx <- nms %in% jj do.call(rbind, as.list(d[, inx])) })) dd <- dd[ dd[ , nm[1]] != nm[1], ] dd <- data.frame(apply(dd, 2,

Re: [R] problem in matching numbers in two variables

2012-04-28 Thread Rui Barradas
Hello, Why not == ? x == y which(x == y) Hope this helps, Rui Barradas -- View this message in context: http://r.789695.n4.nabble.com/problem-in-matching-numbers-in-two-variables-tp4594912p4594976.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] generate random numbers for lotteries

2012-04-28 Thread Mike Miller
On Fri, 27 Apr 2012, Vale Fara wrote: I am working with lotteries and I need to generate two sets of uniform random numbers. Requirements: 1) each set has 60 random numbers random integers? 2) random numbers in the first set are taken from an interval (0-10), whereas numbers in the second s

[R] How to retrieve QC.pdf generated by IMA.methy450R function

2012-04-28 Thread jtoconnell
Hi, I am new to R and have been trying to utilize the IMA package for analyzing Illumina methylation data. The IMA.methy450R function is used to load the Illumina data set and the manual indicates that this should create a QC.pdf file with basic quality control information ("Basic Quality Control i

[R] r2 and p value dispaly in table

2012-04-28 Thread Kristi Glover
Hello R User, I was trying to display r.squared and p value in table from regression, but I could not display these parameters in the table (matrix) for example individual <- c(1,1,6,8,8,9,9,9,12,12) day <- c(4,17,12,12,17,3,9,22,13,20) condition <- c(0.72, 0.72, 0.67, 0.73, 0.76, 0.65, 0.68, 0

Re: [R] Hmisc::xYplot - text on xaxis

2012-04-28 Thread Peter Ehlers
On 2012-04-26 13:47, Andy Bunn wrote: Hello, I'm making a simple plot using xYplot in the Hmisc library and having problems with labeling the values on the x-axis. Using the reproducible example below, how can I have the text (jan, feb,mar, etc.) in place of 1:12. Thanks, AB x<- c(seq(0,0.5,

Re: [R] Min , Max

2012-04-28 Thread David Winsemius
On Apr 28, 2012, at 4:29 PM, Jonsson wrote: I know this, Most of us are not committing to memory earlier postings. This is a mailing list, not a website and not a chat room. Please read the Posting Guide... all of it... and adjust your expectations accordingly. but i meant how can i i

Re: [R] Min , Max

2012-04-28 Thread Jonsson
I know this,but i meant how can i insert them here: for(h in listfile){ print(h)### Shall i keep this as it is print(file.info(h)$size) ### Shall i keep this as it is } b=file.info(h)$size/67420/4 ### Shall I keep this as it is?? wind <

Re: [R] Min , Max

2012-04-28 Thread Jonsson
Yes ,It worked. So how can I insert it in my code? Please for(h in listfile){ + print(h) + print(file.info(h)$size) + } [1] "Wind_WFD_200101.nc.img" [1] 66880640 [1] "Wind_WFD_200102.nc.img" [1] 60408320 [1] "Wind_WFD_200103.nc.img" [1] 66880640 [1] "Wind_WFD_200104.nc.img" [1] 6

[R] lanyrd site for useR! 2012

2012-04-28 Thread Barry Rowlingson
There's now a page on lanyrd ("the social conference directory") for useR! 2012 in Nashville: http://lanyrd.com/2012/useR/ its basically a site for making social mini-networks for conferences, so people can post up links, share photos, list talks, etc. If people going sign up then it'll look a

Re: [R] Writing a Permutation Function

2012-04-28 Thread R. Michael Weylandt
It's _highly_ inefficient to grow the "holder" each step of the loop -- you'll see massive speedups by setting something like holder = character(4000) # Make an empty character vector of length 4000 # inside the loop just fill the part you're looking at holder[i:(i+3)] = perm Michael On Sat, Ap

Re: [R] Min , Max

2012-04-28 Thread David Winsemius
On Apr 28, 2012, at 11:51 AM, Jonsson wrote: Dear David, I think you meant tm[ta[i],tb[i]]= round(10 * mean(D[((d-1)*8 + 1:8),i]-273.15)) not tm[ta[i],tb[i]]= round(10 * mean(D[((d-1)*8 + 1:8)-273.15), i]-273.15)) . As you can see in the code above.I want to save the results as integer

Re: [R] "parallel" package

2012-04-28 Thread Uwe Ligges
On 28.04.2012 20:18, ya wrote: Hi everyone, Anyone knows Where I can get the "parallel" package? The google results said this package has been released since R 2.14, but I could not find a place to get it. I am doing a multiple imputation for missing values, it is really time consuming. I fig

[R] "parallel" package

2012-04-28 Thread ya
Hi everyone, Anyone knows Where I can get the "parallel" package? The google results said this package has been released since R 2.14, but I could not find a place to get it. I am doing a multiple imputation for missing values, it is really time consuming. I figured maybe it's more efficient

Re: [R] Hyperspec package: need to change spectra names in a stacked plot

2012-04-28 Thread Peter Ehlers
On 2012-04-27 13:24, Roberto wrote: Hi all, I need to insert the name of spectra in a stacked plot obtained with hyperspec. I use this command plot(spectra [c(-1:-4, -6:-8, -10:-12, -14:-16)], stacked = T) but, in this way R draw nameless spectra on the Y axis. How can I solve the problem?

Re: [R] R2HTML output shows NULL

2012-04-28 Thread Greg Snow
Joshua, The task call back mechanism passes on a flag to say if the output was invisible or not, so the HTML functions would just need to look for and honor that flag. This is what the TeachingDemos versions do. On Fri, Apr 27, 2012 at 4:07 PM, Joshua Wiley wrote: > On Fri, Apr 27, 2012 at 2:52

Re: [R] problem in matching numbers in two variables

2012-04-28 Thread John Kane
I think this works bu there probably is a better way. xy <- x %% y which(xy != 0) John Kane Kingston ON Canada > -Original Message- > From: sagarnikam...@gmail.com > Sent: Sat, 28 Apr 2012 08:28:39 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] problem in matching numbers in t

Re: [R] problem in matching numbers in two variables

2012-04-28 Thread Berend Hasselman
On 28-04-2012, at 17:28, sagarnikam123 wrote: > i want to compare two variables (having numbers) serially for > matching/dismatching > both having equal length > >> x > [1] 2 2 1 2 3 2 2 2 2 3 3 2 2 2 2 2 2 3 2 2 2 2 2 2 2 2 2 2 3 2 3 2 2 2 1 > 2 2 > [38] 2 2 2 3 2 3 2 2 1 2 2 2 2 1 1 1 3 2 2 2

Re: [R] Min , Max

2012-04-28 Thread Jonsson
Hello again, I am still having the same problem with the main loop.it succeeded to finish reading and writing from the first file in my listfile but failed when it moves to the second file giving this error:Error: subscript out of bounds library(Matrix) setwd("C:\\Users\\aalyaari\\Desktop\\img")

[R] problem in matching numbers in two variables

2012-04-28 Thread sagarnikam123
i want to compare two variables (having numbers) serially for matching/dismatching both having equal length > x [1] 2 2 1 2 3 2 2 2 2 3 3 2 2 2 2 2 2 3 2 2 2 2 2 2 2 2 2 2 3 2 3 2 2 2 1 2 2 [38] 2 2 2 3 2 3 2 2 1 2 2 2 2 1 1 1 3 2 2 2 2 1 1 3 1 1 1 2 2 2 3 2 3 3 3 2 2 [75] 2 2 3 2 2 1 1 1 2 3

Re: [R] Writing a Permutation Function

2012-04-28 Thread petermec
Thanks for the input everyone! So far this is the updated code that I have: alphabet = c("a","b","c","d") holder = c() permute = function(alphabet,n){ for (i in 1:1000){ perm = sample(alphabet, replace=F, size=n) holder = rbind(holder, perm, deparse.level=0) } data2 = unique(holder) data3

Re: [R] Min , Max

2012-04-28 Thread Jonsson
Dear David, I think you meant tm[ta[i],tb[i]]= round(10 * mean(D[((d-1)*8 + 1:8),i]-273.15)) not tm[ta[i],tb[i]]= round(10 * mean(D[((d-1)*8 + 1:8)-273.15), i]-273.15)) . As you can see in the code above.I want to save the results as integer(16bit) thats why I multiplied b

Re: [R] Character string to R object

2012-04-28 Thread Duncan Murdoch
On 12-04-28 10:37 AM, Ista Zahn wrote: Hi JN, You can use eval(parse(text = cstr)) for this. I've been told to avoid this when possible, though I'm not sure why. I would say to avoid it because it's hard to catch errors easy errors, and it can introduce difficult errors. Presumably cstr is

Re: [R] "Modified Diebold-Mariano Test" with forecast package

2012-04-28 Thread nserdar
Thanks, I searched rseek.org and sos package not providing any about "Modified Diebold-Mariano Test". Regards, Ser -- View this message in context: http://r.789695.n4.nabble.com/Modified-Diebold-Mariano-Test-with-forecast-package-tp4594648p4594686.html Sent from the R help mailing list archi

[R] [R-pkgs] New package TestSurvRec_1.01

2012-04-28 Thread Carlos M. Martinez Manrique
Dear all, Recurrent events are common in many areas: psychology, engineering, medicine, physics, astronomy, biology, economics and so on . Such events are very common in the real world: viral diseases, carcinogenic tumors, machinery and equipment failures, births, murders, rain, industrial

Re: [R] Min , Max

2012-04-28 Thread Rui Barradas
Hello, > > i want this: every value is subtracted by 273.15 first ,then do other > calculations(Min, Max)Can anyone tell me what is wrong.Thanks > You're subtracting 273.15 to the row numbers, not to the values in those rows. Corrected: d.rows <- (d-1)*8 + 1:8 tm[ta[i],tb[i]]= round(10 * mean(D[

[R] Consolidate column contents of equally "named" columns

2012-04-28 Thread Daniel Malter
Hi, I have a data frame whose first row (not the header) contains the true column names. The same column name can occur multiple times in the dataset. Columns with equal names are not adjacent, and for each observation only one of the equally named columns contains the actual data (see the exampl

Re: [R] Character string to R object

2012-04-28 Thread John C Nash
Thanks Gabor and Ista, I should have realized I could tweak parse(), since I've been using it elsewhere. Somehow focused only on documentation of source(). JN On 04/28/2012 10:36 AM, Gabor Grothendieck wrote: On Sat, Apr 28, 2012 at 10:27 AM, John C Nash wrote: I've been creating some R t

Re: [R] Character string to R object

2012-04-28 Thread Ista Zahn
Hi JN, You can use eval(parse(text = cstr)) for this. I've been told to avoid this when possible, though I'm not sure why. Best, Ista On Sat, Apr 28, 2012 at 10:27 AM, John C Nash wrote: > I've been creating some R tools that manipulate objective functions for > optimization. In so doing, I c

Re: [R] Character string to R object

2012-04-28 Thread Gabor Grothendieck
On Sat, Apr 28, 2012 at 10:27 AM, John C Nash wrote: > I've been creating some R tools that manipulate objective functions for > optimization. In so doing, I create a character string with R code, and then > want to have it in my workspace. Currently -- and this works fine -- I write > the code ou

[R] Character string to R object

2012-04-28 Thread John C Nash
I've been creating some R tools that manipulate objective functions for optimization. In so doing, I create a character string with R code, and then want to have it in my workspace. Currently -- and this works fine -- I write the code out, then use source() to bring it in again. Example: cstr<

Re: [R] Min , Max

2012-04-28 Thread David Winsemius
On Apr 28, 2012, at 9:54 AM, Jonsson wrote: This code bellow will calculate average daily wind speed(measurements are taken every three hours). snipped overly complex code not needed to address the semantic error below. the values are measured in kelvin so i want to convert them to degr

Re: [R] Writing a Permutation Function

2012-04-28 Thread David Winsemius
On Apr 28, 2012, at 9:18 AM, mlell08 wrote: On Apr 28, 2012, at 8:11 AM, petermec wrote: Hi everyone, I am somewhat new to R and I am trying to write a permutation function such that it inputs a character vector and from an arbitrary length "n" which is the length of the combinations f

Re: [R] Min , Max

2012-04-28 Thread Jonsson
This code bellow will calculate average daily wind speed(measurements are taken every three hours). library(Matrix) setwd("C:\\Users\\aalyaari\\Desktop\\img") listfile<-dir() long <- file("C:\\Users\\aalyaari\\Desktop\\New folder (5)\\inra.bin", "rb") A=readBin(long, integer(), size=2,n=67420

Re: [R] Writing a Permutation Function

2012-04-28 Thread mlell08
On 28.04.2012 14:47, Sarah Goslee wrote: > We really can't help you with your assignment. You might consider > ??unique > though, since you've already resolved to look for functions related to > identifying unique entries. > > Sarah > > On Apr 28, 2012, at 8:11 AM, petermec wrote: > >> Hi everyon

[R] [R-pkgs] New version of rreval: Remote R Evaluator

2012-04-28 Thread Barnet Wagman
rreval 1.1 is now available on CRAN. This release fixes a Window specific bug. It is required for cloudRmpi 1.1 (which is also now available on CRAN). rreval is a means for using R on a remote system from within a local R session. Any R expression can be evaluated on the remote server. All n

Re: [R] Writing a Permutation Function

2012-04-28 Thread Sarah Goslee
We really can't help you with your assignment. You might consider ??unique though, since you've already resolved to look for functions related to identifying unique entries. Sarah On Apr 28, 2012, at 8:11 AM, petermec wrote: > Hi everyone, > > I am somewhat new to R and I am trying to write

Re: [R] Exporting plots generated by a 'for' loop

2012-04-28 Thread Sarah Goslee
Ah, I misread the querent as wanting four plots of three panels each, not a single plot with three panels. Since that's not true, Jim's is the best solution (but mind the missing commas in the iris subsets). Sarah On Apr 28, 2012, at 8:28 AM, Jim Lemon wrote: > On 04/28/2012 08:40 PM, Tejas K

Re: [R] "Modified Diebold-Mariano Test" with forecast package

2012-04-28 Thread Sarah Goslee
I'd start with rseek.org. You could also install the sos package and use it from within R. Good luck searching, Sarah On Apr 28, 2012, at 8:33 AM, nserdar wrote: > Hi > > I tried to calculate modified Diebold-Mariano Test in R . I have already > find a "forecast" package to calculate the > D

[R] Writing a Permutation Function

2012-04-28 Thread petermec
Hi everyone, I am somewhat new to R and I am trying to write a permutation function such that it inputs a character vector and from an arbitrary length "n" which is the length of the combinations for the character vector. I know there are R packages for permutation but this is for an assignment.

[R] "Modified Diebold-Mariano Test" with forecast package

2012-04-28 Thread nserdar
Hi I tried to calculate modified Diebold-Mariano Test in R . I have already find a "forecast" package to calculate the Diebold-Mariano Test. Please let me know how to obtain " Modified Diebold-Mariano Test" ? Regards, Serdar -- View this message in context: http://r.789695.n4.nabble.com/Mod

Re: [R] Exporting plots generated by a 'for' loop

2012-04-28 Thread Jim Lemon
On 04/28/2012 08:40 PM, Tejas Kale wrote: Hello! I have a 'for' loop that generates a plot with each iteration. I would either like the plots to be stacked one below the other in a single .jpg file or be stored in three different files with each file being named dynamically. The following code i

Re: [R] Exporting plots generated by a 'for' loop

2012-04-28 Thread Sarah Goslee
I don't think jpeg supports pages, but you have other options, including one you asked about: Use a device like pdf() that supports pages and don't call dev.off() until the loop has finished. Use paste() to give each graph a separate name, rather than overwriting them at each iteration, such as

Re: [R] kiteChart to show real values with scalebar

2012-04-28 Thread Jim Lemon
On 04/28/2012 10:00 PM, Jim Lemon wrote: On 04/28/2012 09:29 PM, Jim Lemon wrote: >... Oops, the function is attached to this email. Arrrgh, forgot to put it inline... Jim kiteChart<-function(x,xlim=NA,ylim=NA,timex=TRUE,main="Kite chart", xlab=ifelse(timex,"Time","Groups"),ylab=ifelse(tim

[R] Exporting plots generated by a 'for' loop

2012-04-28 Thread Tejas Kale
Hello! I have a 'for' loop that generates a plot with each iteration. I would either like the plots to be stacked one below the other in a single .jpg file or be stored in three different files with each file being named dynamically. The following code is an illustration of my query (but does not

Re: [R] kiteChart to show real values with scalebar

2012-04-28 Thread Jim Lemon
On 04/28/2012 09:29 PM, Jim Lemon wrote: >... Oops, the function is attached to this email. Jim __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.h

Re: [R] How to custom colorscale in treemap

2012-04-28 Thread Jim Lemon
On 04/28/2012 12:58 PM, nhbnhb wrote: Hi~I'm new to R. I'm following these two tutorials to make a tree map, but the color scale isn't quite what I wanted. For map of the market, the color scale starts from 0(red) to max(green), what I wanted is 0(Green)-1(Red)-max(green). What's the easiest way

Re: [R] kiteChart to show real values with scalebar

2012-04-28 Thread Jim Lemon
On 04/28/2012 04:12 AM, bodiless wrote: Dear R-users I hope someone could help me on this problem. I want to create a multiple kiteChart showing the real values with a scalebar on each indicating the scale . Here are some sample data to show what I want to achieve. Y<- read.table(textConnecti

[R] How to custom colorscale in treemap

2012-04-28 Thread nhbnhb
Hi~I'm new to R. I'm following these two tutorials to make a tree map, but the color scale isn't quite what I wanted. For map of the market, the color scale starts from 0(red) to max(green), what I wanted is 0(Green)-1(Red)-max(green). What's the easiest way to achieve this kind of divergent color