Displaying 20 results from an estimated 400 matches similar to: "Help with evaluation of expressions"
2006 Mar 08
1
Accessing functions in a library
I am trying to write a modified function to plot an rpart object. By
using getS3method I can see the plot and text code that I want to
modify. Since I don't want to modify the package, I create a new
function to plot the rpart object. The problem is that the original
function calls many rpart specific functions that are only visible
inside the rpart namespace. Therefore, when I call my
2007 Jan 25
0
Creating dendrograms from a table
I am trying to create a dendrogram object to be able to display a
multiway table. I understand how the dendrogram object is structured, a
nested list of lists, but I am having trouble trying to create that
structure from a table. Basically, what I would like to do is pass a
multiway table, say table(a,b,c) to a function and have it display the
table as a dendrogram. If a,b,c, and d are all
2007 Feb 05
0
Help with party package
I am just starting to experiment with the party package and I am getting
strange results. In the examples, the "statistic" and "criterion" seem
related, i.e. criterion is a 1-p.value and statistic is the test
statistic. Higher statistics are associated with higher criteria
values. When I run these models on my own dataset, the highest
statistic ends up getting a 0.00
2009 Aug 19
2
Problem with predict.coxph
We occasionally utilize the coxph function in the survival library to fit multinomial logit models. (The breslow method produces the same likelihood function as the multinomial logit). We then utilize the predict function to create summary results for various combinations of covariates. For example:
2011 May 19
2
Anyone successfully install Rgraphviz on windows with R 2.13?
I have been trying to get Rgraphviz to work (I know it is from Bioconductor) unsuccessfully. Since I have no experience with Bioconductor I thought I would ask here if anyone has advice. I have installed Graphviz 2.20.3 as is recommended on the Bioconductor site but basically R cannot seem to find the needed dll files. So, even though I have added the appropriate directories to the system path R
2009 Dec 03
3
Scraping a web page
I would like to be able to submit a list of URLs of various webpages and extract the "content" i.e. not the mark-up of those pages. I can find plenty of examples in the XML library of extracting links from pages but I cannot seem to find a way to extract the text. Any help would be greatly appreciated - I will not know the structure of the URLs I would submit in advance. Any
2009 Apr 28
1
Problem with Random Forest predict
I am trying to run a partialPlot with Random Forest (as I have done many times before).
First I run my forest... Cell is a 6 level factor that is the dependent variable - all other variables are predictors, most of these are factors as well.
predCell<-randomForest(x=tempdata[-match("Cell",names(tempdata))],y=tempdata$Cell,importance=T)
Then I try my partial plot to look at the
2010 Dec 29
3
Windows editor suggestions - autosave
I am looking for advice on an editor to use with R (windows) that has an autosave feature. I typically write scripts using the RGui (and tried TinnR yesterday) but I am having continuing problems with BSODs (non R related) and have in the past have had issues with R crashes and would really like a system that does not require me to remember to hit the save button on my script every 10 minutes so
2011 Jun 01
0
Memory management
I am trying to run a very large Bradley-Terry model using the BradleyTerry2 package. (There are 288 "players" in the BT model).
My problem is that I ran the model below successfully.
WLMat is a win-loss matrix that is 288 by 288
WLdf<-countsToBinomial(WLMat)
mod1<-BTm(cbind(win1,win2),player1,player2,~player,id="player",data=WLdf)
Then I needed to run the same model
2017 Jun 28
0
Missing dependencies in pkg installs SOLVED
So apparently (being a linux novice) I didn't realize it was insufficient to simply have the file marked as executable. It turns out the default TMP directory on my machine is mounted with a noexec flag so no files in that directory are allowed to be executed. The solution is to set an environment variable TMPDIR=some new directory I created (eg. /home/myusername/tmp) Then R uses that
2017 Jun 22
0
Missing dependencies in pkg installs
On 22/06/2017 5:02 PM, Conklin, Mike (GfK) wrote:
> I am using debug on the .install_packages function...stepping through. Once the temporary folder is created and the tar file expanded I run file_test and get a FALSE back indicating that the configure file is not executable.
I don't know what is causing this bug. Perhaps a Linux user can
reproduce it and fix it.
Here's what I see:
2017 Jun 23
0
Missing dependencies in pkg installs
I had the same thought in the shower this morning but I was disappointed to find that SElinux was disabled on the system. My next step will be to install a previous version of R on the system. My problem is that I am planning a shiny server installation and at least half of the apps on the current system depend on these libraries that will not install.
--
W. Michael Conklin
EVP Marketing &
2017 Jun 22
2
Missing dependencies in pkg installs
I am using debug on the .install_packages function...stepping through. Once the temporary folder is created and the tar file expanded I run file_test and get a FALSE back indicating that the configure file is not executable.
[1] "/tmp/RtmpMM6iC1/R.INSTALLc5ca415e4310/stringi"
Browse[2]> dir(new)
[1] "DESCRIPTION" "INSTALL" "LICENSE"
2017 Jun 22
0
Missing dependencies in pkg installs
On 22/06/2017 3:42 PM, Conklin, Mike (GfK) wrote:
> Not much progress..... I step through debug and it gets to the do.install() function which immediately errors with the same "configuration not executable" error.
I believe that is a locally defined function, which means you can set a
breakpoint within it but only if R is compiled with source info, or you
can manually call
2017 Jun 22
0
Missing dependencies in pkg installs
> On Jun 21, 2017, at 1:39 PM, Conklin, Mike (GfK) <Mike.Conklin at gfk.com> wrote:
>
> 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
2017 Jul 17
0
dbplyr error updating database
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 = 'Demographics - Respondent' , set mricategory =
2009 Apr 28
4
Producing customized tickmarks when producing a graph using "curve"
Hello!
I am using function "curve" to create a line graph.
I was wondering, if it's possible to "turn off" the default tick marks
and introduce those tick marks in specific locations.
For example, currently in my X axis tick marks are (automatically) at
10, 11, 12, 13 but I want them to be in 5 specific locations, like
9.89, 10.34, etc.
Any hint would be greatly
2009 Mar 26
2
Analogy for %in% for the whole columns (rather than individual values)
Hello!
I have a matrix a with 2 variables (see below) that contain character strings.
I need to create a 3rd variable that contains True if the value in
column x is equal to the value in column y. The code below does it.
a<-data.frame(x=c("john", "mary", "mary",
"john"),y=c("mary","mary","john","john"))
2009 Mar 27
1
asking advice for Integer Programming packages
Dear everyone,
I don't know much about Integer Programming but am afraid I am facing
a problem that can only be solved via Integer Programming. I was
wondering if those of you who have experience with it could recommend
an R package.
I found the following R packages:
Rglpk
glpk
lpSolve
lpSolveAPI
Are there any others?
Are some of them easier to use than others for a beginner?
Any advice
2009 Feb 09
1
percentage of variance explained by factors
Hello!
I've run a simple linear model: result<-lm(DV~A+B+C,data=Data)
My Data$A,Data$B, and Data$C are factors. So, lm automatically recoded
them into dummy variables. I have all the results I need but one.
Question: Where could I see the variance explained by all A dummy
variables together, then all B dummy variables together, and all C
dummy variables together - when other predictors