Hello,
I'd like to add a functionality to "bind" vectors of the same type (well
sugar expressions really, but let's say it is vectors for the sake of
this email).
So essentially I'd like something similar to what "c" does in R :
> c( letters, letters )
[1] "a" "b" "c" "d" "e" "f" "g" "h" "i
Hi Romain,
"bind" may be confusing to R users, because "cbind" and "rbind" exist
in R and return matrices. In my opinion, "combine" is a better option.
- Andreas
On Thu, Dec 13, 2012 at 10:01 AM, Romain Francois
wrote:
> Hello,
>
> I'd like to add a functionality to "bind" vectors of the same
Romain,
what about "join"?
walter.
On Thu, Dec 13, 2012 at 1:15 PM, Andreas Alfons
wrote:
> Hi Romain,
>
> "bind" may be confusing to R users, because "cbind" and "rbind" exist
> in R and return matrices. In my opinion, "combine" is a better option.
>
> - Andreas
>
>
> On Thu, Dec 13,
What about 'concat', 'cat', or 'concatenate'? The function concatenates
vectors, and 'concat' and 'cat' are well-known short forms of the word.
(The Unix program 'cat' is so-named because it concatenates text files.)
On Thu, Dec 13, 2012 at 7:20 AM, Walter Mascarenhas <
walter.mascaren...@gmail
The problem seems to be file privileges. When I run R as
superuser, it works. When I run as a normal user, I continue getting
Error in dyn.load(libLFile) :
unable to load shared object
'/tmp/RtmpTFHtzm/file1d365e7eaf51.so':
/tmp/RtmpTFHtzm/file1d365e7eaf51.so: undefined symbol:
_ZN4Rcpp8in
Do you have the same version of Rcpp as root and as non root ?
You can use c++filt to demangle the name, e.g. what does this give you:
$ c++filt _ZN4Rcpp8internal14r_vector_startILi14EdEEPT0_P7SEXPREC
r_vector_start has changed in 0.10.1, i.e. it lost a template parameter,
which is likely to b
On 13 December 2012 at 10:01, Romain Francois wrote:
| Hello,
|
| I'd like to add a functionality to "bind" vectors of the same type (well
| sugar expressions really, but let's say it is vectors for the sake of
| this email).
|
| So essentially I'd like something similar to what "c" does in R
On 13 December 2012 at 17:08, Glenn Lawyer wrote:
| The problem seems to be file privileges. When I run R as superuser, it works.
| When I run as a normal user, I continue getting
[...]
| I would very much appreciate a hint/suggestion as to which
folders/directories/
| paths I may need to check t
Le 13/12/12 17:29, Dirk Eddelbuettel a écrit :
On 13 December 2012 at 10:01, Romain Francois wrote:
| Hello,
|
| I'd like to add a functionality to "bind" vectors of the same type (well
| sugar expressions really, but let's say it is vectors for the sake of
| this email).
|
| So essentially I'd
Dear All,
How to free memory in Rcpp? What's the command? Thanks.
Best wishes!
Honglang Wang
Office C402 Wells Hall
Department of Statistics and Probability
Michigan State University
1579 I Spartan Village, East Lansing, MI 48823
wangh...@msu.edu
___
R
Hello,
What memory do you want to free ? Can you give an example of code where
there is memory you'd like to "free" ?
Romain
Le 2012-12-13 22:52, Honglang Wang a écrit :
Dear All,
How to free memory in Rcpp? What's the command? Thanks.
Best wishes!
Honglang Wang
Office C402 Wells Hall
I just built a source package on a 0.10.1 box for the first time;
previously, I'd always built it on 0.9.15 boxes. I was surprised to see
that I now need to do string comparisons to character SEXP's using the
CHAR() macro; previously, I'd been able to use the SEXP from a StringVector
directly.
I'
Le 2012-12-13 23:09, John Merrill a écrit :
I just built a source package on a 0.10.1 box for the first time;
previously, I'd always built it on 0.9.15 boxes. I was surprised to
see that I now need to do string comparisons to character SEXP's
using
the CHAR() macro; previously, I'd been able t
Hi,
Here is the sample code:
// [[Rcpp::export]]
List betahat(Function ker, double t0, NumericMatrix Xr, NumericMatrix yr,
NumericVector tr, double h, int m) {
int n = Xr.nrow(), p = Xr.ncol();
arma::mat X(Xr.begin(), n, p, false);
arma::mat y(yr.begin(), n, 1, false);
arma::colvec t(tr.beg
Honglang,
You are now abusing the free facilities offered by this list. Your examples
are not self-contained [ no sample data or simulated data ] and hence not
reproducible. Your code is complex, and not motivated. And we have told you
REPEATEDLY to shorten your code to chunks until it works.
I am sorry that I was abusing this list. My point is
1) First, this code works for me for some simulation cases. I repeated the
simulation 1000 times, which then called this Rcpp function 1000 times at
least. And this code worked perfectly.
2) But in some other simulation case (here what I mean by
You really are not reading the list as close as you should be. If you want
advice, then take it when people give it to you or stop asking.
AFAIK, your code does not involve manually allocated memory, all memories are
managed by RAII objects, I don't see where the question of "freeing memory"
co
Hi Yan,
Thanks a lot. Your advice is really the point for me. Have a good night.
Best wishes!
Honglang Wang
Office C402 Wells Hall
Department of Statistics and Probability
Michigan State University
1579 I Spartan Village, East Lansing, MI 48823
wangh...@msu.edu
On Thu, Dec 13, 2012 at 10:54 P
Le 14/12/12 03:15, Honglang Wang a écrit :
Hi,
Here is the sample code:
// [[Rcpp::export]]
List betahat(Function ker, double t0, NumericMatrix Xr, NumericMatrix
yr, NumericVector tr, double h, int m) {
int n = Xr.nrow(), p = Xr.ncol();
arma::mat X(Xr.begin(), n, p, false);
arma::mat y(y
19 matches
Mail list logo