search for: 2null

Displaying 2 results from an estimated 2 matches for "2null".

Did you mean: null
2005 Jan 04
2
print(cat(bleh)) shows up strange NULL
I am trying the following code... for(i in 1:bins){ print(cat(c(i, length(var1[var1==i])))) } Where var1 is a vector with zero or more values = {1, 2, ..., bins} (or something like that). The result I get is... 1 33NULL 2 28NULL 3 39NULL 4 27NULL 5 32NULL 6 30NULL 7 23NULL 8 16NULL 9 10NULL 10 15NULL 11 13NULL 12 7NULL 13 3NULL 14 7NULL 15 2NULL 16 0NULL 17 2NULL 18 0NULL 19 0NULL 20 3NULL I don't know what I am doing to get those stray NULL characters printed. I also tried... for(i in 1:bins){ print(cat(i, length(var1[var1==i]))) } Which...
2012 Apr 04
3
Remove carriage return in writing tab-delimited file.
Having problems with the write.table function. I can write a tab delimited file just fine, but for each line in my matrix its inputs a carriage return when i dont want it to. For example my matrix might be: ID V1 V2 V3 FARY1004 1 2 3 FARY2067 2 3 1 FARY4587 2 2 2 And I want the written File to be: FARY1004 1 2 3FARY2067 2 3 1FARY4587 2 2 2 TIA -- View this