[R] Cross tabulation with top one variable and side as multiple variables

2015-06-09 Thread jagadishpchary
Hi: I have a huge data with lot of variables and I need to check the trend variations from year to year. In order to do so, I have to cross tabulate the year variable as top (constant) and all the remaining variables as side (attached the cross tabulation report). I have searched the forums but th

Re: [R] Cross tabulation with top one variable and side as multiple variables

2015-06-18 Thread jagadishpchary
I think my explanation in the post is not giving the full details on the job to be done. Sorry for that. Here is what I am doing.. 1. I have a SPSS data set with more than 2000 variables. However for test purpose I have created a temporary data set with 5 variables which I am reading it to R

[R] Reading the non delimited file with no particular patterns in the data to R

2015-07-10 Thread jagadishpchary
I am beginner in R and I want to read a ASCII file to R environment. However, the ASCII file is a non delimited and the data is not continuous (have some blank spaces between the variables) so in order to read the data i have used the below syntax i.e test <- read.fwf("D:/R_process/ASCII.txt", widt

[R] Unable to display titles in final merged SPSS output file - when merged the two SPSS data sets in R

2015-09-03 Thread jagadishpchary
I have two large data sets in SPSS which I am trying to merge the files using R - (for test purpose I included only two variables with 4 cases) and below is the R syntax that I am using for merging the files. data <- read.spss("D:/R_merge/Data.sav") data1 <- read.spss("D:/R_merge/Data1.sav") mydat