Displaying 2 results from an estimated 2 matches for "unsupplied".
Did you mean:
supplied
2002 Dec 10
2
names<- bug, and incompatibility with c() (PR#2358)
...uot;
test>
Note that "c" has supplied an empty string for the unspecified name, and
has also taken the liberty of changing the special NA-string into a "NA"
(i.e. a 2-character string, first letter N, second letter A)!
An easy way to achieve consistency, would be to make unsupplied names should
always default to an empty string, rather than a special NA-string.
cheers
Mark
--please do not edit the information below--
Version:
platform = i386-pc-mingw32
arch = i386
os = mingw32
system = i386, mingw32
status =
major = 1
minor = 6.1
year = 2002
month = 11
day =...
2012 Jun 09
1
Applying a function to a column of a data frame
Apologees the novice question. Currently climbing up the learning curve of R.
Suppose I have the following function and the data.frame:
testfun<-function(x=1,y=2) x+y
testframe=data.frame(col1=c(1,2),col2=c(3,4))
When evaluating testfun, I want to use the default value for y (which
is 2) and for x, I want to feed (one by one) the values in col2 of
testframe. How can I achieve this please?