![]() Read.table(filename,header=TRUE,sep=',') #read csv filesįloor(x) #vector x of largest interger < xĪs.integer(x) #truncates real x to integers (compare to round(x,0)Īs.integer(x < cutpoint) #vector x of 0 if less than cutpoint, 1 if greater than cutpoint)įactor(ifelse(a < cutpoint, "Neg", "Pos")) #is another way to dichotomize and to make a factor for analysis Read.table(filename,header=TRUE) #read a tab or space delimited file See the R-reference card by Tom Short for a much more complete list. Unfortunately, knowing what to ask for help about is the hardest problem. For all of these commands, using the help(function) or ? function is the most useful source of information. See the relevant part of the guide for better examples. A short list of the most useful R commandsĪ summary of the most important commands with minimal examples. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |