r-faq
Confusion between factor levels and factor labels
There seems to be a difference between levels and labels of a factor in R. Up to now, I always thought that levels were the \'real\' name of factor levels, and labels were the names used for output (s[详细]
2023-03-02 17:48 分类:问答Order Bars in ggplot2 bar graph
I am trying to ma开发者_C百科ke a bar graph where the largest bar would be nearest to the y axis and the shortest bar would be furthest. So this is kind of like the Table I have[详细]
2023-02-14 21:42 分类:问答Memory profiling in R - tools for summarizing
R has some开发者_如何学Python tools for memory profiling, likeRprofmem(), Rprof() with option \"memory.profiling=TRUE\" and tracemem(). The last one can only be used on objects, and hence is useful to[详细]
2023-02-14 11:47 分类:问答R: what are Slots?
Does anyone know what a slot is in R? I did not find the explanation of its meaning. I get a recursive definition:[详细]
2023-02-05 15:30 分类:问答Drop data frame columns by name
I have a number of columns that I would like to remove f开发者_如何学运维rom a data frame. I know that we can delete them individually using something like:[详细]
2023-02-02 08:15 分类:问答General suggestions for debugging in R
I get an error when using an R function that I wrote: Warning messages: 1: glm.fit: algorithm did not converge[详细]
2023-01-30 18:52 分类:问答do-while loop in R
I was wondering about how to write do-while-style loop? I found this post: you can use repeat{} and check conditions whereever using if()and[详细]
2023-01-28 18:27 分类:问答Split data frame string column into multiple columns
I\'d like to take data of the form before = data.frame(attr = c(1,30,4,6), type=c(\'foo_and_bar\',\'foo_and_bar_2\'))[详细]
2023-01-28 15:21 分类:问答Elegant way to check for missing packages and install them?
I seem to be sharing a lot of code with coau开发者_开发知识库thors these days. Many of them are novice/intermediate R users and don\'t realize that they have to install packages they don\'t already ha[详细]
2023-01-23 22:22 分类:问答Convert integer to class Date
I have an integer which I want to convert to class Date. I assume I first need to convert it to a string, but how?[详细]
2023-01-23 20:43 分类:问答