Re: [R] Removing null vector that is not in .csv file data

2013-08-02 Thread zelfortin
Hi, you could try going in your spreadsheet and delete columns/rows that are seemingly empty (delete a lot a of them), then try again. Sometimes in your spreadsheet you enter values then you delete them. This leaves the cells "active" and when you save the csv file, it writes some commas with n

Re: [R] Removing null vector that is not in .csv file data

2013-08-02 Thread arun
Hi, You could remove it by: vec1<- c( "","1003PI_pilot0101", "1003PI_pilot0102","1003PI_pilot0103", "1003PI_pilot0104", "1003PI_pilot0105", "1003PI_pilot0107") vec1[vec1!=""] #[1] "1003PI_pilot0101" "1003PI_pilot0102" "1003PI_pilot0103" "1003PI_pilot0104" #[5] "1003PI_pilot0105" "1003PI_pilot0107