花费 11ms 找到772条记录
Why use as.factor() instead of just factor() 繁体
2016年09月01 - Possibly a dumb question, but I recently saw Matt Dowle write some code with as.factor(), specifically for (col in names_factors) set(dt, j=col, value=as.factor(dt[[col]])) in a comment to this answer

Show mapping of factor levels and factor values in R 繁体
2014年07月21 - I'm wondering if there's any function to show the mapping of levels and values of a factor variable in R? For example I would expect an output like this: 我想知道是否有任何函数来显示R中因子变量的级别和值的映射?例如,我希望输出如下: Fac

Writing a factor to a list of dataframes (factor is the name of the dataframe) 繁体
2018年04月16 - I have list1 of dataframes, which i want to do.call("rbind", list1)later, but first i want to add a identifying factor to each of the dataframes. This factor should be the name of the dataframe: 我有lis

Confusion between factor levels and factor labels 繁体
2011年05月03 - 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 (suc

Remove rows in dataframe with factor “” 繁体
2011年08月17 - I have a dataframe like x where the column genes is a factor. I want to remove all the rows where column genes has nothing. So in table X I want to remove row 4. Is there a way to do this for a large

Convert NA into a factor level 繁体
2014年11月28 - I have a vector with NA values that I would like to replace by a new factor level NA. 我有一个NA值的向量,我想用新的因子级NA替换。 This works, but it seems like a strange way to do it. 这有效,但这似乎是一种奇怪的方式。 This is the

using wxMaxima to factor a polynomial 繁体
2013年10月21 - Suppose that I define some function, then make a change of variable and expand, as in the following

How to overwrite a factor in R 繁体
2014年08月21 - I have a dataset: 我有一个数据集: The variables are as follows. As per the first answer by joran, unused

R语言中的factor 繁体
2016年10月17 - 对于初学者来说,R语言中的factor有些难以理解。如果直译factor为“因子”,使得其更加难以理解。我倾向于不要翻译,就称其为factor,然后从几个例子中理解:<span style="font-size:12px;">data <- c(1,2,2,3,1,2,3,3,1,2,3,3,1)data</span>显示结果:<span s

Convert factor to time in R 繁体
2013年10月16 - I have a small problem which I cannot seem to figure out. I have searched several topics and website


 
粤ICP备14056181号  © 2014-2021 ITdaan.com