R 中 xlsReadWrite 的 .xls 文件存储位置

发布于 2024-12-19 10:09:26 字数 175 浏览 4 评论 0原文

我对 R 比较陌生,在如何访问我的数据方面遇到了一些问题。我在 MYDocuments 中创建了 test.xls 文件。如何从 R 访问它

 library(xlsReadWrite)
 DF1 <- read.xls("test.xls") # read 1st sheet

I am relatively new to R and am having some trouble with how to access my data. I have my test.xls file created in my MYDocuments. How to I access it from R

 library(xlsReadWrite)
 DF1 <- read.xls("test.xls") # read 1st sheet

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

撩心不撩汉 2024-12-26 10:09:26

设置工作目录:

setwd("C:/Documents and Settings/yourname/My Documents")

Set the working directory with:

setwd("C:/Documents and Settings/yourname/My Documents")
诠释孤独 2024-12-26 10:09:26

此链接可能有助于为每个项目创建工作文件夹,然后将所有相关信息放入该文件夹中。这是一个很好的教程,用于制作包含您需要的所有内容的项目文件。这是一种方法。

http://www.dangoldstein.com/flash/Rtutorial2/Rtutorial2.html

setwd() 是另一种方法。我在工作中结合使用了两者。

This link may be useful as a method of making working folders per project and then placing all relevant info in that folder. It's a nice tutorial for making project files that contain everything you need. This is one approach.

http://www.dangoldstein.com/flash/Rtutorial2/Rtutorial2.html

The setwd() is another approach. I use a combination of the two in my work.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文