Re: [R] Symbol/String comparison in R

2022-04-13 Thread Bert Gunter
"I was not able to find answers to my questions (tried Google, Stack Overflow, etc). Please correct me if anything is wrong here." R has an extensive Help system. That should always be your first place to look. In this case, ?"<" (at the R prompt) brings you to the Help page for comparisons (as wo

Re: [R] Symbol/String comparison in R

2022-04-13 Thread Ebert,Timothy Aaron
https://en.wikipedia.org/wiki/ASCII There is a table towards the end of the document. Some of the other pieces may be of interest and/or relevant. Tim -Original Message- From: R-help On Behalf Of Kristjan Kure Sent: Wednesday, April 13, 2022 10:06 AM To: r-help@r-project.org Subject: [R

Re: [R] Error with text analysis data

2022-04-13 Thread Neha gupta
Hi David, I just used caret library and farff file format. sapply(d, function(x){ length(unique(x)) } ) PLUGIN_RULE_KEY PLUGIN_CONFIG_KEY PLUGIN_NAME 18171211 14 DESCRIPTIONSEVERITY NA

Re: [R] Error with text analysis data

2022-04-13 Thread Ebert,Timothy Aaron
Is this a different question from the original post? It would be better to keep threads separate. Always pre-process the data. Clean the data of obvious mistakes. This can be simple typographical errors or complicated like an author that wrote too when they intended two or to. In old English tex

Re: [R] Error with text analysis data

2022-04-13 Thread Bill Dunlap
> I would always suggest working until the model works, no errors and no NA values We agree on that. However, the error gives you no hint about which variables are causing the problem. If it did, then it could only tell about the first variable with the problem. I think you would get to your w

Re: [R] Error with text analysis data

2022-04-13 Thread Bill Dunlap
Constant columns can be the model when you do some subsetting or are exploring a new dataset. My objection is that constant columns of numbers and logicals are fine but those of characters and factors are not. -Bill On Wed, Apr 13, 2022 at 9:15 AM Ebert,Timothy Aaron wrote: > What is the goal

Re: [R] Error with text analysis data

2022-04-13 Thread Bill Dunlap
This sounds like what I think is a bug in stats::model.matrix.default(): a numeric column with all identical entries is fine but a constant character or factor column is not. > d <- data.frame(y=1:5, sex=rep("Female",5)) > d$sexFactor <- factor(d$sex, levels=c("Male","Female")) > d$sexCode <- as.i

Re: [R] Max-Diff Package

2022-04-13 Thread Eric Berger
I have no experience with this but a Google search came up with CRAN support.BWS See https://cran.r-project.org/web/packages/support.BWS/index.html On Wed, Apr 13, 2022 at 4:37 PM Dr Cazhaow Qazaz wrote: > Hi All, > > Any recommendations for a R package to perform MaxDiff analysis? > > Thank y

[R] Max-Diff Package

2022-04-13 Thread Dr Cazhaow Qazaz
Hi All, Any recommendations for a R package to perform MaxDiff analysis? Thank you, Cazhaow Qazaz [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo