Re: [R] Splitting a string expression into components

2013-07-08 Thread Yuliya Matveyeva
strsplit(x, split= " ") 2013/7/3 Dan Murphy > I have a vector of strings that contain mathematical expressions. E.g., > x <- c("5 <= 7", "z = 1+2") > and I would like to decompose each expression into its left- and > right-hand-side components etc., output something like > > "5" "<=" "7" > "z"

[R] party ctree : getting a one-node tree

2013-06-27 Thread Yuliya Matveyeva
Dear useRs, I am currently using the ctree function (package "party") and am stuck at the problem of getting a one-node tree (a tree with no splits consisting of the root only) even if I maximally loosen all the stopping criteria (mincriterion = 0, minbucket = 0, minsplit = 0). In order to chec

Re: [R] match rows of R

2013-06-26 Thread Yuliya Matveyeva
I suggest using vectorization : find_row <- function(m,v) { which(!(abs(rowSums(m - rep(v, each = nrow(m))) )) > 0) } The function matroweqv mentioned above would give any row with the first element equal to the first element in vector v. The function find_row matches each row of the matrix as a

[R] oblique.tree : the predict function asserts the dependent variable to be included in "newdata"

2012-11-01 Thread Yuliya Matveyeva
Dear R community, I have recently discovered the package oblique.tree and I must admit that it was a nice surprise for me, since I have actually made my own version of a kind of a classifier which uses the idea of oblique splits (splits by means of hyperplanes). So I am now interested in comparing

[R] e1071 : class.weights

2012-02-27 Thread Yuliya Matveyeva
Dear R-society, I know this is probably a question to LibSVM, but I have not found a LibSVM mailing list, so I would be really grateful if someone from this list helped me. In the LibSVM documentation I have found a passage about dealing with unbalanced sets, that says that in this case one sets

Re: [R] plot with two y axes BUT unaligned x axis

2011-06-16 Thread Yuliya Matveyeva
Use the `xlim` parameter of the `plot` function. IFor example, if X1 and X2 are the variables that contain the values of your x-axis, do xlim1 <- range(X1,X2), than do plot(, xlim = xlim1,...) Hope this helps. 2011/6/15 bjmjarrett > Hi all, > > I have scoured the archives of this foru

[R] Recompile a package

2011-05-11 Thread Yuliya Matveyeva
Hello, dear R community. The thing is that I am not in the least a developer, neither do I want to create a package of my own. But recently I have found a package LogicForest, which is in the base written in Fortran I think. And well, in its manual it is written that there are several parameters t

Re: [R] Barplot and plot means with confidence intervals in the same plot

2010-11-23 Thread Yuliya Matveyeva
2010/11/23 Ignacio Alborés > I want to obtain a barplot with error bars and a mean plot with error bars > with other scale on the left in the same plot. I need help to get the > same > x axis (centered) when overlay two plots (barplot2 and plotCI (or > lineplot.CI) with errorbars), with difere

Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-14 Thread Yuliya Matveyeva
Good afternoon, I am actually concerned with this issue too. What if I run R at work and I simply do not have the necessary access-rights in order to delete the .Rdata file. Do I really have only 3 choices: ask the admin to delete it, live with it always reloading the previous workspace, resave an

Re: [R] library(kernlab) --- unable to load shared library

2010-11-10 Thread Yuliya Matveyeva
I am very sorry. It's just that it's not my computer that the problem occured on... It's at work. So I am going to see what distribution it was when I get there. But I have no chance to know how R was installed... since it wasn't me who installed it. But could you please tell me , at least, where

[R] library(kernlab) --- unable to load shared library

2010-11-09 Thread Yuliya Matveyeva
olution of this problem ? Any help would be greatly appreciated. Sincerely yours, Yuliya Matveyeva. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the pos

Re: [R] segfault caused by `icfit` in `interval` package

2010-10-10 Thread Yuliya Matveyeva
may be a good idea to contact the package maintainer > of interval first. > > Uwe Ligges > > > > > On 10.10.2010 17:33, Yuliya Matveyeva wrote: > >> Dear R community, >> I am using the R package `interval` in order to perform some modelling >> tests of the

Re: [R] segfault caused by `icfit` in `interval` package

2010-10-10 Thread Yuliya Matveyeva
ctly could you please tell if there might be a non-package-specific reason for a segfault in my case ? Sincerely yours, Yuliya Matveyeva. 2010/10/10 Uwe Ligges > Please try with the R-2.12.0 ReleaseCandidate and thwe most recent version > of the package (please report its version number!)

[R] segfault caused by `icfit` in `interval` package

2010-10-10 Thread Yuliya Matveyeva
tDeferredWarnings())} invisible(structure(msg, class = "try-error"))}) 9: try(do.call(initfit, args = list(L = L, R = R, Lin = Lin, Rin = Rin, A = A))) 10: icfit.default(L = left, R = right) 11: icfit(L = left, R = right) Possible actions: 1: abort (with core dump, if enabled) 2: nor