Re: [R] Trying to understand the magic of lm

2019-05-08 Thread Ben Tupper
Hi, I'm not sure if this is what you are after, but instead of defining arguments for elements of the formula why not simply pass your desired formula to your function? Cheers, Ben myfunction <- function(frmla,dataframe){ fit0 <- lm(frmla,data=dataframe) print (summary(fit0)) } # Run the

[R] Trying to understand the magic of lm

2019-05-08 Thread Sorkin, John
Can someone send me something I can read about passing parameters so I can understand how lm manages to have a dataframe passed to it, and use columns from the dataframe to set up a regression. I have looked at the code for lm and don't understand what I am reading. What I want to do is somethin

Re: [R] install R

2019-05-08 Thread John via R-help
On Wed, 8 May 2019 21:05:29 +0800 (CST) yueli wrote: > Hello, > > > I am trying to install R. > > > Thanks in advance for any help! > > > Yue > > It appears that your GCC compiler installation doesn't include all the compilers that can come with it. All those "no's" listed in your output

[R] Date Time Conversion

2019-05-08 Thread reichmanj
r-Help Community Never mine figured it out just use the "as.POSIXct" function Jeff I need to convert a date-time field (column) but I'm losing the time when I convert using .. tsData <- myData[,10, drop=FALSE] tsData$date_time <- as.Date(tsData$date_time, format="%m/%d/%y %H:%M"

Re: [R] Date Time Conversion

2019-05-08 Thread Rui Barradas
Hello, as.Date() outputs an object of class "Date", you want an object of class c("POSIXt", "POSIXct"). Use as.POSIXct(). Hope this helps, Rui Barradas Às 16:04 de 08/05/19, reichm...@sbcglobal.net escreveu: r-Help Community I need to convert a date-time field (column) but I'm losing

[R] Date Time Conversion

2019-05-08 Thread reichmanj
r-Help Community I need to convert a date-time field (column) but I'm losing the time when I convert using .. tsData <- myData[,10, drop=FALSE] tsData$date_time <- as.Date(tsData$date_time, format="%m/%d/%y %H:%M") head(tsData) date_time 1 2013-06-20

Re: [R] install R

2019-05-08 Thread Sarah Goslee
Hi, If you don't want to install the binary for your version of linux, then you must install the prerequisites first. Notably, you have to have a compiler if you want to compile R from source! Here's a list: https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Essential-and-useful-othe

Re: [R] install R

2019-05-08 Thread Eric Berger
Do a web search such as "ubuntu install fortran" (or replace ubuntu by your distribution if it's different, e.g. debian or centos or ..) e.g. the above search gives a result of the following link which provides the appropriate commands https://fossnaija.com/how-to-install-fortran-compiler-in-linu

[R] install R

2019-05-08 Thread yueli
Hello, I am trying to install R. Thanks in advance for any help! Yue li@li-HP-Pavilion-Desktop-590-p0xxx:~/R-3.6.0$ ./configure checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu loading site script './config.site' loading build-specific scr

Re: [R] approx with NAs

2019-05-08 Thread Martin Maechler
Dear Robert, this is really not asking for help about R but rather wishing for new features of a (very long) existing R function. Hence this is a topic for the 'R-devel' mailing list (https://stat.ethz.ch/mailman/listinfo/R-devel ) rather than 'R-help'; see also https://www.r-project.org/mail.h

[R] Extract hyperplane from kernlab's Support Vector Machine model

2019-05-08 Thread Luigi Marongiu
Dear all, I would like to extract an hyperplance froma SVM model generated with the kernlab package. The model I have made is non-linear and I am looking to plot the line that separates the two groups in order to draw custom plots with more control. I understand that I should use a contour plot but