Re: [R] lme4 package installation

2015-08-16 Thread PIKAL Petr
Hi try tu put line setInternet2(TRUE) into your Rprofile.site file (located in etc directory of R installation) and restart R. Cheers Petr > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Teck > Kiang Tan > Sent: Friday, August 14, 2015 11:21 AM

Re: [R] Error -> cannot open file 'specdata/001.csv': No such file or directory; Windows 8, R Version 3.2.1

2015-08-16 Thread Anthoni, Peter (IMK)
Hi Nikita, To check whether the files are really there, run the following at the R prompt: getwd() list.files() > *C:/Users/acer/My Documents/specdata/rprog-data-specdata/specdata* Your working path looks like you either need to set it to: C:/Users/acer/My Documents/specdata/rprog-data-specda

Re: [R] cut variable within a loop

2015-08-16 Thread David Winsemius
On Aug 16, 2015, at 8:57 AM, Janka VANSCHOENWINKEL wrote: > Hi David, > > Thanks for your comment. I'll explain what I want to do. I explained it > already earlier but the explanation might have gone lost in some of the > emails. I now see that you did explain that you wanted the positional

Re: [R] Error while submission

2015-08-16 Thread Jeff Newmiller
Go to where you were given this assignment and ask them for help. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go...

Re: [R] Error while submission

2015-08-16 Thread Sarah Goslee
On Sun, Aug 16, 2015 at 12:39 PM, Nikita Dinger wrote: > I have completed part 2 of the assignment and am getting the desired output. > But on submitting the code, it shows as the answer is incorrect along with > this message: This list is not an appropriate place for you to ask for help with you

[R] Error while submission

2015-08-16 Thread Nikita Dinger
I have completed part 2 of the assignment and am getting the desired output. But on submitting the code, it shows as the answer is incorrect along with this message: function (..., list = character(), package = NULL, lib.loc = NULL, verbose = getOption("verbose"), envir = .GlobalEnv) Result:

Re: [R] cut variable within a loop

2015-08-16 Thread Janka VANSCHOENWINKEL
Hi David, Thanks for your comment. I'll explain what I want to do. I explained it already earlier but the explanation might have gone lost in some of the emails. The variable irrigation ranges from 0 to 100. (maybe not in de small sample I gave, but in reality I have over 6 observations and t

Re: [R] difference between write.csv(...) and write.table(..., sep=", ")

2015-08-16 Thread Marc Schwartz
> On Aug 16, 2015, at 9:38 AM, Jinsong Zhao wrote: > > Hi there, > > I notice that write.csv is a wrap of write.table. However, I can't get the > same results using both functions. Here is a reproducible example: > > > x <- matrix(1:6, nrow =2) > > rownames(x) <- letters[1:2] > > colnames(x)

Re: [R] difference between write.csv(...) and write.table(..., sep=", ")

2015-08-16 Thread Berend Hasselman
> On 16-08-2015, at 16:38, Jinsong Zhao wrote: > > Hi there, > > I notice that write.csv is a wrap of write.table. However, I can't get the > same results using both functions. Here is a reproducible example: > > > x <- matrix(1:6, nrow =2) > > rownames(x) <- letters[1:2] > > colnames(x) <- L

Re: [R] difference between write.csv(...) and write.table(..., sep=", ")

2015-08-16 Thread Michael Dewey
I think that if you do ?write.csv and then page down to the section entitled CSV files the mystery will be solved for you in the first few paragraphs. On 16/08/2015 15:38, Jinsong Zhao wrote: Hi there, I notice that write.csv is a wrap of write.table. However, I can't get the same results usi

[R] difference between write.csv(...) and write.table(..., sep=", ")

2015-08-16 Thread Jinsong Zhao
Hi there, I notice that write.csv is a wrap of write.table. However, I can't get the same results using both functions. Here is a reproducible example: > x <- matrix(1:6, nrow =2) > rownames(x) <- letters[1:2] > colnames(x) <- LETTERS[1:3] > write.csv(x, "") "","A","B","C" "a",1,3,5 "b",2,4,6

Re: [R] Error

2015-08-16 Thread Bert Gunter
What do you think "data" is in: rbind(data, read.csv(filename[id])) str(data) ## before running your function will show you that it is probably the built in function data() which is probably the source of your error. Cheers, Bert Bert Gunter "Data is not information. Information is not know

Re: [R] All results not showing in console (very large dataset)

2015-08-16 Thread John Kane
Write the results into an object and use head()? Quick example dat1 <- data.frame(aa = sample(x, 500, replace = TRUE), bb = sample(x, 500, replace = TRUE), cc = sample(x, 500, replace = TRUE), dd =sample(x, 500, replace = TRUE) ) head(dat1) see ?head for more details John Kane Kingston ON

[R] Running R in Server

2015-08-16 Thread Swagato Chatterjee
Hello, I have written a R script which runs a regression of a dataset and saves the result in a csv file. Now this dataset has to be edited periodically which is done in a server. I need to run the R script in a server so that the results can also be shared in a server and used in a web applicati

[R] Running R in Server

2015-08-16 Thread Swagato Chatterjee
Hello, I have written a R script which runs a regression of a dataset and saves the result in a csv file. Now this dataset has to be edited periodically which is done in a server. I need to run the R script in a server so that the results can also be shared in a server and used in a web applicati

[R] All results not showing in console (very large dataset)

2015-08-16 Thread Aureus
Hi, I have a very large dataset, and have run a simper test on it. However, the output is so large that I cannot see the first sets of results in the console. How can I view them? I have tried saving to text, but it only saves what's in the console. Or is there a way to report the first X numbe

[R] Error

2015-08-16 Thread Nikita Dinger
Dear Sir, I am getting this error Error in rep(xi, length.out = nvar) : attempt to replicate an object of type 'closure' I have read through the websites but cant really comprehend what this means? Need your help. This is my code complete <- function(directory, idvec = 1:332) { df <-