I believe replication_factor determines how many replicas to have amongst nodes in the cluster, and refFactor determines whether or not to replicate a particular index. For repFactor, which is an index specific setting The indexes.conf repFactor attribute When you add a new index stanza, you must set the repFactor attribute to "auto". This causes the index's data to be replicated to other ...
Performance: as.factor > factor when input is integer A factor variable is the next of kin of an integer variable. ... This means that converting an integer to a factor is easier than converting a numeric / character to a factor. as.factor just takes care of this.
Why use as.factor () instead of just factor () - Stack Overflow
I'm currently looking into how we should remove expired certificates from Azure Multi-Factor Auth Client, and properly cleanup the old certificates with Microsoft Graph PowerShell cmdlets.
The levels of a factor are stored as character data type anyway (attributes(f)), so I don't think there is anything wrong with as.numeric(paste(f)). Perhaps it would be better to think why (in the specific context) you are getting a factor in the first place, and try to stop that. E.g., is the dec argument in read.table set correctly?
r - How to convert a factor to integer\numeric without loss of ...
The complete conversion of every character variable to factor usually happens when reading in data, e.g., with stringsAsFactors = TRUE, but this is useful when say, you've read data in with read_excel() from the readxl package and want to train a random forest model that doesn't accept character variables.