Displaying 1 result from an estimated 1 matches for "aregion".
Did you mean:
region
2007 Apr 23
1
automating merging operations from multiple dataframes
...LIM, BINDSLIM, CINDSLIM ... NINDSLIM
In each dataframe I want to extract two variables, “pid” and “{w}region”,
where {w} means “a”, “b”, “c”, ...”n”
At the moment my code looks like:
> PidRegion <- data.frame(pid=XWAVEID$pid)
> this.region <- AINDSLIM[,c("pid", "aregion")]
> PidRegion <- merge(PidRegion, this.region, by="pid", all=T)
> this.region <- BINDSLIM[,c("pid", "bregion")]
> PidRegion <- merge(PidRegion, this.region, by="pid", all=T)
> this.region <- CINDSLIM[,c("pid", "...