Displaying 2 results from an estimated 2 matches for "bpkzm".
2012 Feb 14
2
save objects of own function to workspace
Dear R-helpers,
I created an own function which looks like this
s_elternmz <- function(Var="balt")
{
Dg_a<-mz[,c("asbhh","apkz",Var)]
colnames(Dg_a)[colnames(Dg_a)=="apkz"]<-"bpkzm"
colnames(Dg_a)[colnames(Dg_a)==Var]<-paste(Var,"_m",sep="")
mz_int<-merge(mz,Dg_a,by=c("asbhh","bpkzm"),all.x=T)
colnames(Dg_a)[colnames(Dg_a)=="bpkzm"]<-"bpkzv"
colnames(Dg_a)[colnames(Dg_a)==paste(Var,"_m"...
2012 Jul 25
1
Memisc package: imported varibles from SPSS have got wrong measurement
...r problem. I imported an SPSS file with the Memisc package
using the following commands:
mz <- spss.system.file("myspssfile.sav")
mz <- subset(mz,select=c(
bsex,balt,xurb,dtaet,kartab,bgeb,boseit,bgeblan,xnuts2,kausb,xerwstat,
asbper,asbhh,ajahr,aquartal,bstaat,xwieoft,gew1,apkz,bpkzm,bpkzv))
Afterwards I checked the measurements of the variables and they are all
right for most of them (e.g. the variable containing the sex of a person is
"nominal" and the variable containing the year is "interval"). For two of
the variables the measurement is not o.k, though...