How to Extract Day from Datetime in R with Examples
In this post you will learn how to extract day from datetime in #RStats.
How to Extract Day from Datetime in R with Examples Read More »
In this category you will find posts that are related to programming and should be interesting for psychologists, cognitive scientists, and neuroscientists. Well, almost every researcher would probably find some of the information useful at some time!
Every research psychologist, cognitive scientist, and neuroscientist, should know how to program.. Knowing how to program and write scripts will make many of a researchers everyday tasks much easier. For instance, instead of going through line after line of raw data you can write a Python script that runs through each cell in each column. Furthermore, you get the possibility to use more advanced, and cutting edge, statistical techniques by using R statistical programming environment.
Another example might be to create experiments using PsychoPy (either by coding using Python or using the drag-and-drop interface) and the cheap and open-source Arduino microcontroller. Also, coding is fun and relaxing!
In this post you will learn how to extract day from datetime in #RStats.
How to Extract Day from Datetime in R with Examples Read More »
In this post, you will learn how to extract time from date in R. First, you will learn how to do it when stored in a vector and, then, from column in dataframe.
How to Extract Time from Datetime in R – with Examples Read More »
In this post you will learn three ways to carry out a two sample t-test in Python using scipy, pingouin, and statsmodels. Furthermore, you will learn how to interpret the results as well as report your findings.
How to Perform a Two-Sample T-test with Python: 3 Different Methods Read More »
Learn all you need to know about adding new columns to Pandas dataframe: assigning, using the insert, and assign() method.
Adding New Columns to a Dataframe in Pandas (with Examples) Read More »
In this tutorial, you will learn how to add empty columns in Pandas dataframe. First, the post covers simple assigning. Second, you will learn how to use the assign() method, and, lastly, you will learn how to use the insert() method..
How to Add Empty Columns to Dataframe with Pandas Read More »
Here you will learn how to covnert JSON to Excel with Python and Pandas.
How to Convert JSON to Excel in Python with Pandas Read More »
In this tutorial, we will learn how to create dummy variables in R. Now, creating dummy/indicator variables can be carried out in many ways. For example, we can write code using the ifelse() function, we can install the R-package fastDummies, and we can work with other packages and functions (e.g. model.matrix). In this post, however,
How to Create Dummy Variables in R (with Examples) Read More »
Python is one of the world’s most popular programming languages. Specifically, Python for finance is arguably the world’s most popular language-application pair. This is because of the robust ecosystem of packages and libraries that makes it easy for developers to build robust financial applications. In this tutorial, you will learn how to import historical stock
How to Import Historical Stock Prices Into A Python Script Using the IEX Cloud API Read More »
In this Python data visualization tutorial, we will learn how to create line plots with Seaborn. First, we’ll start with the simplest example (with one line), and then we’ll look at how to change the look of the graphs and how to plot multiple lines, among other things.
Seaborn Line Plots: A Detailed Guide with Examples (Multiple Lines) Read More »
In this post, we will calculate a correlation matrix in Python with NumPy and Pandas. Now, there will be several Python correlation matrix examples in this tutorial. First, we will read data from a CSV file so we can simply have a look at the numpy.corrcoef and Pandas DataFrame.corr methods. Now, building a correlation table
Create a Correlation Matrix in Python with NumPy and Pandas Read More »