r-faq
Controlling number of decimal digits in print output in R
There is an option in R to get control over digit display. For example: options(digits=10) is supposed to give the calculation results in 10 digits till the end of R session. In the help file of R,[详细]
2022-12-21 00:21 分类:问答Where can I find useful R tutorials with various implementations?
I\'m using R language and the manuals on the R site are really informative. However, I\'d like to see some more examples and implementations with R which can help me develop my knowledge fas开发者_JS百[详细]
2022-12-20 17:33 分类:问答How can I trim leading and trailing white space?
I am having some trouble with leading and trailing white space in a data.frame. For example, I look at a specific row in a data.frame based on a certain condition:[详细]
2022-12-20 07:09 分类:问答Concatenate a vector of strings/character
If I have a vector开发者_JAVA百科 of type character, how can I concatenate the values into string? Here\'s how I would do it with paste():[详细]
2022-12-17 02:20 分类:问答Counting the number of elements with the values of x in a vector
I have a vector of numbers: numbers <- c(4,23,4,23,5,43,54,56,657,67,67,435, 453,435,324,34,456,56,567,65,34,435)[详细]
2022-12-14 12:15 分类:问答View the source of an R package
Is there an easy way to vi开发者_Go百科ew the source of an R package (or a method in a package), from within the interactive environment?Just enter the name of a function/method without parentheses:[详细]
2022-12-12 03:17 分类:问答What are the differences between "=" and "<-" assignment operators?
What are the differences between the assignment operators = and <- in R? I know that operators are slightly different, as this example shows[详细]
2022-12-12 02:41 分类:问答Evaluate expression given as a string
I\'m curious to know if R can use its eval() function to perform calculations provided by e.g. a string.[详细]
2022-12-11 08:32 分类:问答Filter data.frame rows by a logical condition
I want to filter rows from a data.frame based on a logical condition. Let\'s suppose that I have data frame like[详细]
2022-12-10 12:37 分类:问答How to sum a variable by group
I have a data frame with two columns. First column contains categories such as \"First\", \"Second\", \"Third\", and the second column has numbers that represent the nu开发者_如何学JAVAmber of times I[详细]
2022-12-09 20:44 分类:问答