How Can I move multiple files between folders [closed] - r

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 days ago.
Improve this question
I have several folders in a file that I want to move into a new folder. I started using R recently and i am not sure how to go about.
I want to move files "from ref-data" to "data"
Thank you in advance
my.files <- list.files("/home/zzeinabd/MyWorkDir/ref-data")
for (x in my.files{
file.copy(from=x,to="/home/zzeinabd/MyWorkDir/data")
}
my.files3 <- list.files("/home/zzeinabd/MyWorkDir/data")
my.files3
character(0)

Related

how do i run an excecutable file for r from github [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I know this is an extremely basic question, but someone suggested i try running a code from github and I have no idea how to go about it
I tried copying and pasting but that didn't work and neither does downloading it and trying to open it with R.
You can click the raw button on github to get the url
source("https://raw.githubusercontent.com/amignan/risk_eq_mmax/master/get_mmax.R")

How to read .mod file in R? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have stored the model in .mod extension.
Now I have to read the file.
Tried installing ProTrackR package and read using read.module.
But not able to read the file.
You can try
read.module(filename, ignore.validity = F)

How to download latest file from FTP when the name of the files do not contain the date [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Using R, I need to download the latest file from ftp.nhc.noaa.gov/atcf/fst I need to download the most recent file uploaded.
I don't want to download the entire list of file and check the dates and the files do not contain the date in their names.
These are the list of files. Need some guidance on how to do with R.
Thank you

Can you run R code on a .md file? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I'm new to R, so this might be a stupid question but I'd appreciate any help.
Can you execute code on a .md file? I know that you can include code, but it doesn't show the output like it does in a .Rmd file. Am I doing something wrong?
Thanks!

How can I extract points from image file using R? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I am trying to extract points from scanned image file from printed book. The image is quite clear.
Does anyone can help me?
In R you can use the digitize package.
The full explanations are here and there and.. well google has lots more.

Resources