Skip to content
Prev 9080 / 398502 Next

how to save results???

Em Quarta 17 Janeiro 2001 19:45, Ronaldo Reis Jr. escreveu:
For save all commands and results in a terminal (LINUX).

script
Script started on Sat Jan 20 14:27:21 2001
[ronaldo at localhost Rwork]$ R

R : Copyright 2000, The R Development Core Team
Version 1.1.1  (August 15, 2000)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type	"?license" or "?licence" for distribution details.

R is a collaborative project with many contributors.
Type	"?contributors" for a list.

Type	"demo()" for some demos, "help()" for on-line help, or
    	"help.start()" for a HTML browser interface to help.
Type	"q()" to quit R.

[Previously saved workspace restored]
demo(nlm)
	---- ~~~

Type  <Return>	 to start :
if (x1 > 0)
        return((0.5/pi) * atan(x2/x1))
    else return((0.5/pi) * atan(x2/x1) + 0.5)
}
f1 <- 10 * (x[3] - 10 * theta(x[1], x[2]))
    f2 <- 10 * (sqrt(x[1]^2 + x[2]^2) - 1)
    f3 <- x[3]
    return(f1^2 + f2^2 + f3^2)
}
0)))
$minimum
[1] 1.238337e-14

$estimate
[1]  1.000000e-00  3.071555e-09 -6.063119e-09

$gradient
[1] -3.756314e-07  3.486019e-06 -2.202456e-06

$hessian
              [,1]          [,2]          [,3]
[1,]  2.000000e+02   -0.04065842  9.776087e-07
[2,] -4.065842e-02  506.60589960 -3.183099e+02
[3,]  9.776087e-07 -318.30988572  2.020000e+02

$code
[1] 2

$iterations
[1] 27
..
..
..
Save workspace image? [y/n/c]: n
[ronaldo at localhost Rwork]$ exit
exit

Script conclu?do em Sat Jan 20 14:28:13 2001

All terminal's command will be save in a file named typescript

by
Inte mais

Ronaldo