Re: [R] Running R in Server

2015-08-19 Thread Loris Bennett
Swagato Chatterjee writes: > *@Loris: However, you'll probably have to make sure that all the packages > you* > *need are installed on the server.* > > This is where I need a help.​ Presumably the program 'cron' will be used to run your script. If the program is run as root, you will have to as

Re: [R] Newbie question: error message with install.packages

2015-08-19 Thread David Winsemius
> On Aug 19, 2015, at 9:13 PM, Peter Wicher wrote: > > Hi, > > I’m starting to work my way through “Machine Learning With R” by Brett Lantz. > > > Running on Mac OS X 10.10.4 > > I’ve downloaded and installed R and the R Console comes up fine. > > Whenever I use the install.packages com

[R] Newbie question: error message with install.packages

2015-08-19 Thread Peter Wicher
Hi, I’m starting to work my way through “Machine Learning With R” by Brett Lantz. Running on Mac OS X 10.10.4 I’ve downloaded and installed R and the R Console comes up fine. Whenever I use the install.packages command, regardless of the package I get the same error message: > install.pac

Re: [R] [FORGED] Response Variable Coding

2015-08-19 Thread Rolf Turner
On 20/08/15 09:43, Abraham Mathew wrote: Very simple question that I want confirm. Let's say that I have a response variable. What are the appropriate ways that it can be coded for a logistic regression model? 1. It can be 0/1 and a factor 2. It can be 1/2 and a factor 3. It can be characters a

[R] Response Variable Coding

2015-08-19 Thread Abraham Mathew
Very simple question that I want confirm. Let's say that I have a response variable. What are the appropriate ways that it can be coded for a logistic regression model? 1. It can be 0/1 and a factor 2. It can be 1/2 and a factor 3. It can be characters and a factor, where the second letter takes

Re: [R] Bayesian data analysis recommendations

2015-08-19 Thread David Winsemius
If you need the link to the latest email address of a package maintainer just use the maintainer function: ?maintainer > On Aug 15, 2015, at 10:59 AM, Jeff Slagle wrote: > > I have a question about AtelieR out on stackoverflow.com. Perhaps you could > forward the link to: > > Yvonnick Noel

Re: [R] Plot z=f(x,y) analytically

2015-08-19 Thread David L Carlson
You probably want function persp3d() in package rgl. You have to define the formula as a function and specify the limits correctly, but you were close: > library(rgl) > persp3d(function(x, y) x^2+y^2, xlim=c(-3, 3), ylim=c(-3, 3)) - David L Carlson Department

Re: [R] data format

2015-08-19 Thread David L Carlson
This looks like data for a morphometrics analysis so you should know about package geomorph. Data like yours is often stored as a three dimensional array so we switch to that format and then use the two.d.array() function in package geomorph: Assuming your dataset is called dat: > arr <- arra

Re: [R] Plot z=f(x,y) analytically

2015-08-19 Thread Greg Snow
R has several options for projecting a 3 dimensional plot onto a 2 dimensional plane and plotting the result. Which is best depends on what you want. You mention a function "plot3d" but not which package it comes from. You are more likely to receive prompt and useful help when you do your part of

Re: [R] match.arg: how to prevent users from not specifying a value

2015-08-19 Thread Youyi Fong
Great. missing is what I was looking for, and it seems to also work with interfaces like f=function( type=c("A","B,"C"), ... ) { } Thanks! Youyi On Wed, Aug 19, 2015 at 9:35 AM, Bert Gunter wrote: > ... and you could also use missing() (?missing for details) if you > wanted to give the user m

[R] glm help

2015-08-19 Thread Joaquín Aldabe
Dear All, I´m running a glm with poisson errors and have a doubt when ploting the predicted values. One of my variables has a positive slope in the summary output, but when I plot the predicted values on the original plot it draws a line with negative slope. I appreciate your comments on this and a

Re: [R] html posts tags remove home page

2015-08-19 Thread Jeff Newmiller
This is a mailing list on the topic of R. Your email does not appear to be related to that topic, so either look for a different mailing list/web forum where your question would be on topic, or provide a concrete example of your problem. If you do post here again, please use plain text format si

Re: [R] match.arg: how to prevent users from not specifying a value

2015-08-19 Thread Bert Gunter
... and you could also use missing() (?missing for details) if you wanted to give the user more verbose instructions, e.g. f1 <- function(type, ...) { if(missing(type)){ cat("You must enter a 'type' argument that is one of etc\n") return(invisible()) } mat

Re: [R] Output In R

2015-08-19 Thread jim holtman
At least provide a sample of the data and then the desired output. All we get from your email is that it "does not show the desired result" and we are at a lost to understand what that is. I know it was suggested that you write it out as a CSV file and then you can use EXCEL to page through the d

Re: [R] match.arg: how to prevent users from not specifying a value

2015-08-19 Thread William Dunlap
If you want to force the user to enter the 'type' argument, move the vector of choices out of the argument list and into the call to match.arg(): f1 <- function(type, ...) { match.arg(type, c("A", "B", "C")) } f1() #Error in match.arg(type, c("A", "B", "C")) : # argument "ty

Re: [R] Error message from allEffects(model) / effect(model)" ‘range’ not meaningful for factors"

2015-08-19 Thread Michael Dewey
You rm is of class summary.lm Is that what allEffects is expecting? On 19/08/2015 01:49, Robert Zimbardo wrote: Hi I cannot figure out why the effects package throws me error messages with the following simple code: rm(list=ls(all=TRUE)); set.seed(1); library(effects) # set up data x <- facto

Re: [R] Error message from allEffects(model) / effect(model)" ‘range’ not meaningful for factors"

2015-08-19 Thread John Fox
Hi, > m <- lm(y~x) # no problem > allEffects(m)# also no problem model: y ~ x x effect x abc 3.322448 3.830997 4.969154 > effect("x", m) # ditto x effect x abc 3.322448 3.830997 4.969154 > Effect("x", m) # ditto x effect x a

Re: [R] Rodbc retrieve data

2015-08-19 Thread Mark Sharp
Diaz, paste() and paste0() will work here. paste0() defaults to "" between character vector elements and paste() defaults to " " (single blank character) between character vector elements. See ?paste. I do not recall, but you may have to escape the "&" symbol, but that is another topic. Try t

Re: [R] data format

2015-08-19 Thread Erich Neuwirth
This is the kind of problem the package tidyR has been designed for. > On 19 Aug 2015, at 16:29, minikg wrote: > > Hi, > > I have a dataset consisting of landmarks of each sample's coordinates as > given below. > > landmark X Y X Y X Y > P1 5

[R] data format

2015-08-19 Thread minikg
Hi, I have a dataset consisting of landmarks of each sample's coordinates as given below. landmarkX Y X Y X Y P1 534 7 26 7 32 P2 46 45 48 42 44 48 P3 73 45 72 44

[R] Rodbc retrieve data

2015-08-19 Thread Diaz Garcia, Luis Carlos
Hi every one first I would like to introduce myself, as I'm new here. I'm Luis from Barcelona, I'm Oracle dba and I need to create some nice graphs. So, I was looking for a solution and I saw R... I think it's a good tool to make the task I need. So here is the task: I need to get all the dblink

[R] Plot z=f(x,y) analytically

2015-08-19 Thread chappo007
Hi, I've been led to believe that in R it is possible to produce a 3d analytical plot of a function. I've been pointed in the direction of plot3d(), so the command is something like plot3d(x^2+y^2,(x,-3,3),(y,-3,3)). And a smart person out there is going to tell me where this syntax comes from

[R] html posts tags remove home page

2015-08-19 Thread Valentin Cojocaru
In html, How to remove posts from one category displaying on the home page by using tags. Thanks,Valentin [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and m

[R] repeated measures anova equivalent using lmer

2015-08-19 Thread aruna sudarshan
I am trying to run a linear mixed effects model similar to the 2*2*2 anova design. My DV is reaction time and fixed factors are time (pre vs. post:within-subject), condition (congruent vs. incongruent: within subject) and stimulation (vertex vs. DLPFC: between subject) My concerns are: a)I have ver

Re: [R] Output In R

2015-08-19 Thread Shivi82
Hi Loris, I have already tried options(max.print=99) but does not show the desired result. As posted above it want to share the outcome with the business owner where there could be multiple entries. -- View this message in context: http://r.789695.n4.nabble.com/Output-In-R-tp4711227p47

Re: [R] Output In R

2015-08-19 Thread Shivi82
HI Boris, The reason i want to see or show 3 million rows in console is that i need to present it to a business user. So here my end objective is to present the final output to the business user. So lets say when i write a code: select(june,waybill:type,contains("sfxcode")) so here there could b

[R] Error message from allEffects(model) / effect(model)" ‘range’ not meaningful for factors"

2015-08-19 Thread Robert Zimbardo
Hi I cannot figure out why the effects package throws me error messages with the following simple code: rm(list=ls(all=TRUE)); set.seed(1); library(effects) # set up data x <- factor(rep(letters[1:3], each=100)) y <- c(rnorm(100, 3, 3), rnorm(100, 4, 3), rnorm(100, 5, 3)) # fit linear model m

Re: [R] Running R in Server

2015-08-19 Thread Swagato Chatterjee
Dear all, Thenks for replying to my query. *@Amaud: If I understand correctly what you want to do, you might be able to create a HTML report using RMarkdown and host that on the website. If you really need a web app, I suggest looking into Shiny. You can make a shiny app, host it for free on th

[R] equivalent of repeated measures anova using lmer

2015-08-19 Thread asudar
I am trying to run a linear mixed effects model similar to the 2*2*2 anova design. My DV is reaction time and fixed factors are time (pre vs. post:within-subject), condition (congruent vs. incongruent: within subject) and stimulation (vertex vs. DLPFC: between subject) My concerns are: a)I have ver

[R] match.arg: how to prevent users from not specifying a value

2015-08-19 Thread Youyi Fong
Hello, I have a function that looks like f=function( type=c("dummy,"A","B,"C"), ... ) { type<-match.arg(type) if (type=="dummy") stop("Please choose a type that is not dummy.") ... } I put a "dummy" in the list of choices as a mechanism to prevent users from not specifying a value for

Re: [R] Confussion matrix in tree clasiffication

2015-08-19 Thread David L Carlson
Use predict.tree() with type="class" on the object returned by tree(). Then use that to construct a cross tabulation against the original data. If you provide a reproducible example with data, I could be more specific. - David L Carlson Department of Anthropol

Re: [R] Non linear regression - Von Bertalanffy Growth Function - "singular gradient matrix at initial parameter estimates"

2015-08-19 Thread ProfJCNash
Packages nlmrt or minpack.lm use a Marquardt method. minpack.lm won't proceed if the Jacobian singularity is at the starting point as far as I'm aware, but nlxb in nlmrt can sometimes get going. It has a policy that is aggressive in trying to improve the sum of squares, so will use more effort

[R] Confussion matrix in tree clasiffication

2015-08-19 Thread jpara3
Hi there! I want to create a confussion matrix after using the tree package to create a clasiffication tree, but I´m not sure of how to create this matrix. Can anyone please help me? Thanks Jesús - Guided Tours Basque Country Guided tours in the three capitals of the Basque Country: Bi