R bloggers

PowerQuery Puzzle solved with R

October 15, 2024 | Numbers around us

#225–226PuzzlesAuthor: ExcelBIAll files (xlsx with puzzle and R with solution) for each and every puzzle are available on my Github. Enjoy.Puzzle #225Sometimes we have nice tables with so called tidy data, where each observation mean one row. But this ...
[Read more...]

R Solution for Excel Puzzles

October 14, 2024 | Numbers around us

Puzzles no. 559–563PuzzlesAuthor: ExcelBIAll files (xlsx with puzzle and R with solution) for each and every puzzle are available on my Github. Enjoy.Puzzle #559Sometimes we need to make work on columns. It technically just like working on lists, and l...
[Read more...]

Authenticate with Alpaca API

October 12, 2024 | R - datawookie

The {alpacar} package for R is a wrapper around the Alpaca API. API documentation can be found here. In this introductory post I show how to install and load the package, then authenticate with the API and retrieve account information. [Read more...]

Ali–Mikhail–Haq copula, [re]simulated

October 12, 2024 | xi'an

When looking for a copula I could simulate from (rather than the Gaussian copula), I found an algorithm for the Ali–Mikhail–Haq copula that was proposed by Kumar (2010) as reproduced above. But the method seriously fails in that the range of (U,V) resulting from the simulation does not ...
[Read more...]

Halloween Data Cleaning

October 12, 2024 | R on kieranhealy.org

This week in Modern Plain Text Computing we put together some of the things we’ve been learning about cleaning and tidying data. Here’s a somewhat sobering example using data from the Fatality Analysis Reporting System, which is how the NTSA tracks information about road accidents in the United ... [Read more...]

Calculating an LOOCV MSE by hand

October 11, 2024 | arthur charpentier

Last week, we had an “mid-term” exam, for our introduction to statistical learning course.  The question is simple: consider three points, , here Consider here some linear models, estimated using least square techniques, what would be the leave-one-out cross-validation MSE ? I like this exercise since we can compute everything easily, by ...
[Read more...]

Introducing: the POLYGON FULL

October 10, 2024 | Edzer Pebesma

Summary Why? How? Examples [view raw Rmd] Summary This post introduces the POLYGON FULL geometry, new in sf 1.0-18 which appeared on CRAN Today. Why? Polygons delineate a two-dimensional bound area. The OGC simple feature access standard...
[Read more...]

R You Ready? Git Your Code Under Control!

October 10, 2024 | Numbers around us

Hey there, ready to get your R code under control? Whether you’re working on your own or in a small team, managing your code can sometimes feel like juggling too many things at once. But don’t worry — there’s an easy way to stay on top of everything. ...
[Read more...]

Methods for the smooth functions in R

October 10, 2024 | Ivan Svetunkov

I have been asked recently by a colleague of mine how to extract the variance from a model estimated using adam() function from the smooth package in R. The problem was that that person started reading the source code of the forecast.adam() and got lost between the lines (this ...
[Read more...]
1 14 15 16 17 18 2,005

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)