Displaying 2 results from an estimated 2 matches for "hrishimittal".
2010 Jan 28
2
Missing argument error message
Back in the days of R 2.6, if you did this, you got this:
> z=function(x){x*2}
> z()
Error in z() : argument "x" is missing, with no default
But now in this decade we get (for R 2.9 and 2.10):
> z=function(x){x*2}
> z()
Error in z() :
element 1 is empty;
the part of the args list of '*' being evaluated was:
(x, 2)
Now I can see (after thinking about it)
2010 Feb 24
2
How to read percentage and currency data?
I'm struggling to find any help on this seemingly simple question - how does
one read data with percentage (%) or currency (?,$ etc.) signs? When I try
to read a data file which has any of those symbols in the data fields, they
are read as characters rather than values. Is there a function or library
which can deal with such values?
As an example, I use this sample from one of chinna's