Рассчитать среднемесячный итог по группам из таблицы data.table в R

Swift 4 версия @litso. Чтобы найти все значения в тексте

    func find(inText text: String, pattern: String) -> [String]? {
        do {
            let regex = try NSRegularExpression(pattern: pattern, options: .caseInsensitive)
            let result = regex.matches(in: text, options: .init(rawValue: 0), range: NSRange(location: 0, length: text.count))

            let matches = result.map { result in
                return (text as NSString).substring(with: result.range)
            }

            return matches
        } catch {
            print(error)
        }
        return nil
    }
10
задан amonk 18 April 2018 в 03:56
поделиться