Displaying 5 results from an estimated 5 matches for "dstat4".
Did you mean:
dstate
2024 Mar 26
2
Printout and saved results
...saved results at the same time.
The subroutine first return "out" and the printout gets printed, but not
saved.
I then run the "invisible" line. Results got saved and accessible but no
printout.
How can I have both printout and also have the results saved? Thank you!
> dstat4 <- function(data,digits=3){
+?? Mean??? <- apply(data,2,mean,na.rm=TRUE)
+?? Std.dev <- apply(data,2,sd,? na.rm=TRUE)
+?? Min <- apply(data,2,min,na.rm=TRUE)
+?? Max <- apply(data,2,max,na.rm=TRUE)
+?? Obs <- dim(data)[1]
+?? out <-round(cbind(Mean,Std.dev,Min,Max,Obs),digits)...
2024 Mar 26
1
Printout and saved results
...e subroutine first return "out" and the printout gets printed, but not
> saved.
>
> I then run the "invisible" line. Results got saved and accessible but no
> printout.
>
> How can I have both printout and also have the results saved? Thank you!
>
> > dstat4 <- function(data,digits=3){
> + Mean <- apply(data,2,mean,na.rm=TRUE)
> + Std.dev <- apply(data,2,sd, na.rm=TRUE)
> + Min <- apply(data,2,min,na.rm=TRUE)
> + Max <- apply(data,2,max,na.rm=TRUE)
> + Obs <- dim(data)[1]
> + out <-round(cbind(Mean...
2024 Mar 26
1
Printout and saved results
...ut" and the printout gets printed, but not
>> saved.
>>
>> I then run the "invisible" line. Results got saved and accessible but no
>> printout.
>>
>> How can I have both printout and also have the results saved? Thank you!
>>
>> > dstat4 <- function(data,digits=3){
>> + Mean <- apply(data,2,mean,na.rm=TRUE)
>> + Std.dev <- apply(data,2,sd, na.rm=TRUE)
>> + Min <- apply(data,2,min,na.rm=TRUE)
>> + Max <- apply(data,2,max,na.rm=TRUE)
>> + Obs <- dim(data)[1]
>> + o...
2024 Mar 26
1
Printout and saved results
...ted, but not
>>> saved.
>>>
>>> I then run the "invisible" line. Results got saved and accessible but no
>>> printout.
>>>
>>> How can I have both printout and also have the results saved? Thank you!
>>>
>>> > dstat4 <- function(data,digits=3){
>>> + Mean <- apply(data,2,mean,na.rm=TRUE)
>>> + Std.dev <- apply(data,2,sd, na.rm=TRUE)
>>> + Min <- apply(data,2,min,na.rm=TRUE)
>>> + Max <- apply(data,2,max,na.rm=TRUE)
>>> + Obs <- dim(dat...
2024 Mar 26
1
Printout and saved results
...ted, but not
>>> saved.
>>>
>>> I then run the "invisible" line. Results got saved and accessible but no
>>> printout.
>>>
>>> How can I have both printout and also have the results saved? Thank you!
>>>
>>> > dstat4 <- function(data,digits=3){
>>> + Mean <- apply(data,2,mean,na.rm=TRUE)
>>> + Std.dev <- apply(data,2,sd, na.rm=TRUE)
>>> + Min <- apply(data,2,min,na.rm=TRUE)
>>> + Max <- apply(data,2,max,na.rm=TRUE)
>>> + Obs <- dim(dat...