如何以表格格式构建数据?
how to structure the data in tables format?
我在 excel 中打开了以下 .dat 格式的数据,结果是这样的
1::Toy Story (1995)::Animation|Children's|Comedy
2::Jumanji (1995)::Adventure|Children's|Fantasy
3::Grumpier Old Men (1995)::Comedy|Romance
4::Waiting to Exhale (1995)::Comedy|Drama
5::Father of the Bride Part II (1995)::Comedy
6::Heat (1995)::Action|Crime|Thriller
7::Sabrina (1995)::Comedy|Romance
我想以 table 格式构建它,如下所示..
Movie ID Movie Name Year of Release MovieType1 MovieType 2 MovieType 3
1 Toy Story 1995 Animation Children's Comedy
2 Jumanji 1995 Adventure Children's Fantasy
3 Grumpier Old Men 1995 Comedy Romance
等等..
我应该使用 R 吗..还是可以 excel 本身?
要将数据导入 Excel 电子表格,请尝试这些说明...
- 开始Excel.
- 选择文件 --> 打开。
- 选择浏览...
- 将文件类型更改为 "All Files (.)"。
- 导航到 select 您的 .dat 文件。
- 选择“打开”按钮。
- 如果未默认选择分隔选项,请选择分隔选项。
- 将 "Start import at row" 设置为您所在的行号
数据开始。
- 如果合适,选择"My data has headers"。
- 选择"Next"。
- Unselect 分隔符集合栏中的任意值 "Other"。
- Select "Other" 如果尚未 selected.
- 在 "Other"
旁边的文本框中输入一个冒号
- Select "Treat consecutive delimiters as one" 如果还没有
selected.
- 选择"Next"。
- 根据需要设置列数据格式。
- 选择"Finish"。
如果您有任何问题或意见,请随时post发表相应的评论。
我在 excel 中打开了以下 .dat 格式的数据,结果是这样的
1::Toy Story (1995)::Animation|Children's|Comedy
2::Jumanji (1995)::Adventure|Children's|Fantasy
3::Grumpier Old Men (1995)::Comedy|Romance
4::Waiting to Exhale (1995)::Comedy|Drama
5::Father of the Bride Part II (1995)::Comedy
6::Heat (1995)::Action|Crime|Thriller
7::Sabrina (1995)::Comedy|Romance
我想以 table 格式构建它,如下所示..
Movie ID Movie Name Year of Release MovieType1 MovieType 2 MovieType 3
1 Toy Story 1995 Animation Children's Comedy
2 Jumanji 1995 Adventure Children's Fantasy
3 Grumpier Old Men 1995 Comedy Romance
等等..
我应该使用 R 吗..还是可以 excel 本身?
要将数据导入 Excel 电子表格,请尝试这些说明...
- 开始Excel.
- 选择文件 --> 打开。
- 选择浏览...
- 将文件类型更改为 "All Files (.)"。
- 导航到 select 您的 .dat 文件。
- 选择“打开”按钮。
- 如果未默认选择分隔选项,请选择分隔选项。
- 将 "Start import at row" 设置为您所在的行号 数据开始。
- 如果合适,选择"My data has headers"。
- 选择"Next"。
- Unselect 分隔符集合栏中的任意值 "Other"。
- Select "Other" 如果尚未 selected.
- 在 "Other" 旁边的文本框中输入一个冒号
- Select "Treat consecutive delimiters as one" 如果还没有 selected.
- 选择"Next"。
- 根据需要设置列数据格式。
- 选择"Finish"。
如果您有任何问题或意见,请随时post发表相应的评论。