![Plotly Analytics - Giving Life to Data](/img/default-banner.jpg)
- 99
- 3 070
Plotly Analytics - Giving Life to Data
India
Registrace 4. 08. 2009
Select the rows in data using slice( ) function
arrange function arranges the rows in the data set in either ascending or descending order.
slice function, selects the rows in the data set using row index position. slice function can be used in variety of different ways such as:
- select row with maximum value of a variable
- select row with minimum value of a variable
- select random rows from a data
- select first and last row of the data
---------------------------------------------------------------------------------------------------------------------------------------------------
Want to learn more on R Programming and Data Science?
Check out my other resources on R Programming and Data Science:
Get FREE access to more than 2 hours of high quality pre-recorded videos on R programming fundamentals:
plotlyanalytics.com/
Get 18+ hours of Live cohort based training on R-programming for Data Science:
plotlyanalytics.com/sales/
Read the Blogs on Statistics and Data Science topics:
plotlyanalytics.com/blog-edit-this/
Enroll to my weekly newsletter - "Glimpse" and get R Programming Tips and Tricks straight to your inbox:
plotlyanalytics.com/
slice function, selects the rows in the data set using row index position. slice function can be used in variety of different ways such as:
- select row with maximum value of a variable
- select row with minimum value of a variable
- select random rows from a data
- select first and last row of the data
---------------------------------------------------------------------------------------------------------------------------------------------------
Want to learn more on R Programming and Data Science?
Check out my other resources on R Programming and Data Science:
Get FREE access to more than 2 hours of high quality pre-recorded videos on R programming fundamentals:
plotlyanalytics.com/
Get 18+ hours of Live cohort based training on R-programming for Data Science:
plotlyanalytics.com/sales/
Read the Blogs on Statistics and Data Science topics:
plotlyanalytics.com/blog-edit-this/
Enroll to my weekly newsletter - "Glimpse" and get R Programming Tips and Tricks straight to your inbox:
plotlyanalytics.com/
zhlédnutí: 20
Video
Using logical expressions to filter the rows using filter( ) function.
zhlédnutí 18Před 21 hodinou
This video is the extension of my previous video on the filter function. In the last video we used conditional expressions to filter out the rows from a data set. In this video, we will combine several conditionals statements to perform complex filtering tasks. We can combine several conditional statements using logical expressions. We are going to see 3 main logical expressions in this video A...
How to filter the rows using conditional expressions?
zhlédnutí 18Před dnem
Filter function in dplyr package is used to filter out the rows from a data set based on some condition. The conditional expressions used to filter out the rows are: Less than Greater than Equal to Less than or equal to Greater than or equal to The above conditions are evaluated to boolean values -TRUE or FALSE and all the rows whose conditions are TRUE are printed out as an output. We can also...
How to arrange rows using arrange( ) function?
zhlédnutí 17Před dnem
In this video we will talk about arrange function from dplyr package. The arrange function as name suggests arranges the rows either in ascending or descending order for the selected columns. Please note, by default the data is arranged in ascending order. Want to learn more on R Programming and Data Science? Check out my other resources on R Programming and Data Science: Get FREE access to mor...
Top 7 selection functions from dplyr package to select the columns
zhlédnutí 27Před 14 dny
In the last video we examined how to use select function from dplyr package. In this video, we will extend our discussion on select function by looking at various helper functions. Helper functions are used in conjunction with the main function, to prvide more options and flexibility in the usage. There helpers select the column names by matching patterns in their names. If you are interested i...
dplyr package! selecting the columns using select( ) function
zhlédnutí 20Před 14 dny
Datasets often come with more variables than we need, and we're not going to need all of them in any one analysis. So we will need to select a handful of the variables from a data set that are relevant for our analysis. This can be done using select function from dplyr package. Selecting variables from a data set using select function can be carried out in two different ways: - By using names o...
What is dplyr package?
zhlédnutí 40Před 14 dny
Dplyr package is one of the core tidyverse package that is used to carry out data manipulations tasks. You can find more information on the dplyr package on its web-site - dplyr.tidyverse.org/ Dplyr package is built to work directly with data frames. The development of dplyr package was largely inspired by plyr package which has been in use for some time but suffered from being slow in some cas...
Handling Time Series Data in R
zhlédnutí 55Před 21 dnem
A time series is a list of observations ordered successively over time. In a time series, observations are often recorded at evenly-spaced intervals, such as daily, weekly, monthly, and so on. Time series datasets are ubiquitous in the real world - a time series analysis studies how a variable changes over time. In a time series - each observation is comprised of two parts: a point in time and ...
How to create Heatmap in R?
zhlédnutí 149Před měsícem
Heatmaps are used to show relationships between two variables, one plotted on each axis. By observing how cell colors change across each axis, you can observe if there are any patterns in value for one or both variables. In data analysis, Heatmap is powerful data visualization tool to understand the correlations between variables. Darker colors usually indicate higher correlation values, while ...
How to create Histogram in R?
zhlédnutí 54Před měsícem
Like Box-plot, histogram is also used to visualize the distribution of the continuous numeric variable. It is powerful tool to find the patterns in the data. In this video we will learn how the histogram is created from ground up, see the difference between Histogram and Bar chart, and plot the histogram using hist( ) function. About Author My name is Siddharth Sahasrabudhe. I am a founder of P...
How to create Box Plot in R?
zhlédnutí 25Před měsícem
Box plots also known as Box and Whisker plots, are used to show the distribution of continuous variable by plotting five number summary statistics- The five number summary statistics consists: Minimum value, Maximum value, first quartile Median Third quartile Box plots are also used to compare the distribution of the data across various categorical variables in the data set. In this video we wi...
How to create Line Chart in R?
zhlédnutí 60Před měsícem
A line chart, connects a series of data points using a line. Line chart also displays sequential values to help you identify trends. In business, Line chart is widely used to display the time series data. In line chart, the X-axis is used to map the time (and the time can be in days, months, years and even in weeks) and Y-axis is used to map the time measurements.
How to create Bar Plot in R?
zhlédnutí 28Před měsícem
Bar charts are used to show the comparison of numeric values of a categorical variable. The height of bar is proportional to the value of the variable. Bar charts are also used to show the frequency of observed values of the variable. In this video we will learn: - How to create bar plot? - what is stacked bar plot and how to create it? - What is grouped bar chart and how to create it? About Au...
How to generate scatter plot in R?
zhlédnutí 24Před měsícem
The term base graphics refers to the graphics system originally built into R language. This is default graphics system and easiest to learn. So we will use this system to demonstrate some of the graphics capabilities in R. All the plots in base graphics are built on on one single generic plot() function. it generates the output based on the nature of object to which it is applied. Scatter plot ...
How to write tapply( ) function in R?
zhlédnutí 22Před měsícem
The tapply function works in much the same way as the other apply family of functions, but it allows you to perform an operation across specified groups in your data. For those of you who are familiar with dplyr package, this does the same thing as the group_by() and summarise() functions. About Author My name is Siddharth Sahasrabudhe. I am a founder of Plotly Analytics. I help business profes...
How to write lapply( ) and sapply( ) function in R?
zhlédnutí 29Před měsícem
How to write lapply( ) and sapply( ) function in R?
How to import .CSV file in R using read.csv( ) function?
zhlédnutí 26Před měsícem
How to import .CSV file in R using read.csv( ) function?
How to import .CSV file in R using RStudio interface?
zhlédnutí 7Před měsícem
How to import .CSV file in R using RStudio interface?
How to access elements from a Data Frame in R?
zhlédnutí 32Před měsícem
How to access elements from a Data Frame in R?
A gentle introduction to Data Frames in R
zhlédnutí 59Před měsícem
A gentle introduction to Data Frames in R
How to access elements from a list in R?
zhlédnutí 25Před 2 měsíci
How to access elements from a list in R?
Thanks a million sir for the value adding contents
Thanks a million for your value adding contents
thanks for the kind words
Thanks for sharing, great video!
Thanks for your kind words
Can we do all this stuff in one code?
I am sorry, I did not get your question. In one code, you meant to say, in one data pipeline?
Thank you for utterly informative series of R videos. Cab you please provide me with a code how to add a percentage in stucked bar? Instead of only absolute numbers. Like N(n%)
thanks Aram for your kind words. You can use below layer in ggplot function to add percentage in stacked bar chart. However, please ensure you have converted your absolute values into percentages and then call this percent values in the ggplot layer. scale_y_continuous(labels = scales::percent) + geom_text(aes(label = paste0(value*100,"%")), position = position_stack(vjust = 0.5), size = 2) Please have a look at this post from Stack overflow for more information: stackoverflow.com/questions/44724580/add-percentage-labels-to-a-stacked-barplot
😋 "promo sm"
Nice video 😊
Thanks a million sir for the value adding contents...
You are Most welcome!
Promo`SM
Best