Displaying 2 results from an estimated 2 matches for "wcase".
Did you mean:
case
2012 Dec 02
2
Change case of factor in data frame
...ion call does not work (e.g.
tolower(as.character(dat[1]))).
So, I would loop over the column names, but I can not figure out how to
generically call them:
tst=names(dat);
dat$(tst[1]) returns an error
dat[tst[1]] returns class data.frame again
Thank you in advance!
change_case<-function(dat,wcase){
# change case
res=sapply(dat,class); # get classes
ind<-res=='character';
dat[ind]<-switch(wcase,
'lower'=tolower(dat[ind]),
'upper'=toupper(dat[ind])
)
rm(ind);
ind<-res=='factor';
dat[ind]<-switch(...
2010 Nov 05
1
[nut-commits] svn commit r2671 - branches/AsciiDoc/m4
2010/11/4 Arjen de Korte
> Author: adkorte-guest
> Date: Thu Nov 4 22:40:51 2010
> New Revision: 2671
> URL: http://trac.networkupstools.org/projects/nut/changeset/2671
>
> Log:
> Exclude -I. and extra developer warning flags with Net-SNMP support enabled
> (using them is the responsibility of the NUT developers)
>
> Modified:
>