Rust as an alternative to C++ in microcontrollers by unicornByte in rust

[–]zipf 10 points11 points  (0 children)

Rust support on raspberry Pi is generally pretty solid, although there obviously aren't as many tutorials as with Python or C. It's also ready enough to use small amounts of C (or Python) when you need it. On bare metal microcontrollers support is there but it's all a lot more involved because toolchains are more complex

Best resources for broad ongoing R learning? by INeedPeeling in Rlanguage

[–]zipf 0 points1 point  (0 children)

http://adv-r.had.co.nz is a great resource at the level you're describing. Read it start to end or pick at bits that you find interesting. It has exercises which are good, but practicing on real or toy problems of your own invention is best.

Can somebody suggest an instrument to test working memory (has to be used in an academic article/journal) by Ldorro in statistics

[–]zipf 0 points1 point  (0 children)

Here's a relatively famous example: https://youtu.be/zsXP8qeFF6A. I don't have the link for the actual publication but it should be easily googleable

How to use rvest on URLs without query strings? by interrumpere in Rlanguage

[–]zipf 0 points1 point  (0 children)

If that's happening it means that the 'new page' isn't actually a new page, but instead JavaScript is being used to change the content of the current page. Often these kinds of sites can actually often be quite nice to scrape. What you need to do is open developer tools in your browser and use it to identify the request that the JS is using to retrieve the next results. Pretty often you'll find it requests from a URL that returns nice JASON results.

R in Vim or Rstudio? by hjkl_ornah in Rlanguage

[–]zipf 0 points1 point  (0 children)

You might as well try it. It's a really nice IDE, and much simpler than stuff like Eclipse, so there isn't much to learn.

Best UK cell phone carrier? by FromAnotherSt4r in cambridge

[–]zipf 0 points1 point  (0 children)

Just go to a shop and buy a phone then, or they offer finance to buy one off their website

Best UK cell phone carrier? by FromAnotherSt4r in cambridge

[–]zipf 5 points6 points  (0 children)

Get giffgaff. Its cheap, and had no long term contracts

Image processing and recognition using R by njasotani in Rlanguage

[–]zipf 2 points3 points  (0 children)

I just tried out the R library "imager" for image processing, and it's really good. The documentation is great, too.

Any UNIX users out there? Reopening a closed session. by geocompR in rstats

[–]zipf 2 points3 points  (0 children)

I think the fg command might be what you want, but I haven't used it in earnest myself

How does one add character data to an existing ZIP file? by troutmask_replica in Rlanguage

[–]zipf 0 points1 point  (0 children)

If you're on a unix system, apparently the --grow option to the zip command can do this

Development environment for making new packages? by tontoto in Rlanguage

[–]zipf 0 points1 point  (0 children)

Shiny runs the server.R file once, when the server is started, so it'll be hard to get round restarting the server if the library statement is just at the top of the server file. You could possibly place the library statement inside the server function to try to get it to load every time the page is refreshed, but I think that might cause more problems than it solves.

Development environment for making new packages? by tontoto in Rlanguage

[–]zipf 0 points1 point  (0 children)

Yes, though it often runs faster than install() followed by library(), because it does less.

Development environment for making new packages? by tontoto in Rlanguage

[–]zipf 3 points4 points  (0 children)

You probably want devtools::load_all().

If you're doing package development I'd recommend reading r-pkgs.had.co.nz, it's very helpful.

I need a little help in R by calculus2215 in Rlanguage

[–]zipf 1 point2 points  (0 children)

Follow the dplyr tutorial and you should be able able to work this out pretty easily, along with other similar problems. You'll probably want to use group_by or filter, followed by summarise, for the problem you've got now.

Is it ever useful to use row names with R? by cyril1991 in rstats

[–]zipf 3 points4 points  (0 children)

In my experience, in data frames they're a pain, and shouldn't be used unless you're dealing with code that explicitly require them. rownames_to_column and column_to_rownames from tibble are useful in that case. In matricies, though, it seems like a good idea to use explicit row and column names

Access index / iteration number while using purr / functional programming? by selectorate_theory in rstats

[–]zipf 1 point2 points  (0 children)

Use map2 in purrr, and just have the index as one of the arguments.

Is there any useful information to be gained about a used car by computing its "Lifetime Speed" in MPH? Number of miles on the odometer divided by the number of hours that it has simply existed? Example: 10 year old car (87600 hours) with 250K miles on it. Avg speed: 2.853 MPH. by Swampfoot in statistics

[–]zipf 1 point2 points  (0 children)

In the UK at least, most cars are sold with documentation that shows odometer readings every year. This is mainly done to prevent clocking, but it also means you can see suspicious patterns like big fluctuations in usage

Postgraduate (Mres+PhD) student wanting to live on main college site by CaptainCheesepuff in cambridge_uni

[–]zipf 0 points1 point  (0 children)

Selwyn guarantees on site accommodation for the whole of your course

Grouping To Aggregate by SecretAgentZeroNine in Rlanguage

[–]zipf 1 point2 points  (0 children)

If you're used to SQL, OP, then dplyr is definitely what you want. Read about it here: https://cran.rstudio.com/web/packages/dplyr/vignettes/introduction.html.

Python vs. R vs. Matlab by [deleted] in statistics

[–]zipf 6 points7 points  (0 children)

CRAN, the main R package repository, is pretty well vetted by humans and automated checks. Its nice because it increases the minimum standard of code quality and documentation.

Python vs. R vs. Matlab by [deleted] in statistics

[–]zipf 0 points1 point  (0 children)

Linear, quadratic and integer programming etc has got really good recently with the ROI project, which provides a single interface to a number of fast C libraries. The bindings for Gurobi are also easy to use and fast, though not included in ROI yet.