Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. David Piper

David Piper

Community Learner
Share
42Questions
43Answers
49.2KViews on questions

Date/Time Conversion from YYYY-MM-DDTHH:MM:SS

To do this, you can use the apex DateTime class: // replace the 'T' with blank space to make date time string compatible with format method String dtString = '2020-10-01T15:22:20'.replace('T', ' '); // Convert the string to DateTime DateTime dt = DateTime.valueOfGMT(dtString); // Now use formatGMT method with…

Data Science

Answered Jul 14, 2021 · 679 Views Read answer →

Label points in geom_point

To solve ggplot2 label points, you can add the geom_text() function to add labels to the points as follows: ggplot(nba, aes(x= MIN, y= PTS, colour="green", label=Name)) + geom_point(size = 2,alpha = 0.6) + theme_bw()+ geom_text(aes(label=Name),hjust=0, vjust=0) Output: To only label points above a certain value:…

Python

Answered Jul 12, 2021 · 778 Views Read answer →

Finding all the zip codes in a radius with all zip codes in the same field

Since it appears your question isn't as much about geolocation as it is concatenating rows values into a single field value, here's an example adapted from one of my previous answers. Assuming the results of your geolocation query looks like this: OriginZipCode ZipCode ------------ ------- 12345 55555 12345 66666…

Salesforce

Answered Apr 23, 2021 · 453 Views Read answer →

How can we do market basket analysis with R?

apriori() is the function utilized for performing market basket analysis. apriori(data, parameter = NULL, appearance = NULL, control = NULL) where parameters are : The default behavior is to mine rules with minimum support of 0.1, minimum confidence of 0.8, maximum of 10 items (max len), and a maximal time for subset…

Data Science

Answered Sep 1, 2020 · 1.5K Views Read answer →

More members from the Salesforce community

Learners asking and answering questions on the same topics — follow their questions and join in.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.