Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我最近从 PC 换成了 mac,在尝试将录制的音频输入 R 时遇到了麻烦。
在 PC 上,音频需要位于“我的文档”中,以便tuneR包使用以下命令找到我的音频:
tuneR
readWave('audio.wav')
但是,我无法找到音频需要在 Mac 上以便 R 找到它的正确目录。
到目前为止,我已将音频文件复制到每个文件夹中,但仍然没有运气。
音频可以在您喜欢的任何目录中,您只需告诉 R 确切的位置。尝试写出文件的完整路径,例如readWave('/Users/EmmaL/audiofiles/audio.wav'). 要查找路径,请在 Finder 中查找文件,右键单击,选择Get Info,然后检查 General -> Where:
readWave('/Users/EmmaL/audiofiles/audio.wav')
Get Info