r TMP-parsing.r

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了r TMP-parsing.r相关的知识,希望对你有一定的参考价值。

## read the file in using read_delim from readr package
chegg2 = read_delim("data/Bentley University-export10-17-2016_16628777.txt", delim="\t")

## hopefully there are patterns where the bad characters exist
## for example
chegg2$first_name = str_replace_all(chegg2$first_name, "'", "")

## what it comes down to are the options on the various functions
## the readr package is pretty handy, and gets the data in without issues
## from there, you can clean the data, but like I said, hopefully there are some standard columns where the bad data exist
## if there aren't , I can always try to write a loop to find them if you need me to

以上是关于r TMP-parsing.r的主要内容,如果未能解决你的问题,请参考以下文章

——R的数据组织

+-r, +-s 的所有排列

shinydashboard ui.R 和 server.R 未读取 Global.R

R语言计算回归模型R方(R-Squared)实战

r语言中r-studio怎么调用

R电子书资料《学习R》+《R语言实战第2版》+《R数据科学》学习推荐