المشاركات

عرض المشاركات من يونيو, 2022

Mapping a picture on a donut or a Hopf torus

صورة
The donut torus Given a number \(s \geqslant 1\), the following map: \[ (u, v) \mapsto (x, y, z) = \frac{\Bigl(s\cos\frac{u}{s}, s\sin\frac{u}{s}, \sin v\Bigr)}{\sqrt{s^2+1}-\cos v} \] is ... Continue reading: Mapping a picture on a donut or a Hopf torus http://dlvr.it/ST8P08

Food Crisis Analysis and, Forecasting with Neural Network Autoregression

صورة
The war between Russia and Ukraine has affected the global food supply other than many vital things. Primarily cereal crop products have been affected the most because the imports have been provided to the world mainly through Ukraine and Russia. Let’s check the situation we’ve mentioned for G20 ... Continue reading: Food Crisis Analysis and, Forecasting with Neural Network Autoregression http://dlvr.it/ST7CG7

RObservations #34: Using NLP with keras to understand market sentiment with LSTM networks

صورة
Introduction Natural Language Processing (NLP) is a powerful tool in the Machine Learning landscape that can (among other things) allow users to classify sentiment and predict text. Many of recent my blogs have been about data manipulation and data engineering, so I decided change things up to look into showing ... Continue reading: RObservations #34: Using NLP with keras to understand market sentiment with LSTM networks http://dlvr.it/ST5fqc

How to Join Multiple Data Frames in R

The post How to Join Multiple Data Frames in R appeared first on Data Science Tutorials How to Join Multiple Data Frames in R?, you can find it useful to connect many data frames in R. Fortunately, the left join() function from the dplyr package makes this simple to accomplish. ... Continue reading: How to Join Multiple Data Frames in R http://dlvr.it/ST5fmB

How to Find Unmatched Records in R

The post How to Find Unmatched Records in R appeared first on Data Science Tutorials How to Find Unmatched Records in R?, To retrieve all rows in one data frame that do not have matching values in another data frame, use R’s anti_join() function from the dplyr package. ... Continue reading: How to Find Unmatched Records in R http://dlvr.it/ST52Ty

Replace NA with Zero in R

The post Replace NA with Zero in R appeared first on Data Science Tutorials Replace NA with Zero in R, Using the dplyr package in R, you can use the following syntax to replace all NA values with zero in a data frame. Substitute zero for any NA values. Create ... Continue reading: Replace NA with Zero in R http://dlvr.it/ST2mXf

North East Data Scientists Meetup

صورة
If you’re based in the North East of England and you’re looking for a place to discuss all things R with like-minded people, then you might want to check out the North East Data Scient... Continue reading: North East Data Scientists Meetup http://dlvr.it/ST1dpn

10 ways you can provide value with RStudio Connect

صورة
In speaking with the community, I hear about so many different ways that teams are using RStudio Connect and providing value across their companies. On Twitter I posted 10 ways RStudio Connect can give your data science team superpowers and thought it&... Continue reading: 10 ways you can provide value with RStudio Connect http://dlvr.it/ST1df2

May 2022: “Top 40” New CRAN Packages

صورة
One hundred seventy-nine new packages made it to CRAN in May. Here are my “Top 40” picks in twelve categories: Computational Methods, Data, Ecology, Epidemiology, Finance, Machine Learning, Networks, Science, Statistics, Time Series, Utilities, and Visualization. Computational Methods graDiEnt v1.0.1: Implements the derivative-free, optim-style Stochastic Quasi-Gradient Differential Evolution optimization algorithm published ... Continue reading: May 2022: “Top 40” New CRAN Packages http://dlvr.it/ST1dR9

Agile is the worst approach to research projects — except for all the others that have been tried*

صورة
Agile is the worst approach to research projects — except for all the others that have been tried*W czerwcu, w ramach programu NERW PW, udało mi się uczestniczyć w dwóch szkoleniach kończących się certyfikatami AgilePM i AgilePgM. Te intensywne dwa tyg... Continue reading: Agile is the worst approach to research projects — except for all the others that have been tried* http://dlvr.it/ST1KPP

