Re: [R] Partial LookUP

2018-11-21 Thread PIKAL Petr
Hi I did not see any answer so I try to generate some answer. It seems to me that your second attempt was quite close. If passengerid was numeric, following code could probably give you the required result. res <- rep(NA, nrow(df1)) for (i in 1:NROW(df1)) { sel <- which(str_detect(df1$Name,coll

Re: [R] Speed of RCppEigen Cholesky decomposition on sparse matrix

2018-11-21 Thread Jeff Newmiller
I believe you have the wrong list. (Read the Posting Guide... you seem to have R under control.) Try Rcpp-devel. FWIW You probably need to spend some time with a C++ profiler... any language can be unintentionally mis-used, and you first need to identify whether your calling code is inefficien

[R] Speed of RCppEigen Cholesky decomposition on sparse matrix

2018-11-21 Thread Hoffman, Gabriel
I am developing a statistical model and I have a prototype working in R code. I make extensive use of sparse matrices, so the R code is pretty fast, but hoped that using RCppEigen to evaluate the log-likelihood function could avoid a lot of memory copying and be substantially faster. However,

Re: [R] [R studio] Plotting of line chart for each columns at 1 page

2018-11-21 Thread Subhamitra Patra
OK, Sir. I will try as per your suggestions. Thank you very much for your kind help. [image: Mailtrack] Sender notified by Mailtrack

Re: [R] Use of C functions inside the DLL object

2018-11-21 Thread Rui Barradas
Hello, You must pass a string with a number of characters large enough to accomodate the return value you want. This is one of the shortcomings of the .C interface. The string “2.0.19” ahs 6 characters, so try .C("FDwfGetVersion", version = character(6) ) Hope this helps, Rui Barradas Às

Re: [R] [R studio] Plotting of line chart for each columns at 1 page

2018-11-21 Thread Jim Lemon
1. xaxt="n" means "Don't display the X axis". See the help for "par" in the graphics package 2. axis(1,at=1:nrows,labels=names(MPG3)) This means, "Display the bottom axis (1) with ticks at 1 to the number of rows in the data frame" "Use the values of MPG$Year as labels for the ticks". see the help

Re: [R] system solver in R

2018-11-21 Thread peter dalgaard
Once you figure out how to decipher the output, you realise that it actually does give you all 4 roots, including the two real ones: ... > a <- .Last.value > complex_cartesian <- function(x,y) x+(0+1i)*y > eval(a$text[[1]][[2]][[3]]) [1] -1.00028+0.988174i > eval(a$text[[1]][[3]][[3]]) [1] -1.000

Re: [R] [R studio] Plotting of line chart for each columns at 1 page

2018-11-21 Thread Subhamitra Patra
Sir, in the bold portion of the below code, I have some confusion which I am mentioning below that "ylab="MPG",main=names(MPG3)[i],*xaxt="n"*) axis(*1*,at=1:nrows,*labels=MPG3$Year*)" 1. Here, what *xaxt="n"* indicates? I think it indicates the no. of rows, right? 2. 1 in the 2nd line represent