[R] How to read from a file within a gzipped file

2021-10-11 Thread Conklin, Mike (GfK) via R-help
Hi have a large number of zipped files, each containing 3 xml files that I want to read. I would like to read one of the xml files without having to decompress each zip file first. If I run gzfile(path2zipped file) I get A connection with description "X:/Mkt Science/Projects/

Re: [R] Unusual Error Loading tidyverse

2021-10-07 Thread Conklin, Mike (GfK) via R-help
My experience is that the combination of OneDrive and R leads to lack of productivity. -- W. Michael Conklin EVP Marketing & Data Sciences GfK M +1 612 567 8287 -Original Message- From: R-help On Behalf Of Kevin Thorpe Sent: Thursday, October 7, 2021 10:50 AM To: Jeff Newmiller Cc: R

[R] dbplyr error updating database

2017-07-17 Thread Conklin, Mike (GfK)
I am trying to use a shiny app to update records in an sqlite database. I keep running into the following error: unable to find an inherited method for function 'dbSendQuery' for signature '"src_dbi", "character"' The query I am trying to send is: [1] "update kpquestions set mrisupercat =

Re: [R] Missing dependencies in pkg installs SOLVED

2017-06-28 Thread Conklin, Mike (GfK)
installing into the global library and not a user specific library -- W. Michael Conklin EVP Marketing & Data Sciences GfK T +1 763 417 4545 | M +1 612 567 8287 -Original Message- From: Conklin, Mike (GfK) Sent: Friday, June 23, 2017 4:38 PM To: Don Cohen; Duncan Murdoch Cc: Martin Maec

Re: [R] Missing dependencies in pkg installs

2017-06-23 Thread Conklin, Mike (GfK)
appear to be R3.4 related. I am now reaching out to some other sources who may have installed R on similar systems. From: Conklin, Mike (GfK) Sent: Friday, June 23, 2017 8:50 AM To: Don Cohen; Duncan Murdoch Cc: Martin Maechler; r-help@r-project.org

Re: [R] Missing dependencies in pkg installs

2017-06-23 Thread Conklin, Mike (GfK)
h Cc: Conklin, Mike (GfK); Martin Maechler; r-help@r-project.org Subject: Re: [R] Missing dependencies in pkg installs Duncan Murdoch writes: > On 22/06/2017 5:02 PM, Conklin, Mike (GfK) wrote: > > I am using debug on the .install_packages function...stepping through. > > Once t

Re: [R] Missing dependencies in pkg installs

2017-06-22 Thread Conklin, Mike (GfK)
11:44 NEWS drwxr-xr-x 2 root root 4096 Jun 22 22:26 R drwxr-xr-x 3 root root 8192 Jun 22 22:26 src [root@dcex1102shinypr ~]# If I CTRL-Z out of R in the first session I confirm the same result - the system shows the file as executable -- W. Michael Conklin EVP Marketing & Data Sciences G

Re: [R] Missing dependencies in pkg installs

2017-06-22 Thread Conklin, Mike (GfK)
Marketing & Data Sciences GfK T +1 763 417 4545 | M +1 612 567 8287 -Original Message- From: Duncan Murdoch [mailto:murdoch.dun...@gmail.com] Sent: Thursday, June 22, 2017 11:09 AM To: Conklin, Mike (GfK); Martin Maechler; David Winsemius Cc: r-help@r-project.org Subject: Re: [R]

Re: [R] Missing dependencies in pkg installs

2017-06-22 Thread Conklin, Mike (GfK)
also it seems to be no issue to execute configure from the command line ./configure -- W. Michael Conklin EVP Marketing & Data Sciences GfK T +1 763 417 4545 | M +1 612 567 8287 -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Conklin, Mike

Re: [R] Missing dependencies in pkg installs

2017-06-22 Thread Conklin, Mike (GfK)
8 AM, Martin Maechler wrote: >>>>>> David Winsemius <dwinsem...@comcast.net> >>>>>> on Wed, 21 Jun 2017 18:04:13 -0700 writes: > > >> On Jun 21, 2017, at 1:39 PM, Conklin, Mike (GfK) > <mike.conk...@gfk.com> wrote: > >>

[R] Missing dependencies in pkg installs

2017-06-21 Thread Conklin, Mike (GfK)
I have a Ubuntu server with an R installation that has 384 packages installed. We are trying to replicate the system on a Red Hat Enterprise server. I downloaded the list of packages from the Ubuntu machine and read it into an R session on the new machine. Then I ran

Re: [R] Strange result when subsetting a data frame based on a character variable

2015-11-17 Thread Conklin, Mike (GfK)
R silently converts the integer to a character for comparison in the subset operation. But if we explicitly do the conversion we see that it does not work with the default R settings. > as.character(10) [1] "1e+05" > as.character(9) [1] "9" -- W. Michael Conklin EVP Marketing &

[R] Problem R markdown document

2015-08-27 Thread Conklin, Mike (GfK)
I have successfully done this many times using RStudio's rmarkdown capabilities and knitting the document to HTML or Word. However, I am running into this error today. C:/Program Files/RStudio/bin/pandoc/pandoc FusionTestsAugust25.utf8.md --to docx --from

[R] attributes in dplyr and haven

2015-08-04 Thread Conklin, Mike (GfK)
I read in spss files using haven's read_spss. Each column then gets attributes assigned named label - a long description of the variable class - labelled labels --- answer labels i.e. 1=Male, 2=Female example - attributes(KPTV[[3]]) $label [1] DERIVED: Survey language $class [1] labelled

[R] Problem installing with devtools

2015-02-23 Thread Conklin, Mike (GfK)
I am trying to install the swirl library via devtools with the following results devtools::install_github(c(swirldev/swirl, swirldev/swirlify)) Installing github repo swirl/master from swirldev Downloading master.zip from https://github.com/swirldev/swirl/archive/master.zip Installing package

Re: [R] Another question about bootstrapping cor

2014-03-06 Thread Conklin, Mike (GfK)
Read the help on boot. Specifically in non-parametric bootstrapping the statistic function takes a data (the original data) and an index number that shows which rows are taken in the bootstrap sample. So you need to do the following. x - 1:15 y - c(2,4,1,3,5, 7,6, 9,10,8, 14, 13, 11, 15, 12)

Re: [R] r noobie, reading my text file into r

2014-02-06 Thread Conklin, Mike (GfK)
When starting out I sometimes find it easier to do the following: Ceosalary-read.table(file.choose(),sep=\t) This will give you a dialog box to find the file you want and you won't have to worry about getting the full path exactly right. Hth, Mike W. Michael Conklin Executive Vice President

[R] help with ggplot legend specification

2013-10-31 Thread Conklin, Mike (GfK)
I am creating a scatterplot with the following code. pl-ggplot(df,aes(x=Importance,y=Performance,fill=PBF,size=gapsize))+ geom_point(shape=21,colour=black)+scale_size_area(max_size=pointsizefactor) points are plotted where the size of the point is related to a metric variable gapsize

[R] Compiling R2.15.1 on ubuntu with x86-64 architecture and shared library

2012-09-17 Thread Conklin, Mike (GfK Custom Research NA)
I am sure I am providing insufficient information, please ask for more. I installed R 2.14.2 on my Ubuntu laptop with and AMD64 processor and also installed RStudio and everything worked fine. Now, I tried to build R 2.15.1 from source and installed it using defaults. RStudio now complained