Skip to navigation

Archive for November, 2009

Small hyperref error solved

Monday, November 9th, 2009

For the record. I got an error running hyperref: Paragraph ended before \Hy@setref@link was complete This was due to having a regulare closing parenthesis directly after the curly bracket that closed a \ref, like this: (see section \ref{section-1}). Putting in a space between the closing curly bracket and parenthesis solved the problem: … section-1} )

Nice R example from r-help

Thursday, November 5th, 2009

I don’t know the first thing about programming, but sometimes you see something and appreciate how elegant it is. This small solution from r-help is a good example. Someone wanted, given a vector c(‘p’,’p’,’t’,’t’,’t’,’p’,’k’,’t’) to produce NA NA 1 2 3 test