How to sort substring from a dataframe

0 votes
How to sort substring from a dataframe? I want to sort as per order-is from a string that conatins locn-date-digits format. My data is sorted according to store wise details evryday, i want to see all orders for a day using filter. suppose date is 04-06-19. My id are In-040419-101,In-040419-102. etc.
Aug 4 in Data Analytics by anonymous
41 views

1 answer to this question.

0 votes
First, extract the substring from the data frame field and then use arrange() to sort the values in the data frame.
answered Nov 4 by Cherukuri
• 32,260 points

Related Questions In Data Analytics

0 votes
1 answer

How to extract specific columns from a DataFrame ?

Yes there are so many ways: df[,c(V2,V4)] and another ...READ MORE

answered Apr 11, 2018 in Data Analytics by DeepCoder786
• 1,720 points
1,441 views
0 votes
1 answer
0 votes
1 answer

How to replace NA values in a dataframe with Zero's ?

It is simple and easy: df1<-as.data.frame(matrix(sample(c(NA, 1:10), 100, ...READ MORE

answered Apr 10, 2018 in Data Analytics by CodingByHeart77
• 3,690 points
167 views
0 votes
1 answer

How to convert dataframe columns from factors to characters?

To replace all the variables to character ...READ MORE

answered Apr 13, 2018 in Data Analytics by BHARANI
• 410 points
2,114 views
0 votes
1 answer

How to group all columns exculding a single column?

You can either use group_by or group_by_at Using ...READ MORE

answered Apr 12, 2018 in Data Analytics by darklord
• 6,190 points
107 views
0 votes
1 answer

How to convert a text mining termDocumentMatrix into excel or csv in R?

By assuming that all the values are ...READ MORE

answered Apr 5, 2018 in Data Analytics by DeepCoder786
• 1,720 points
184 views
0 votes
1 answer

How to create a list of Data frames?

Basically all we have to do is ...READ MORE

answered Apr 9, 2018 in Data Analytics by DeepCoder786
• 1,720 points
115 views
0 votes
1 answer

How to spilt a column of a data frame into multiple columns

it is easily achievable by using "stringr" ...READ MORE

answered Apr 9, 2018 in Data Analytics by DeepCoder786
• 1,720 points
125 views
0 votes
1 answer

How to select rows in a range from dataframe?

Hi, There are different functions to select or ...READ MORE

answered Aug 30 in Data Analytics by anonymous
• 32,260 points
26 views
0 votes
2 answers

How to sort a data frame by columns in R?

You can use dplyr function arrange() like ...READ MORE

answered Aug 21 in Data Analytics by anonymous
• 32,260 points
168 views