Displaying 3 results from an estimated 3 matches for "ilaik9".
Did you mean:
ilai
2012 Feb 13
3
If (x > 0)
Hi,
I am new to R. I was trying to get a very simple program to run. Take one number from the command line. If the number < 0 return -1. If number > 0 return 1 and if the number == 0 return 0. The code is in a file called test1.R
The code:
#useage: R --no-save --args 5 < test1.R
args = (commandArgs(TRUE))
x = as.numeric(args[1])
print(x)
res <- conditional1(x)
cat("result=
2012 Feb 20
1
Time taken to process a file after a socket connection was made
Hello R people,
I have created a '.csv' file of 100 rows by 20 columns whose each cell
contains a random numbers between 0 & 1, thru a Java program. Once that is
created a signal (just a letter) is send to the port of a socket
connection at "localhost", which was earlier started by an "R" session.
Now the "R" reads the '.csv' file into a data
2012 Feb 18
3
foreach %do% and %dopar%
Hi everyone,
I'm working on a script trying to use foreach %dopar% but without success,
so I manage to run the code with foreach %do% and looks like this:
The code is part of a MCMC model for projects valuation, returning the most
important results (VPN, TIR, EVA, etc.) of the simulation.
foreach (simx = NsimT, .combine=cbind, .inorder=FALSE, .verbose=TRUE) %do% {
MCPVMPA = MCVAMPA[simx]