Displaying 2 results from an estimated 2 matches for "20copex".
Did you mean:
20code
2004 Feb 21
3
saving variables created by functions in the workspace
Hello ,
just a simple question from a beginner:
I write the function:
plotsinx <- function()
{
x<-seq(0,2*pi,0.01)
sinx<-sin(x)
plot(sinx)
}
I recall it:
plotsinx()
and the plot works properly.
but then in the workspace if I want to look at the
values of sinx the following error is displayed:
Error: Object "sinx" not found.
How to save the variables created by the function on
2004 Feb 23
2
deleting elements from an array/object
Hello,
I created a simple histogram with:
myHist<-hist(myData)
the object myHist now has two arrays (among the others):
myHist$mids
myHist$counts
Since myHist$counts contains some "0", and I want to calculate the linear fit among myHist$mids and log(myHist$counts), I want remove the elements of both arrays where these "0" occurs.
which are the possible solutions to