[R] Is it possible to have different animations saved together with the saveSWF command?

2014-09-02 Thread Cheryl Johnson
The way I have programed my code the same animation runs and then starts over again with Adobe Flash. Each time the animation ends and starts is it possible to have a different animation start each time? Thanks in advance for any guidance. [[alternative HTML version deleted]]

[R] Error in file.exists(swf.file) : invalid 'file' argument

2014-07-08 Thread Cheryl Johnson
*I am receiving the error message “*Error in file.exists(swf.file) : invalid 'file' argument*” from my swf2html command. In addition, there is a command that says the Flash file was created: “*Flash has been created at: C:\Users\CHERYL\AppData\Local\Temp\Rtmp6n6FXw\file2.swf*”* *Below is

[R] Calling Matrices from a Function

2014-07-05 Thread Cheryl Johnson
When I call matrices from a function, they are called but are not recognized as matrices. I use the code below. From the main function, when I use the command is.matrix(), the response is FALSE. Why are the matrices not recognized as matrices? Thanks in advance for any guidance. #This function

Re: [R] R Console Output

2014-07-01 Thread Cheryl Johnson
you are talking about. Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to do, not how you want to do it. On Mon, Jun 30, 2014 at 10:56 AM, Cheryl Johnson johnson.cheryl...@gmail.com wrote: When I run code in R, my R console output

[R] R Console Output

2014-06-30 Thread Cheryl Johnson
When I run code in R, my R console output stops before all the code has complied. There are no error messages, but there must be an error somewhere. Thanks in advance for any guidance. [[alternative HTML version deleted]] __

[R] Run R Code Continuously in the Background of HTML

2014-06-05 Thread Cheryl Johnson
I would like to run R code continuously in the background of a HTML page. This code will run in a loop that has a random number generator. I would like the different values from the random number generator to be displayed on the HTML page as the loop iterates. Thanks in advance for any help.

[R] saveSWF Error Message: file association not available or invalid

2014-05-29 Thread Cheryl Johnson
When I run the code below, I receive the following error message. Thanks in advance for help with fixing this error message. saveSWF({ code }, img.name = file,swf.name = file2.swf , single.opts = 'utf8': false, autoplay = FALSE , interval = 0.1, imgdir = directory, htmlfile = random.html,

[R] Warning Message: In saveSWF({ : the executablepng2swf.exedoes not exist!

2014-05-17 Thread Cheryl Johnson
By using the animation package, I get the warning message In saveSWF({ : the executablepng2swf.exedoes not exist!. Help in understanding why this message is given will be appreciated. Thanks [[alternative HTML version deleted]] __

[R] Append Data to an Excel File through each Iteration of a For Loop

2012-11-05 Thread Cheryl Johnson
Hi, I would like to find a way to append data to an excel file through each iteration of a for loop. Is there a way to use a command such as write.table and append each iteration to a different sheet? Thanks [[alternative HTML version deleted]]

[R] How to Write a Model in R that has the Log taken of the Intercept

2012-09-23 Thread Cheryl Johnson
Hi, I know that +1 is used to specify an intercept in a R model. An example of this would be: y~x+1 If I want to have a model where the log of the intercept is taken, the equation y~x+log(1) will not take the log of the intercept. Any suggestions on how to take the log of the intercept will be

[R] write.table and read.table commands

2012-08-27 Thread Cheryl Johnson
Greetings, When I try to use the write.table command to save a matrix as a file and then open the file with read.table, if I try to take the mean of the entire matrix, instead each column of the matrix has its mean calculated. I have copied and pasted an example of my code below. When I try to

[R] lmer function bug

2011-12-27 Thread Cheryl Johnson
Hello, When I make certain values greater with the lmer function, variance components that I expect to give a certain value are switched from how I expect them to be. Has anyone else had this problem? Thanks [[alternative HTML version deleted]]

[R] rnorm command

2011-12-03 Thread Cheryl Johnson
Hello, I use the command rnorm, and I feed these results into a lmer command. Since I am using the rnorm command I expect to get different results for each iteration, yet for each iteration I am getting the same answer. If someone understands why I am getting the same answer every time with a

[R] How to use IML with R and SAS

2011-10-31 Thread Cheryl Johnson
Hello, I have a for loop that generates data in R. With the IML program, I would like to analyze data in SAS from each iteration of the for loop in R. It would be helpful if someone could explain to me how to analyze data this way. Thanks [[alternative HTML version deleted]]

[R] Error in Penalized Command

2011-10-07 Thread Cheryl Johnson
How do I fix this error in the penalized command? L-penalized(y,x,lambda1=10) Error in .checkinput(match.call(), parent.frame()) : the length of response (20) does not match the row count of penalized (1000) Thanks! [[alternative HTML version deleted]]

[R] Var-Cov matrix from LMER function

2011-08-08 Thread Cheryl Johnson
Hello, Is there a way to get the Var-Cov matrix from the LMER function? Thanks [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] Legend for 2 plots on same screen

2011-07-31 Thread Cheryl Johnson
Hello, I have two plots on the same screen. I use the command par(mfrow=c(1,2)) in order to do this. When I try to make a legend for both plots, it only puts the legend in the plot on the right side. If I would like a legend that is outside of both of the plots, how would I do this? Thanks

[R] extraction of mean square value from ANOVA

2011-05-19 Thread Cheryl Johnson
Hello, I am randomly generating values and then using an ANOVA table to find the mean square value. I would like to form a loop that extracts the mean square value from ANOVA in each iteration. Below is an example of what I am doing. a-rnorm(10) b-factor(c(1,1,2,2,3,3,4,4,5,5))

Re: [R] extraction of mean square value from ANOVA

2011-05-19 Thread Cheryl Johnson
Thanks for your help. How would I extract each of the 3 values in the vector individually? Thanks again On Thu, May 19, 2011 at 10:40 PM, Rolf Turner rolf.tur...@xtra.co.nzwrote: On 20/05/11 13:46, Cheryl Johnson wrote: Hello, I am randomly generating values and then using an ANOVA table