search for: mydatafile

Displaying 19 results from an estimated 19 matches for "mydatafile".

2004 Aug 17
1
survdiff
...he column (O-E)^2/V mean? What is V, and how does this possibly relate to the calculated Chisq? The syntax would be something like this: gr1<-c(1,2,3,4,5) gr <-rep(1,length(gr1)) gr2<-c(6,7,8,9) gr<-c(gr,rep(2,length(gr2))) surv<-c(gr1,gr2) event<-rep(1,7) event<-c(event,0,0) mydatafile<-cbind(surv,gr,event) mydatafile <- data.frame(mydatafile) mydatafile$gr<-factor(mydatafile$gr) library(survival) mydatafile.LR<-survdiff(Surv(surv,event)~gr,data=mydatafile) print(mydatafile.LR) And the response would be: Call: survdiff(formula = Surv(surv, event) ~ gr, data = myd...
2005 Feb 25
3
passing command line arguments to 'R CMD BATCH myScript.R'
...he parameters passed to an R script, but I don't know how to pass them. There is an option --args that should cut the rest of the line off the command line. The problem is however that BATCH syntax is: 'R CMD BATCH [options] inFile [outFile]', i.e. if I write 'R CMD BATCH --args myDataFile myScript.R' or 'R CMD BATCH --args myDataFile < myScript.R' (similar was posted on some R help under Windows) it is not going to work because then BATCH doesn't know about myScript.R - it is considered as a parameter, so only 'R CMD BATCH' is executed. If however I us...
2024 Nov 09
3
Limit
Hi All, I am reading data file ( > 1B rows) and do some date formatting like dat=fread(mydatafile) dat$date1 <- as.Date(ymd(dat$date1)) However, I am getting an error message saying that Error: cons memory exhausted (limit reached?) The script was working when the number rows were around 650M. Is there another way to handle a big data set in R? Thank you.
2024 Nov 09
1
Limit
...with the "chunked" package which comes up when you Google "r read large file in chunks"? On November 8, 2024 4:58:18 PM PST, Val <valkremk at gmail.com> wrote: >Hi All, > >I am reading data file ( > 1B rows) and do some date formatting like > dat=fread(mydatafile) > dat$date1 <- as.Date(ymd(dat$date1)) > >However, I am getting an error message saying that > Error: cons memory exhausted (limit reached?) > >The script was working when the number rows were around 650M. > >Is there another way to handle a big data set in R...
2024 Nov 09
1
Limit
...high performance task view" on CRAN ... https://cran.r-project.org/web/views/HighPerformanceComputing.html On Fri, Nov 8, 2024, 7:58 PM Val <valkremk at gmail.com> wrote: > Hi All, > > I am reading data file ( > 1B rows) and do some date formatting like > dat=fread(mydatafile) > dat$date1 <- as.Date(ymd(dat$date1)) > > However, I am getting an error message saying that > Error: cons memory exhausted (limit reached?) > > The script was working when the number rows were around 650M. > > Is there another way to handle a big data set...
2024 Nov 09
1
Limit
...ge which comes up > when you Google "r read large file in chunks"? > > On November 8, 2024 4:58:18 PM PST, Val <valkremk at gmail.com> wrote: > >Hi All, > > > >I am reading data file ( > 1B rows) and do some date formatting like > > dat=fread(mydatafile) > > dat$date1 <- as.Date(ymd(dat$date1)) > > > >However, I am getting an error message saying that > > Error: cons memory exhausted (limit reached?) > > > >The script was working when the number rows were around 650M. > > > >Is there ano...
2009 Aug 19
4
Basic question: Reading in multiple choice question responses to a single column in data frame
...e data set, but I'd like the option of reading in the data column, and converting it to a vector that has all row values (comma seperated or not) each have their own vector entry, so that the "table(columnData)" function does counts correctly. So some code: myData = read.delim(myDataFile, row.names=1,header=TRUE,skip=10); #works fine myColumn = myData[[question]]; #works fine, selects correct question column data myColumn data is now e.g.: 1 0 2 0,2 0 3 2 2,1 with the comma seperated values looking like atomic string values I guess. But I w...
2024 Nov 09
1
Limit
...hen you Google "r read large file in chunks"? >> >> On November 8, 2024 4:58:18 PM PST, Val <valkremk at gmail.com> wrote: >> >Hi All, >> > >> >I am reading data file ( > 1B rows) and do some date formatting like >> > dat=fread(mydatafile) >> > dat$date1 <- as.Date(ymd(dat$date1)) >> > >> >However, I am getting an error message saying that >> > Error: cons memory exhausted (limit reached?) >> > >> >The script was working when the number rows were around 650M. >&gt...
2006 Mar 11
2
how to create analog stripchart plots of x vs t (t=mm/dd/yyyy hh:mm:ss)
....000000 ...etc... I am trying to make a plot of 'X' vs. 't' where 'x' is a simple numerical vector of N elemets and 't' is a timestamp like "mm/dd/yyyy hh:mm:ss" (also of N elements) here is how i am getting the data: > >TheData <- scan("MyDataFile.txt",sep=",",list("","",0)) >TheDates <- TheData[[1]] >TheTimes <- TheData[[2]] >TheValue <- TheData[[3]] > and here is how i am making the datetime objects: > >TimeStampStr <- paste(TheDates,TheTimes) >TimeStampObj <- st...
2024 Nov 09
1
Limit
...ead large file in chunks"? >>> >>> On November 8, 2024 4:58:18 PM PST, Val <valkremk at gmail.com> wrote: >>> >Hi All, >>> > >>> >I am reading data file ( > 1B rows) and do some date formatting like >>> > dat=fread(mydatafile) >>> > dat$date1 <- as.Date(ymd(dat$date1)) >>> > >>> >However, I am getting an error message saying that >>> > Error: cons memory exhausted (limit reached?) >>> > >>> >The script was working when the number rows we...
2013 Jul 12
1
Unable to connect to Samba server, but it shows on the network
...????????????????????????????????? ??????? max log size = 50 ??????? security = user ??????? passdb backend = tdbsam ??????? load printers = yes ??????? cups options = raw [tmp] comment = temporal files path = /tmp public = yes writable = yes printable = no [mp3] comment = my data files path = /mydatafiles public = yes writable = no printable = no I start the service by running # smbd -D # nmbd -D then the logs show: log.nmbd: ------------- [2013/07/11 21:11:47,? 0] ../source3/nmbd/nmbd.c:883(main) ? nmbd version 4.0.7 started. ? Copyright Andrew Tridgell and the Samba Team 1992-2012 [2013/07/1...
2024 Nov 09
1
Limit
...? > >>> > >>> On November 8, 2024 4:58:18 PM PST, Val <valkremk at gmail.com> wrote: > >>> >Hi All, > >>> > > >>> >I am reading data file ( > 1B rows) and do some date formatting like > >>> > dat=fread(mydatafile) > >>> > dat$date1 <- as.Date(ymd(dat$date1)) > >>> > > >>> >However, I am getting an error message saying that > >>> > Error: cons memory exhausted (limit reached?) > >>> > > >>> >The script was wo...
2024 Nov 09
1
Limit
...>> >>> On November 8, 2024 4:58:18 PM PST, Val <valkremk at gmail.com> wrote: >> >>> >Hi All, >> >>> > >> >>> >I am reading data file ( > 1B rows) and do some date formatting like >> >>> > dat=fread(mydatafile) >> >>> > dat$date1 <- as.Date(ymd(dat$date1)) >> >>> > >> >>> >However, I am getting an error message saying that >> >>> > Error: cons memory exhausted (limit reached?) >> >>> > >> >>&gt...
2009 Oct 05
6
Date-Time-Stamp input method for user-specific formats
...equivalents: Example Data: <<< DATETIME FREQ 01/09/2009 59.036 01/09/2009 00:00:01 58.035 01/09/2009 00:00:02 53.035 01/09/2009 00:00:03 47.033 01/09/2009 00:00:04 52.03 01/09/2009 00:00:05 55.025 >>> Example Function Call: <<< > spot = spot_frequency_readin("mydatafile.txt",4) >>> Result of Example Function Call: <<< > spot[1] DATETIME 1 1251759600 2 1251759601 3 1251759602 4 1251759603 >>> What I ideally wanted to see (whether or not the time part of the datetimestamp at midnight was displayed): <<< > spot[...
2009 Sep 14
1
loading a package .Rda file at package load time
Hi, I have seen the answer to this sometime before but I just can't find it again - pointers appreciated. I have a package that contains some data.frames saved as .Rda files in the data/ directory. When the package is loaded I would like to have them be available in the workspace (without the user having to explicitly load them using data(...)). If my package does not use a NAMESPACE, I can
2008 Jan 17
4
aaMI
hi i am new to R language. I want to use aaMI package which calculates the amino acid mutual interaction for a given protein sequence. I had installed the package but when i run the program it gives me the error could not find function "aaMI". can anyone tell me what might be the problem.. -- View this message in context: http://www.nabble.com/aaMI-tp14915744p14915744.html Sent from
2009 May 20
2
Example for parsing XML file?
Hi, I am trying to parse XML files and read them into R as a data frame, but have been unable to find examples which I could apply successfully. I'm afraid I don't know much about XML, which makes this all the more difficult. If someone could point me in the right direction to a resource (preferably with an example or two), it would be greatly appreciated. Here is a snippet from one of
2008 Jun 12
7
How to change the class of data?
Hi all, I have some data x, which are actualy consisted of numerical enties. But the class of this matrix is set to be "factor" by someone else. I used "class(x)", it turns out to be "factor". So I can not calculate them. How can I turn them into numerical data so that I can apply math operations on them? Thanks a lot for your help. Selina [[alternative HTML
2012 Feb 10
6
Importing a CSV file
I have been trying to import a csv file to r. but I get the same message everytime. the message is Error in file(file, "rt") : cannot open the connection In addition: Warning message: In file(file, "rt") : cannot open file 'Users:/sezginozcan/Downloads/beer.data.csv': No such file or directory I use mac. I tried this command also