search for: fgnu32

Displaying 4 results from an estimated 4 matches for "fgnu32".

Did you mean: fgnu
2012 Nov 14
1
R wildcards, sapply and as.factor
I want to change the type to factor of all variables in a data frame whose names match a certain pattern. So here I am trying to change the type to factor of all variables whose name begins with?namestub?in the dataframe?df. attach(df)sapply(grep(glob2rx("namestub*"),names(df)),as.factor) But this doesn't work since >levels(df$namestub1)NULL
2013 Jul 23
1
cbind error with check.names
Here is an example where?cbind?fails with an error when?check.names=TRUE?is set. data(airquality) airQualityBind =cbind(airquality,airquality,check.names =TRUE) ?I understand that?cbind?is a call to?data.frame?and the following works: airQualityBind =data.frame(airquality,airquality,check.names =TRUE) but I would like to understand why?cbind?throws an error. I asked this question on SO here:
2013 Dec 24
1
Object type name and class name
I came across the distinction between the name of an object and the name of the class that it belongs to in an oblique way again today, which made me question my acceptance that it would be natural for them to differ. I asked a question on SO here: http://stackoverflow.com/questions/20762559/why-is-the-name-of-an-object-type-different-from-the-name-of-the-class-it-belong I wonder if anyone on
2012 Aug 17
1
Trouble compiling package on Windows (64 bit)
I am trying to compile the R package "KernGPLM" found here: http://www.marlenemueller.de/KernGPLM/KernGPLM_0.65.tar.gz since the binary available is for R 2.4. but the compilation ends with the error message: *** arch-i386 ERROR: compilation failed for the package 'KernGPLM' Here is my session info: R version 2.14.2 (2012-02-29) Platform: x86_64-pc-mingw32/x64 (64-bit)