Find the Maximum Value by Group in R

The post Find the Maximum Value by Group in R appeared first on Data Science Tutorials Find the Maximum Value by Group in R, you may frequently want to determine the highest value for each group in a data frame. Fortunately, utilizing the dplyr package’s methods makes this task ... Continue reading: Find the Maximum Value by Group in R http://dlvr.it/SSzL5x

distributions3 @ useR! 2022

Conference presentation about the 'distributions3' package for S3 probability distributions (and 'topmodels' for graphical model assessment) at useR! 2022: Slides, video, replication code, and vignette. Abstract (Authors: Achim... Continue reading: distributions3 @ useR! 2022 http://dlvr.it/SSyDVC

What To Do (And Not to Do) with Modeling Proportions/Fractional Outcomes

صورة
Introduction Limited dependent variables, or continuous variables with lower and upper bounds, are quite common in the social sciences but do not fit easily with existing statistical models. In this Rmarkdown document, I show why these issues are ... Continue reading: What To Do (And Not to Do) with Modeling Proportions/Fractional Outcomes http://dlvr.it/SSyDTt

RObservations #33: Merging Excel Spreadsheets with Base R and openxlsx

صورة
Introduction I was recently asked as part of a larger task to combine multiple sheets from an excel workbook into a into a single sheet. When approached about the problem I immediately was asked if I was going to use VBA to do it. While I know my way around ... Continue reading: RObservations #33: Merging Excel Spreadsheets with Base R and openxlsx http://dlvr.it/SStzST

How to Recode Values in R

The post How to Recode Values in R appeared first on Data Science Tutorials How to Recode Values in R, On sometimes, you might want to recode specific values in an R data frame. Fortunately, the recode() method from the dplyr package makes this simple to accomplish. The use of ... Continue reading: How to Recode Values in R http://dlvr.it/SStz9K

rOpenSci News Digest, June 2022

صورة
Dear rOpenSci friends, it’s time for our monthly news roundup! You can read this post on our blog. Now let’s dive into the activity at and around rOpenSci! rOpenSci HQ Introducing rOpenSci new Community Manager, Yanina Bellini Saibene ... Continue reading: rOpenSci News Digest, June 2022 http://dlvr.it/SStyz9

useR! 2022: My ‘Futureverse: Profile Parallel Code’ Slides

صورة
Figure 1: A time chart of logged events for two futures resolved by two parallel workers. This is a screenshot of Slide #18 in my talk. Below are the slides for my Futureverse: Profile Parallel Code talk that I presented at the useR! 2022 con... Continue reading: useR! 2022: My ‘Futureverse: Profile Parallel Code’ Slides http://dlvr.it/SStypj

Custom colour palettes for {ggplot2}

صورة
Choosing which colours to use in a plot is an important design decision. A good choice of colour palette can highlight important aspects of your data, but a poor choice can make it impossible to i... Continue reading: Custom colour palettes for {ggplot2} http://dlvr.it/SStymN

Changes (for the better) in {gt} 0.6.0

صورة
A new version of the R package {gt} has been released! We are now at version 0.6.0 and there are now even more features that’ll make your display/summary tables look and work much, much better. In this post, let’s run through some of the bigger changes and see ... Continue reading: Changes (for the better) in {gt} 0.6.0 http://dlvr.it/SRzqyL

Augmented Dickey-Fuller Test in R

صورة
The post Augmented Dickey-Fuller Test in R appeared first on Data Science Tutorials Augmented Dickey-Fuller Test in R, If a time series has no trend, constant variance over time, and a consistent autocorrelation structure across time, it is considered to be “stationary.” An augmented Dickey-Fuller test, which uses the following ... Continue reading: Augmented Dickey-Fuller Test in R http://dlvr.it/SRzBdF

Survivor Advantages: Dataset showcase for {survivoR}

صورة
Advantages were introduced to Survivor to give players an edge and to shake up the strategy. A successful play can […] The post Survivor Advantages: Dataset showcase for {survivoR} appeared first on Dan Oehm | Gradient Descending. Continue reading: Survivor Advantages: Dataset showcase for {survivoR} http://dlvr.it/SRzBZw

Object-Oriented Programming (OOP) in R with R6 – The Complete Guide

صورة
If you want to talk about tried and tested programming paradigms, look no further than Object-Oriented Programming (OOP). The term was coined by Alan Kay way back in 1966, which means developers worldwide have been using it for more than five decades! Today we’ll dive deep into the basics of ... Continue reading: Object-Oriented Programming (OOP) in R with R6 – The Complete Guide http://dlvr.it/SRxFgw

Survival Analysis in R (in under 10-minutes)

صورة
Making a survival analysis can be a challenge even for experienced R users, but the good news is I’ll help you make beautiful, publication-quality survival plots in under 10-minutes. Here’s what WE are going to do: Make your first survival model an... Continue reading: Survival Analysis in R (in under 10-minutes) http://dlvr.it/SRwf4R

Announcing vetiver for MLOps in R and Python

We are thrilled to announce the release of vetiver, a framework for MLOps tasks in R and Python. The goal of vetiver is to provide fluent tooling to version, share, deploy, and monitor a trained model. Data scientists have open source tools that they l... Continue reading: Announcing vetiver for MLOps in R and Python http://dlvr.it/SRwL1W

droplevels in R with examples

The post droplevels in R with examples appeared first on Data Science Tutorials droplevels in R with examples, To remove unneeded factor levels, use R’s droplevels() function. This function comes in handy when we need to get rid of factor levels that are no longer in use as a ... Continue reading: droplevels in R with examples http://dlvr.it/SRtwht

rOpenSci Dev Guide 0.8.0: Updates

rOpenSci Software Peer Review’s guidance is gathered in an online book that keeps improving! This blog post summarises what’s new in our Dev Guide 0.8.0, with all changes listed in the changelog. Farewell Stefanie Butland After many years... Continue reading: rOpenSci Dev Guide 0.8.0: Updates http://dlvr.it/SRtNhw

parallelly 1.32.0: makeClusterPSOCK() Didn’t Work with Chinese and Korean Locales

Continue reading: parallelly 1.32.0: makeClusterPSOCK() Didn’t Work with Chinese and Korean Locales http://dlvr.it/SRsxJN

A-State R User Group Hope to Make a Comeback with Physical Events This Summer

صورة
R consortium talked to Emily Bellis and Asela Wijeratne, organizers of the A-State R User Group, about their campus R user group. They discussed the struggle of managing a new... The post A-State R User Group Hope to Make a Comeback with Physical Events This Summer appeared first on R ... Continue reading: A-State R User Group Hope to Make a Comeback with Physical Events This Summer http://dlvr.it/SRs1ws

The Critical Shift to Data in the Finance Industry

Photo by Sean Pollock on Unsplash This is a guest post from Jo Ann Stadtmueller, SVP, Commercial & Product Strategy at Data Society. Data Society provides customized, industry-tailored data science training programs and AI/ML solutions for enterprise ... Continue reading: The Critical Shift to Data in the Finance Industry http://dlvr.it/SRs1tZ

Cumulative Sum calculation in R

The post Cumulative Sum calculation in R appeared first on Data Science Tutorials Cumulative Sum calculation in R, using the dplyr package in R, you can calculate the cumulative sum of a column using the following methods. Best online course for R programming – Data Science Tutorials Approach 1: Calculate Cumulative Sum ... Continue reading: Cumulative Sum calculation in R http://dlvr.it/SRpbmT

Expanding a polynomial with ‘caracas’

صورة
I wanted to plot an algebraic isosurface with POV-Ray but the expression of the polynomial defining the isosurface was very long (the polynomial had degree 12). Moreover there was a square root in the coe... Continue reading: Expanding a polynomial with ‘caracas’ http://dlvr.it/SRnGSF

How to Use TailwindCSS in Shiny

صورة
At Appsilon we believe that a good-looking, well-designed interface is the key to making your Shiny Dashboard a success. TailwindCSS is a utility-first CSS framework created by one of the authors of Refactoring UI. As I really enjoyed the book, I decided to give it a shot and try using ... Continue reading: How to Use TailwindCSS in Shiny http://dlvr.it/SRnGN3

Creating flowcharts with {ggplot2}

صورة
I recently gave a talk to R-Ladies Nairobi, where I discussed the #30DayChartChallenge. In the second half of my talk, I demonstrated how I created the Goldilocks Decision Tree flowchart using {igraph} and {ggplot2}. This blog post tries to capture t... Continue reading: Creating flowcharts with {ggplot2} http://dlvr.it/SRmmng

How to Count Distinct Values in R

The post How to Count Distinct Values in R appeared first on Data Science Tutorials How to Count Distinct Values in R?, using the n_distinct() function from dplyr, you can count the number of distinct values in an R data frame using one of the following methods. With the ... Continue reading: How to Count Distinct Values in R http://dlvr.it/SRmDb1

Regularization by Noise for Stochastic Differential and Stochastic Partial Differential Equations

صورة
Regularization by Noise for Stochastic Differential and Stochastic Partial Differential Equations The regularizing effects of noisy perturbations of differential equations is a central subject of stochastic analysis. Recent breakthroughs initiated... Continue reading: Regularization by Noise for Stochastic Differential and Stochastic Partial Differential Equations http://dlvr.it/SRjyDN

Count Observations by Group in R

The post Count Observations by Group in R appeared first on Data Science Tutorials Count Observations by Group in R, want to count the number of observations by the group. Fortunately, the count() function from the dplyr library makes this simple. Using the data frame below, this tutorial shows numerous ... Continue reading: Count Observations by Group in R http://dlvr.it/SRhxDQ

How to add columns to a data frame in R

The post How to add columns to a data frame in R appeared first on Data Science Tutorials How to add columns to a data frame in R?, To add one or more columns to a data frame in R, use the mutate() function from the dplyr package. With the ... Continue reading: How to add columns to a data frame in R http://dlvr.it/SRflNv

The cricketdata package

صورة
Four functions The cricketdata package has been around for a few years on github, and it has been on CRAN since February 2022. There are only four functions: fetch_cricinfo(): Fetch team data on international cricket matches provided by ESPNCricinfo. fetch_player_data(): Fetch individual player data on international cricket matches ... Continue reading: The cricketdata package http://dlvr.it/SRf6Dl

Shuffling Columns With data.table

Yesterday, in a post syndicated to R-bloggers, kjytay asked about how to programmatically shuffle a data.table column in place, as the straightforward way didn’t work well. Here are two other ways to solve the same proble... Continue reading: Shuffling Columns With data.table http://dlvr.it/SRdq8x

Update of ‘gyro’

صورة
I updated the gyro package (soon on CRAN). Here are the new features. Hyperbolic polyhedra in the Poincaré model The previous version of the package only dealt with hyperbolic ... Continue reading: Update of ‘gyro’ http://dlvr.it/SRcdLC

How to Remove Columns from a data frame in R

The post How to Remove Columns from a data frame in R appeared first on Data Science Tutorials Remove Columns from a data frame, you may occasionally need to remove one or more columns from a data frame. Fortunately, the select() method from the dplyr package makes this simple. Remove ... Continue reading: How to Remove Columns from a data frame in R http://dlvr.it/SRcHZ8

A quirk when using data.table?

I recently came across this quirk in using data.table that I don’t really have a clean solution for. I outline the issue below as well as my current way around it. Appreciate any better solutions! The problem surfaces quite generally, … Continue reading → Continue reading: A quirk when using data.table? http://dlvr.it/SRbyC0

Remove Rows from the data frame in R

The post Remove Rows from the data frame in R appeared first on Data Science Tutorials Remove Rows from the data frame in R, To remove rows from a data frame in R using dplyr, use the following basic syntax. Detecting and Dealing with Outliers: First Step – Data Science Tutorials 1. ... Continue reading: Remove Rows from the data frame in R http://dlvr.it/SRZvz8

Bakersfield Data Analytics and R Users Group: Collaboration and the Need to Reach Out to Students

صورة
R Consortium talked to Zhenning (Jimmy) Xu of the Bakersfield Data Analytics and R Users Group about the challenges of engaging members of a small and budding R community. Zhenning... The post Bakersfield Data Analytics and R Users Group: Collaboration and the Need to Reach Out to Students appeared first ... Continue reading: Bakersfield Data Analytics and R Users Group: Collaboration and the Need to Reach Out to Students http://dlvr.it/SRZZ94

R Packages for Organizations

Summary An R package focused on an organization’s particular needs (with a small or large team) can open up many possibilities, including easier data access, shared functions for data transformation analysis, reporting and standardization of tasks.... Continue reading: R Packages for Organizations http://dlvr.it/SRYbv2

R will always be arcane to those who do not make a serious effort to learn it…

صورة
R will always be arcane to those who do not make a serious effort to learn it. It is not meant to be intuitive and easy for casual users to just plunge into. It is far too complex and powerful for that. But the rewards are great for serious data ... Continue reading: R will always be arcane to those who do not make a serious effort to learn it… http://dlvr.it/SRX3zm

Arrange the rows in a specific sequence in R

The post Arrange the rows in a specific sequence in R appeared first on Data Science Tutorials Arrange the rows in a specific sequence in R, Frequently, you’ll want to arrange the rows in a data frame in R in a specified order. Fortunately, the arrange() function from the ... Continue reading: Arrange the rows in a specific sequence in R http://dlvr.it/SRWlhS

Announcing pins for Python

We’re excited to announce the release of pins for Python! pins removes the hassle of managing data across projects, colleagues, and teams by providing a central place for people to store, version and retrieve data. If you’ve ever chased a CSV through a series of email exchanges, or ... Continue reading: Announcing pins for Python http://dlvr.it/SRWlcy

How to Create a Dataframe in R with 30 Code Examples (2022)

DataFrames are essential data structures in the R programming language. In this tutorial, we’ll discuss how to create a dataframe in R. A DataFrame in R is a tabular (i.e., 2-dimensional, rectangular) data structure used to store values of any data type. It’s a data structure of ... Continue reading: How to Create a Dataframe in R with 30 Code Examples (2022) http://dlvr.it/SRWN7P

Collection, Management, and Analysis of Twitter Data

As a highly relevant platform for political and social online interactions, researchers increasingly analyze Twitter data. As of 01/2021, Twitter renewed its API, which now includes access to the full history of tweets for academic usage. I... Continue reading: Collection, Management, and Analysis of Twitter Data http://dlvr.it/SRVNhL

Announcing RStudio for Microsoft Azure ML

صورة
Machine Learning Development in the Cloud Cloud platforms enable the machine learning lifecycle with variable scaling, lower start-up costs, and centralized data lakes. Data scientists who use these resources in conjunction with their favorite tools ca... Continue reading: Announcing RStudio for Microsoft Azure ML http://dlvr.it/SRSX1t

Arrange Data by Month in R with example

The post Arrange Data by Month in R with example appeared first on Data Science Tutorials Arrange Data by Month in R, To easily arrange data by month, use the floor_date() function from the lubridate package in R. The following is the fundamental syntax for this function. library(tidyverse) ... Continue reading: Arrange Data by Month in R with example http://dlvr.it/SRS6zM

2022-02 Constructive Geometry for Complex Grobs

This document describes developments in the grobCoords() function in the R package ‘grid’, plus improvements to the ‘gridGeometry’ package that makes use of the grobCoords() ... Continue reading: 2022-02 Constructive Geometry for Complex Grobs http://dlvr.it/SRR3dF

2022-01 Vectorised Pattern Fills in R Graphics

This document describes an extension of the support for pattern fills in R graphics (linear gradients, radial gradients, and tiling patterns) to allow multiple pattern ... Continue reading: 2022-01 Vectorised Pattern Fills in R Graphics http://dlvr.it/SRR3cK