A blog about molecular biology, biochemistry, genetics and computation.
Wednesday, August 18, 2010
String Lengths in R
For some reason, in R this does not do what I expect:
string = "mystring"
print( length(string) )
What I actually want is this function:
print( nchar(string) )