Re: [R] [R-es] Consulta paquetización con versión R 3.1.0

2014-07-07 Thread Eva Prieto Castro
Moreover, with ls(all.names=TRUE) it should appear and it does not. Eva 2014-07-08 6:56 GMT+02:00 Eva Prieto Castro : > Duncan, > > Yes, it has exactly that line. > > I know it does not exists because of this: > > > library("ChrL") > > .ChrL.env > Error: objeto '.ChrL.env' no encontrado > > > >

Re: [R] [R-es] Consulta paquetización con versión R 3.1.0

2014-07-07 Thread Eva Prieto Castro
Duncan, Yes, it has exactly that line. I know it does not exists because of this: > library("ChrL") > .ChrL.env Error: objeto '.ChrL.env' no encontrado However, it should be as follows: > library("ChrL") > .ChrL.env I'm desperate; I have to solve this urgently and I don't find the solutio

Re: [R] parLapply on sqlQuery (from package RODBC)

2014-07-07 Thread Frede Aakmann Tøgersen
Hi Dylan Please remember to post to the list. You'll have a greater chance to get answers to your questions by doing so. Also my name is Frede and not Med. The greetings "Med venlig hilsen" is the Danish translation of "Yours sincerely". Vestas is a global company so even the corporate languag

Re: [R] [R-es] Consulta paquetización con versión R 3.1.0

2014-07-07 Thread Eva Prieto Castro
Hi again, Duncan I think I must tell you all the details of the method I use, in order to make possible you notice my error. However, you must know that this method run on 3.0.1 version (not in 3.0.2 and not in 3.1.0; this is the problem!). 1) This is my code in "D:/probando.r" : .ChrL.env <- n

Re: [R] [R-es] Consulta paquetización con versión R 3.1.0

2014-07-07 Thread Eva Prieto Castro
Duncan, One note: although I used package.skeleton more than one time, I always do it after remove ChrL folder. Eva 2014-07-08 0:55 GMT+02:00 Duncan Murdoch : > On 07/07/2014, 6:39 PM, Eva Prieto Castro wrote: > > Hi again, Duncan > > > > I think I must tell you all the details of the method I

Re: [R] [R-es] Consulta paquetización con versión R 3.1.0

2014-07-07 Thread Eva Prieto Castro
Hi Duncan, Thank you very much for your explanations. I have two doubts: 1) About this: *>> The method I use is the following: >> >> >> rm(list=ls()) >> >> setwd("D:/probando") >> >> source("probando.r", encoding="utf-8") >> >> package.skeleton(name="ChrL", path="D:/probando")* This s

Re: [R] [R-es] Consulta paquetización con versión R 3.1.0

2014-07-07 Thread Eva Prieto Castro
Duncan, The ChrL folder has the following components: * Description file * Namespace file * R folder, including 3 files: CheckGloCreated.r, ChrL.Start.r and ChrL-internal.r Obs.: Sometimes I remove man folder and another I adjust the rd files. In all cases the result is the same:.ChrL.env does n

Re: [R] Box-cox transformation

2014-07-07 Thread Ravi Varadhan
Thank you. It is very helpful. Ravi -Original Message- From: Joshua Wiley [mailto:jwiley.ps...@gmail.com] Sent: Monday, July 07, 2014 4:15 PM To: Ravi Varadhan Cc: r-help@r-project.org Subject: Re: [R] Box-cox transformation Dear Ravi, In my previous example, I used the residuals, so:

Re: [R] [R-es] Consulta paquetización con versión R 3.1.0

2014-07-07 Thread Duncan Murdoch
On 07/07/2014, 7:13 PM, Eva Prieto Castro wrote: > Duncan, > > The ChrL folder has the following components: > > * Description file > * Namespace file > * R folder, including 3 files: CheckGloCreated.r, ChrL.Start.r and > ChrL-internal.r > And does ChrL-internal.r contain just one line as you s

Re: [R] getting numeric [0..6] day of week from POSIXct?

2014-07-07 Thread Miguel Manese
Hi John, The package lubridate is the easiest way to deal with dates. library(lubridate) frame$groupByWeekNumber <- wday(frame$dt) - 1 # Sun=1, Sat=7 On Mon, Jul 7, 2014 at 11:54 PM, John McKown wrote: > I have a column, dt, in a data.frame. It is a list of POSIXct objects. > I could us

Re: [R] [R-es] Consulta paquetización con versión R 3.1.0

2014-07-07 Thread Duncan Murdoch
On 07/07/2014, 6:39 PM, Eva Prieto Castro wrote: > Hi again, Duncan > > I think I must tell you all the details of the method I use, in order to > make possible you notice my error. Your error is in calling package.skeleton. As I said before, you should have done this once, when you first thoug

[R] eclat problem

2014-07-07 Thread Alvaro Flores
I'm working with arule packages and I'm constantly trying to mine frequent itemsets in different datasets. But recently R kept returning the same error message : Error in eclat(txn, parameter = list(supp = 0.001)) : internal error in trio library Is just this particular dataset that gi

Re: [R] [R-es] Consulta paquetización con versión R 3.1.0

2014-07-07 Thread Duncan Murdoch
On 07/07/2014, 2:02 PM, Eva Prieto Castro wrote: > Hi eveybody, > > I think the problem is with the package.skeleton function, because of the > changes made in version 3.0.2. Since that version the management of > environment parameter is different and I think it can justify the fact of > package.

Re: [R] [R-es] Consulta paquetización con versión R 3.1.0

2014-07-07 Thread Eva Prieto Castro
Hi eveybody, I think the problem is with the package.skeleton function, because of the changes made in version 3.0.2. Since that version the management of environment parameter is different and I think it can justify the fact of package.skeleton is not considering my environment. I have not tested

Re: [R] Box-cox transformation

2014-07-07 Thread Joshua Wiley
Dear Ravi, In my previous example, I used the residuals, so: sum [ (r_i / scaling)^2 ] If you want to use the deviance from glm, that gives you: sum [ r_i^2 ] and since the scaling factor is just a constant for any given lambda, then the modification would be: sum [ r_i^2 ] / ( scaling^2 ) a

Re: [R] Plot does not show in R

2014-07-07 Thread Alfonso de Uña
Hi, Try this, It works for me. venn.plot<-venn.diagram( x = list( KP2 = c(2, 62, 22, 33, 11, 36, 26, 27, 28, 64, 5, 66, 10, 18, 68, 61, 6, 29, 19, 65, 30, 35, 32, 20, 69, 8, 31, 13, 21, 7), KP15 = c(2, 22, 39, 1, 14, 65, 67, 68, 1, 12, 23, 37, 4, 24, 25, 64, 52,

Re: [R] RMS equation

2014-07-07 Thread jim holtman
But you code is just creating a single value. "q" is the "sum(A)" which is a single value. What were you expecting? Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to do, not how you want to do it. On Mon, Jul 7, 2014 at 7:03 AM, thanoon y

Re: [R] survplot invert number at risk labels

2014-07-07 Thread Marco Barbàra
Hi all, and thank you for your interested answers. The problem could be already solved. It is present on my old R 2.15.1 (x86_64-pc-linux-gnu), but after reproducing the error I got the expected result on a R 3.0.2 through a web interface. However, since I spent a considerable amount of time to un

Re: [R] getting numeric [0..6] day of week from POSIXct?

2014-07-07 Thread David L Carlson
?format.POSIXct Particularly %w > x <- Sys.time() > as.numeric(format(x, "%w")) [1] 1 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of John McKown Sent: Monday, July 7, 2014 10:54 AM To: r-help Subject: [R] getting numeric [0..6] d

Re: [R] Plot does not show in R

2014-07-07 Thread Sarah Goslee
Hi, Are you using the vennDiagram package? It's very important to specify. If so, setting the argument filename=NULL then returns a grid object (as stated in the help file), which you can then plot or do whatever you wish with. A grid object is an R object that describes a plot, not the plot itse

[R] getting numeric [0..6] day of week from POSIXct?

2014-07-07 Thread John McKown
I have a column, dt, in a data.frame. It is a list of POSIXct objects. I could use strftime(frame$dt,"%a") to get the day of week as [sun..sat]. But I need the numeric value in the range of [0..6]. I can't see a function to do this. I can get it by converting the POSIXct objects to POSIXlt objects,

[R] Plot does not show in R

2014-07-07 Thread gktahon
I'm trying to get my figure to open with R, but it does not come up. Here is my standard code: venn.diagram( x = list( KP2 = c(2, 62, 22, 33, 11, 36, 26, 27, 28, 64, 5, 66, 10, 18, 68, 61, 6, 29, 19, 65, 30, 35, 32, 20, 69, 8, 31, 13, 21, 7),

[R] How to build and importance chart with mlp function from RSNNS package in R?

2014-07-07 Thread meg
I would like to build a bar plot with the importance of the independent variables ranked by largest value. I am using the mlp function for the model and don't believe I am using the correct output. model is what comes out of the mlp function data(iris) #shuffle the vector iris <- iris[sample(1:nr

[R] nls - Error in qr.qty(QR, resid) : NA/NaN/Inf in foreign function call (arg 1)

2014-07-07 Thread Arpit Jain
Dear All, I have made a script in R (r_nonlinear_leastsquare.R) to fit an exponential decay curve to my data using nls module: - args <- commandArgs(trailingOnly = TRUE) #"/project/dmp

Re: [R] Predictions from "coxph" or "cph" objects

2014-07-07 Thread Therneau, Terry M., Ph.D.
I've been off on vacation for a few days and so am arriving late to this discussion. Try ?print.survfit, and look at the print.rmean option and the discussion thereof in the "Details" section of the page. It will answer your question, in more detail than you asked. The option applies to sur

Re: [R] Using RCMD INSTALL under Spanish version of windows.

2014-07-07 Thread Jan Graffelman
Here is a solution for the posted problem. Under the Spanish version of Windows 7, inside Windows Explorer, the directory where R is installed appears as C:\Archivos de programa\R\R-3.1.0\bin\x64 If you wish to compile a personal libary, this suggests you should extend the search path by cha

Re: [R] metafor package: changing decimal in forest plot to midline decimal

2014-07-07 Thread Prof Brian Ripley
On 07/07/2014 12:02, Michael Dewey wrote: At 09:08 07/07/2014, Dietlinde Schmidt wrote: Thanks for that link, Wolfgang. Unfortunately, there comes the Warning with it: "(process:3634): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()" and decimal being "scrambled" in fore

Re: [R] Question regarding lattice::levelplot and distribution of colors

2014-07-07 Thread Duncan Mackay
Hi The first line has a typo it should have been levelplot(zz~ xx+y, testdf,#subset(testdf, xx > 8), from which you could change to the subset if required If you change the values of xx then you have to check which values of zz remain and work out the cutpoints range(subset(testdf,

[R] interesting article

2014-07-07 Thread John McKown
http://opensource.com/business/14/7/interview-david-smith-revolution-analytics -- There is nothing more pleasant than traveling and meeting new people! Genghis Khan Maranatha! <>< John McKown __ R-help@r-project.org mailing list https://stat.ethz.ch/

[R] RMS equation

2014-07-07 Thread thanoon younis
dear R-users i am new on R-program so i need your help to solve the root mean square equation in R. i have a problem in summation (r=1:100)how can i write it in R . i tried to write the code as below but the problem is the result must be vector not constant number as code below. i appreciate any

Re: [R] metafor package: changing decimal in forest plot to midline decimal

2014-07-07 Thread Michael Dewey
At 09:08 07/07/2014, Dietlinde Schmidt wrote: Thanks for that link, Wolfgang. Unfortunately, there comes the Warning with it: "(process:3634): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()" and decimal being "scrambled" in forest plot and not displaying the midline de

Re: [R] metafor package: changing decimal in forest plot to midline decimal

2014-07-07 Thread Jeremy Miles
I've found that if you want really fine control over an issue like this in a chart, the easiest thing to do is to export it as PDF, and then directly edit the chart in Illustrator (not free) or Inkscape (free). On 7 July 2014 10:21, Viechtbauer Wolfgang (STAT) < wolfgang.viechtba...@maastrichtu

[R] Consulta paquetización con versión R 3.1.0

2014-07-07 Thread Eva Prieto Castro
Hi everybody I have a very big problem: With R 3.0.2 I could construct the package for this code: if (exists('.ChrL.env') == TRUE) {   rm(.ChrL.env) } .ChrL.env <- new.env() .ChrL.env$lGlo <- list() .ChrL.env$bStarted <- FALSE CheckGloCreated <- function() {   if (.ChrL.env$bStarted == TRUE)

Re: [R] metafor package: changing decimal in forest plot to midline decimal

2014-07-07 Thread Dietlinde Schmidt
Thanks for that link, Wolfgang. Unfortunately, there comes the Warning with it: "(process:3634): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()" and decimal being "scrambled" in forest plot and not displaying the midline decimal. I think it has to do with the fact, th

Re: [R] Principal component analysis with EQUAMAX rotation

2014-07-07 Thread Wagner
That's what I was looking for, thank you very much! -- View this message in context: http://r.789695.n4.nabble.com/Principal-component-analysis-with-EQUAMAX-rotation-tp4692337p4693612.html Sent from the R help mailing list archive at Nabble.com. __ R

Re: [R] Transform a data.frame with "; " sep column and another one in a a new one with the same two column but with repetitions

2014-07-07 Thread João Azevedo Patrício
Em 05-07-2014 03:35, John McKown escreveu: On Fri, Jul 4, 2014 at 7:50 AM, João Azevedo Patrício wrote: Hi, I've been trying to solve this issue but with no success. I have some data like this: 1 > TC WC 2 > 0 Instruments & Instrumentation; Nuclear Science & Technology; Physics, Particles

Re: [R] Question regarding lattice::levelplot and distribution of colors

2014-07-07 Thread Sunny Srivastava
I am sorry but I think I have been unclear. The problem is not color theme. Assume I have the original data.frame. testdf <- structure(list(yy = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L), .Label = c("R", "L"), class = c("ordered", "factor")),

Re: [R] metafor package: changing decimal in forest plot to midline decimal

2014-07-07 Thread Viechtbauer Wolfgang (STAT)
I tried this: library(metafor) data(dat.bcg) res <- rma(measure="RR", ai=tpos, bi=tneg, ci=cpos, di=cneg, data=dat.bcg, slab=paste(author, year, sep=", ")) options(OutDec="\xB7") forest(res) No warning, no scrambling, and all decimals shown in midline (also on the x-axis). But this is on Window

[R] writing matrices of different rows in a file

2014-07-07 Thread carol white
Hi, What is the best way of writing of matrices of different rows in a file? Should the matrices with the same number of rows be written first and then, empty columns for the matrices with a smaller number of rows followed by the matrices with a larger number of rows? Not a good solution (see be