Re: [R] Relist strings? [Was: How to remove square brackets, etc. from address strings?]

2012-05-29 Thread Sabina Arndt
][ -bad ] > > Note that you could do this to 'country.list', it might be simpler. OK, which step would this be in the order above? And how / where do I get the country name that was incorrectly replaced by the Article Identifier? > If it all works correctly, adjustments can b

Re: [R] Relist strings? [Was: How to remove square brackets, etc. from address strings?]

2012-05-29 Thread Sabina Arndt
o that there are some additional adjustments I need to apply to the country names before output since there are many different versions of US addresses, e.g. (See 00029657986.). I'm not sure I understand your function correctly, do you think the edits I mentioned could be fit in there as w

Re: [R] Relist strings? [Was: How to remove square brackets, etc. from address strings?]

2012-05-29 Thread Sabina Arndt
anybody know how I would achieve these results instead: > numbers[1] [1] 8 > numbers[2] [1] 1 > results[1] [1] "GERMANY" "GERMANY" "GERMANY" "GERMANY" "GERMANY" "GERMANY" "GERMANY" "GERMANY" > res

Re: [R] How to remove square brackets, etc. from address strings?

2012-05-27 Thread Sabina Arndt
s more complex as I'd tried to explain in my previous posts. It finally seems to work now. Do you happen to have any idea on how I could put the country names back into their original lines / order, though? Thank you very much in advance! Faithfully yours, Sabina Arndt Am 27.05.201

Re: [R] How to remove square brackets, etc. from address strings?

2012-05-27 Thread Sabina Arndt
hind a "]" would be helpful in this regard, but I'm not sure how to do that, unfortunately. These semicolons directly follow the country names, like this, e.g.: "... Germany; [..." If I add "+ 1" to their number it results in the number of addresses for each re

Re: [R] How to remove square brackets, etc. from address strings?

2012-05-25 Thread Sabina Arndt
[1] "GERMANY""GERMANY" "GERMANY" [4] "GERMANY""GERMANY""GERMANY" [7] "HUMBOLDT""GERMANY" What am I doing wrong? What are the errors in my R-script? Would anybody be so kind as t

[R] How to remove square brackets, etc. from address strings?

2012-05-22 Thread Sabina Arndt
Hello, I'd like to remove the individual pairs of square brackets along with their content - plus the space directly behind it - from address strings such as this: [Swidsinski, Alexander; Loening-Baucke, Vera; Lochs, Herbert] Charite Humboldt Univ, Innere Klin, D-10098 Berlin, Germany; [