Problem I want to order columns of a dataframe using a substring of the column name only. Suppose my columns […]
Tag: r
Cumulative transition matrix Markov Chain simulation
Problem I have a cumulative transition matrix with probabilities for all the possible states from 1 to 5. Now the […]
Fizz, Buzz, or FizzBuzz?
Problem I was messing around online at work the other day when our phone systems went down. I came across […]
Trial Multiplication for Factorization
Problem I am trying a trial multiplication for factorization. This is a general example, but each sequence can be specified […]
UK postcode validation and format correction tool
Problem I’ve been working on a regex-based UK postcode validation and format correction tool – with the aim of creating […]
R Regex : Need only numeric figures [closed]
Problem Closed. This question is off-topic. It is not currently accepting answers. Closed 3 years ago. Lacks concrete context: Code […]
Remove all characters except
Problem My code takes a string and replaces all characters which are not: English letters Numbers , / – I […]
Extracting initials with R
Problem Playing around in R with a Edx CS50 homework. The job is meant to be done in C, I […]
Number of occurence of two letters separted by a finit gap
Problem Lets we have a string Seq of size N and contain z alphabet { A,B,C….}. I have to perform […]
Round a number and replace trailing zeros by spaces
Problem Goal From a number x, I would like a string of the rounded value at n decimals and replace […]
- 1
- 2