Using R:
How do we calculate n for each use case?
n = No. of string in the textHow do we extract the string from a text given in the following use cases:
Text 1
Use case 1 (n=1)
Input: [AB]
Expected Output: (1x1 DF)
AB
Use case 2 (n=3)
Input : [AB],[BC],[A]
Expected Output: (3x1 DF)
AB
BC
A
Text 2
Use case 1 (n=1)
Input: "AB"
Expected Output: (1X1 DF)
AB
Use case 2 (n=2)
Input: "AB","B"
Expected Output: (2X1 DF)
AB
B