[R] Wordcloud errors

2020-05-23 Thread Bryan Mac
Hi all, I am trying to create word clouds using this script but I am getting warnings. Script: if (runtype=="native") { words <- Corpus(VectorSource(test123b[,2])) wordcloud(words, min.freq = minfreq, max.words=300, random.order = FALSE ,colors=brewer.pal(9,"Reds")[0:-3])

[R] Wordcloud warnings

2020-05-22 Thread Bryan Mac
Hi, I am having trouble understanding why I am getting this warning and how to fix it. I don’t have any of these functions in my script.. This is the warning: warning messages: 1: in tm_map.simplecorpus(corpus, tm::removepunctuation) : transformation drops documents 2: in tm_map.simplecorpus

[R] Hierarchical Cluster Analysis

2018-09-11 Thread Bryan Mac
Bryan Mac Data Scientist Research Analytics Ipsos Insight LLC [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

Re: [R] Export R output in Excel

2016-12-29 Thread Bryan Mac
a .CSV file with the good formatting ? I am looking to export the whole output if possible. I found this code, but it doesn’t cover the whole output of the console. write.csv(coef(summary(test)), file=“test.csv”) My whole output consists of descriptives and regressions. Best, Bryan Mac

Re: [R] [FORGED] Export R output in Excel

2016-12-28 Thread Bryan Mac
not find most of the hints “useful”. if anything, it got me more confused. Thanks. Bryan Mac bryanmac...@gmail.com > On Dec 28, 2016, at 3:15 PM, Rolf Turner wrote: > > On 29/12/16 10:45, Bryan Mac wrote: >> Hi, >> >> How do I export results from R to Excel in

[R] Export R output in Excel

2016-12-28 Thread Bryan Mac
Hi, How do I export results from R to Excel in a format-friendly way? For example, when I copy and paste my results into excel, the formatting is messed up. Thanks. Bryan Mac bryanmac...@gmail.com __ R-help@r-project.org mailing list -- To

[R] Filtering out rows

2016-11-02 Thread Bryan Mac
Hi, I am looking to filter out rows in my data set, run my analysis and then removing the filter. Here is my regression. I would like to filter out a row. For example, I would like to filter out a row, "Case"=1511. npi=lm(npi_mvmt~cnavgpi,data=df) summary(npi) resid.vs.fitt.LS%https://stat.ethz.c

Re: [R] Bootstrapping in R

2016-10-19 Thread Bryan Mac
Hi, After running the bootstrapping, I would like to the output of the bootstrapped samples. How can I view the bootstrapped samples of each variable? Bryan Mac bryanmac...@gmail.com > On Oct 18, 2016, at 3:57 AM, Rui Barradas wrote: > > It means that the sd of the bootstrap s

Re: [R] Least Median Square Regression

2016-10-08 Thread Bryan Mac
I am confused reading the document. I have installed and added the package (MASS). What is the function for LMS Regression? Bryan Mac bryanmac...@gmail.com > On Oct 8, 2016, at 6:17 AM, Enrico Schumann wrote: > > On Sat, 08 Oct 2016, Bryan Mac writes: > >> Hi R-help,

[R] Least Median Square Regression

2016-10-08 Thread Bryan Mac
squared_lms_sqrtnar_sqrtnic) return(out) } Also, which value should be looked at decide whether this is best regression model to use? Bryan Mac bryanmac...@gmail.com [[alternative HTML version deleted]] __ R-help@r-project.org mailing l

Re: [R] Bootstrapping in R

2016-10-03 Thread Bryan Mac
orm(100) > y <- x + rnorm(100) > dat <- data.frame(x, y) > stat2 <- function(DF, f){ > model <- lm(y ~ x, data = DF[f,]) > coef(model) > } > > boot(dat, stat1, R = 100) > boot(dat, stat2, R = 100) Bryan Mac bryanmac...@gmail.com > On Oct 2, 20

Re: [R] Bootstrapping in R

2016-09-30 Thread Bryan Mac
each time the code is run, correct? result <- boot(n_data, statistic = DataSummary, R = 100). Best, Bryan Mac bryanmac...@gmail.com > On Sep 29, 2016, at 12:16 PM, ruipbarra...@sapo.pt wrote: > > Hello, > > Read the help page ?boot::boot. > For instance, try the follo