Re: [R] to run an older version of R on my machine

2019-05-23 Thread Alfredo Cortell
Hi Bogdan, The way I do this is the following: I have different R versions installed, and then I downloaded and use Rswitch to change between versions. You just open it, select the version you want, and R will open in that version directly. It works with R and Rstudio in a MacOS HighSierra, althou

Re: [R] Fwd: How to retain the NA as a value for splitting a dataframe

2019-05-23 Thread Gerrit Eichner
Hello, Jun, try split(df, f = factor(df$C, exclude = NULL)) For more info see ?factor, of course. Regards -- Gerrit - Dr. Gerrit Eichner Mathematical Institute, Room 212 gerrit.eich...@math.uni-giessen.de

[R] Fwd: How to retain the NA as a value for splitting a dataframe

2019-05-23 Thread Jun Shen
Dear list, Say I have a data frame with NA in the variable which I want to use as a sorting variable for splitting the data frame. df <- data.frame(A=1:10, B=c(rep(99,5), rep(100,5)), C=c(rep(NA,3), rep(1,3), rep(2,4))) split(df, f=df[c('C')], drop=FALSE), I got the output as follows. I was hopi

[R] cspade {arulesSequences} error

2019-05-23 Thread reichmanj
R-Help When I run the cspade function from the arulesSequences package... s1 <- cspade(trans_matrix, parameter = list(support = 0.3), control = list(verbose = TRUE)) #s1 <- cspade(trans_matrix, parameter = list(support = 0.3), control = list(verbose = TRUE), tmpdir = "C:\\Temp") I rece

[R] to run an older version of R on my machine

2019-05-23 Thread Bogdan Tanasa
Dear all, if you could help me please with a solution to a simple question : i believe that my ubuntu machine automatically installed R 3.6.0 : when i type : > R. it says : R version 3.6.0 (2019-04-26) -- "Planting of a Tree" Copyright (C) 2019 The R Foundation for Statistical Computing Platform

Re: [R] cygwin clipboard

2019-05-23 Thread Duncan Murdoch
On 22/05/2019 8:57 p.m., Abby Spurdle wrote: > I'd like to be able to access the windows clipboard from R under Cygwin. > Is this supported in any way?  Thanks Hi Ed You can access the Windows clipboard under Cygwin. I ran R within Cygwin. I was able to use read.table (file="clipboard") for b

[R] r kernlab find best cost parameter automatically

2019-05-23 Thread Luigi Marongiu
Dear all, I am using kernlab to implement an SVM analysis. The model I am building has the syntax: `ksvm( ~ , data = , type = "C-svc", kernel = "rbfdot", kpar = "automatic", C = , prob.model = TRUE)` Here, I can use different values of `k` to give different costs to the model. Each time I give a