search for: traxplayer

Displaying 20 results from an estimated 31 matches for "traxplayer".

Did you mean: taxpayer
2017 Aug 14
4
Help creating the IBM Randu function
Dear all, I am trying to learn functions in R and 3D plotting so I decided to try to plot the famous bad PRNG Randu from IBM(1). However something is not correct in the function I have created. First I define the function RANDU like this: > RANDU <- function(num) { return (65539*num)%%(2^31) } and test that it works for a seed of 1: > RANDU(1) [1] 65539 but if I want the next
2018 Jun 01
1
Unable to take correct Web-snapshot
Thanks for that information. However how can I use R to directly get data from that API? On Fri, Jun 1, 2018 at 8:36 PM Martin M?ller Skarbiniks Pedersen < traxplayer at gmail.com> wrote: > On 1 June 2018 at 15:08, Christofer Bogaso <bogaso.christofer at gmail.com> > wrote: > > Hi again, > > > > I use the *webshot* package to take snapshot from Webpage. However, when > I > > try to take snapshot from* https://www.coinba...
2017 Aug 14
0
Help creating the IBM Randu function
Hi Martin, The corrected function would be RANDU <- function(num) { return ((65539*num)%%(2^31)) } You forgot the brackets for the return function. Hence, what was returned was always (65539 * num) On Mon, Aug 14, 2017 at 12:49 PM, Martin M?ller Skarbiniks Pedersen <traxplayer at gmail.com> wrote: > Dear all, > > I am trying to learn functions in R and 3D plotting so I decided to try > to plot > the famous bad PRNG Randu from IBM(1). > However something is not correct in the function I have created. > First I define the function RANDU like...
2017 Aug 14
0
Help creating the IBM Randu function
Please look at ?datasets::randu for David Donoho's translation of RANDU into R. On Mon, Aug 14, 2017 at 12:49 PM, Martin M?ller Skarbiniks Pedersen <traxplayer at gmail.com> wrote: > Dear all, > > I am trying to learn functions in R and 3D plotting so I decided to try > to plot > the famous bad PRNG Randu from IBM(1). > However something is not correct in the function I have created. > First I define the function RANDU like...
2018 Jan 17
3
roxygen2 error - x$tag operator is invalid for atomic vectors
Hi, I am trying to create my first R package. I will later today put the files on Github. However I gets this error and I can't find any reason for it: R> roxygen2::roxygenise() First time using roxygen2. Upgrading automatically... Error in x$tag : $ operator is invalid for atomic vectors R> Any ideas? Regards Martin M. S. Pedersen [[alternative HTML version deleted]]
2017 Sep 08
1
Optimize code to read text-file with digits
> On 8 Sep 2017, at 15:51 , Martin M?ller Skarbiniks Pedersen <traxplayer at gmail.com> wrote: > > On 8 September 2017 at 14:37, peter dalgaard <pdalgd at gmail.com> wrote: >> >> >>> On 8 Sep 2017, at 14:03 , peter dalgaard <pdalgd at gmail.com> wrote: >>> >>> x <- scan("~/Downloads/digits.txt")...
2017 Dec 03
0
Rcpp, dyn.load and C++ problems
.Call("compute_values_cpp") Also, if you were passing arguments to the C++ function you would need to declare the function differently. Do a search on "Rcpp calling C++ functions from R" HTH, Eric On Sun, Dec 3, 2017 at 3:06 AM, Martin M?ller Skarbiniks Pedersen < traxplayer at gmail.com> wrote: > Hi, > > I have written a small C++ function and compile it. > However in R I can't see the function I have defined in C++. > I have read some web-pages about Rcpp and C++ but it is a bit confusion > for me. > > Anyway, > This is the...
2018 Jan 17
2
Help making first dataset R package
Hi, I am trying to make my first R package containing only a single data.frame and documentation. All code can be found at: https://github.com/MartinMSPedersen/folkeafstemninger When I check the package I get four warnings. I will list all warnings in this email because they migth be connected. 1. * checking if this is a source package ... WARNING Subdirectory ?src? contains:
2017 Dec 03
0
Rcpp, dyn.load and C++ problems
...ectly) documentation for Rcpp: http://dirk.eddelbuettel.com/code/rcpp/Rcpp-attributes.pdf Note that you need to do sourceCpp("logistic_map.cpp") in R instead of building and dyn.load()-ing the object. HTH, Peter On Sun, Dec 3, 2017 at 11:04 AM, Martin M?ller Skarbiniks Pedersen <traxplayer at gmail.com> wrote: > On 3 December 2017 at 05:23, Eric Berger <ericjberger at gmail.com> wrote: > >> >> Do a search on "Rcpp calling C++ functions from R" >> > > Thanks. However search for "Rcpp calling C++ functions from R" gives a lot &...
2018 Jan 03
0
Help with first S3-class
Some mistake: > I expect this output: [1] 100 Martin Saldo is: 100 but I get [1] 0 Martn Saldo is: 0
2018 Jan 03
1
Help with first S3-class
...and let the objects carry the results until you have a chance to summarize or plot them. Study the "lm" function and associated print and plot methods. -- Sent from my phone. Please excuse my brevity. On January 2, 2018 4:37:01 PM PST, "Martin M?ller Skarbiniks Pedersen" <traxplayer at gmail.com> wrote: >Some mistake: > >> I expect this output: > >[1] 100 >Martin >Saldo is: 100 > >but I get > >[1] 0 >Martn >Saldo is: 0 > >______________________________________________ >R-help at r-project.org mailing list -- To UNSUBSCRIBE...
2018 Jan 17
0
roxygen2 error - x$tag operator is invalid for atomic vectors
...gt; a <- 5 > a$foo This will generate the error message: Error in a$foo : $ operator is invalid for atomic vectors So you can search for the string 'x$tag' in your code (or possibly in the package). HTH, Eric On Wed, Jan 17, 2018 at 3:16 PM, Martin M?ller Skarbiniks Pedersen < traxplayer at gmail.com> wrote: > Hi, > > I am trying to create my first R package. > I will later today put the files on Github. > > However I gets this error and I can't find any reason for it: > > R> roxygen2::roxygenise() > First time using roxygen2. Upgrading a...
2018 Jun 01
0
Unable to take correct Web-snapshot
On 1 June 2018 at 15:08, Christofer Bogaso <bogaso.christofer at gmail.com> wrote: > Hi again, > > I use the *webshot* package to take snapshot from Webpage. However, when I > try to take snapshot from* https://www.coinbase.com/ > <https://www.coinbase.com/>*, this fails to take the full snapshot of that > page. Yes, that is a general problem with many webshot
2017 Dec 03
5
Rcpp, dyn.load and C++ problems
Hi, I have written a small C++ function and compile it. However in R I can't see the function I have defined in C++. I have read some web-pages about Rcpp and C++ but it is a bit confusion for me. Anyway, This is the C++-code: #include <Rcpp.h> using namespace Rcpp; // [[Rcpp::export]] List compute_values_cpp(int totalPoints = 1e5, double angle_increment = 0.01, int radius =
2018 Jan 03
2
Help with first S3-class
On 3 January 2018 at 00:52, Duncan Murdoch <murdoch.duncan at gmail.com> wrote: > On 02/01/2018 6:38 PM, Martin M?ller Skarbiniks Pedersen wrote: >> >> Hi, >> >> I am trying to understand S3 classes. I have read several tutorials >> about >> the topics but I am still a bit confused. I guess it is because it is >> so different from >> Java
2018 Jun 01
2
Unable to take correct Web-snapshot
Hi again, I use the *webshot* package to take snapshot from Webpage. However, when I try to take snapshot from* https://www.coinbase.com/ <https://www.coinbase.com/>*, this fails to take the full snapshot of that page. I tried following : > library(webshot) > webshot("https://www.coinbase.com/", 'aa.pdf') However in the pdf page, I done see the quotes which are
2017 Sep 08
0
Optimize code to read text-file with digits
...113 27010 18116 9122 3466 1186 366 99 22 1 1 12 1 (I.e., out of 200000 random 5 digit numbers, 13497 numbers never occurred, 27113 numbers exactly once, and ... and 1 number occurred 12 times.) -pd > On 8 Sep 2017, at 10:48 , Martin M?ller Skarbiniks Pedersen <traxplayer at gmail.com> wrote: > > Hi, > > Every day I try to write some small R programs to improve my R-skills. > Yesterday I wrote a small program to read the digits from "A Million > Random Digits" from RAND. > My code works but it is very slow and I guess the code...
2018 Jan 19
0
reading lisp file in R
Here are the beginning of a R program. I hope it can help you writing the rest of the program. Regards Martin M. S. Pedersen ---- filename <- "university.data" lines <- readLines(filename) first <- T for (ALine in lines) { ALine <- sub("^ +","",ALine) ALine <- sub(")","",ALine, fixed = T) if
2017 Sep 08
0
Optimize code to read text-file with digits
On 8 September 2017 at 14:37, peter dalgaard <pdalgd at gmail.com> wrote: > > > > On 8 Sep 2017, at 14:03 , peter dalgaard <pdalgd at gmail.com> wrote: > > > > x <- scan("~/Downloads/digits.txt") > > x <- x[-seq(1,220000,11)] > > ...and, come to think of it, if you really want the 1000000 random digits: > > xx <-
2017 Dec 03
2
Rcpp, dyn.load and C++ problems
On 3 December 2017 at 05:23, Eric Berger <ericjberger at gmail.com> wrote: > > Do a search on "Rcpp calling C++ functions from R" > Thanks. However search for "Rcpp calling C++ functions from R" gives a lot of result but I think some of them are outdated and others don't agree with each other. Can you point to a specific good on-line guide for me? Regards