First, R::load
the row into a bean:
$user = R::load('users', 24);
Then update your data:
$user->username = "Bojangles";
And finally save the user back to the table:
R::store($user);
Please be sure to read the manual in the future - an example of how to do this is on the homepage