[R] Using Foreach for downloading data
samarvir singh
samarvir1996 at gmail.com
Wed Apr 27 13:59:05 CEST 2016
Hi!
I have this code which is working
formula <- function(x){
return(x)
}
For( x in names)
{
x5 <- rbind(x5,formula(x))
}
Now, I want to convert this code to parallel processing, so i am using
foreach function
foreach(x=names, .packages="checkpoint" ,.combine='rbind') %dopar%
{
x5 <- rbind(x5,formula(x))
}
Now, I know that have to load packages to workers which I did!
but I also need to login to secure sever, for downloading some data, which
I did , in the case of for loop!
how can I do the same for foreach loop?
[[alternative HTML version deleted]]
More information about the R-help
mailing list