similar to: Creating a sparse matrix from a file

Displaying 20 results from an estimated 100 matches similar to: "Creating a sparse matrix from a file"

2011 Jun 14
3
Read in from multiple Excel wksheets
I?ve got an Excel workbook with about 30 worksheets. Each worksheet has 10000 rows of data over 30 columns. I?d like to read the data from each worksheet into a dataframe or matrix in R for processing. Normally, I use read.csv when interacting with Excel but I?d rather manipulate a multisheet workbook directly than set about splitting the original workbook and saving down each part as a csv.
2016 Mar 29
2
Filtering based on the occurrence
Hello,? I have a data set similar to below and I wanted to keep the observations after the first occurrence of these department: "B", "D", "F".For example for ID=2, the observation with deps=B and anything after will be kept in the data. For ID=3, observations with deps=D and anything after will be included. Subject<- c("2", "2", "2",
2009 May 15
2
transposing/rotating XY in a 3D array
Dear list, We have a number of files containing similarly structured data: file1: A B C 1 2 3 4 5 6 file2: A B C 7 8 9 10 11 12 ... etc My part of R receives all these data as an array: 1,2,3... 12 together with info about dimensions (row,col,fileN) . ( Converting the data into 3D cannot simply done by: array(x, c(2,3,2)) because breaks the structure (e.g. 1,3,5 is type mismatch)
2016 Mar 31
0
Filtering based on the occurrence
Hi Jim,? Thank you tons for your help. The code worked perfectly :)?Best,Farnoosh On Wednesday, March 30, 2016 1:13 AM, Jim Lemon <drjimlemon at gmail.com> wrote: Hi Farnoosh, Despite my deep suspicion that this answer will solve a useless problem, try this: last_subject<-0 keep_deps<-c("B","D","F") keep_rows<-NULL for(rowindex in
2009 Dec 11
2
Why a list of NULL's are reduced to NULL?
The following examples are confusing to me. It is OK, to assigned NULL to one element in a list. The result is still a list. However, a list of NULL's are reduced to NULL. I don't understand how this conversion occurs. Could somebody let me know what is going on? > X=matrix(1:8, nr=4) > apply(X,1, function(x) {if(x[[1]]==3){NULL}else{x[[1]]}}) [[1]] [1] 1 [[2]] [1] 2 [[3]] NULL
2012 May 13
4
write data using xlsReadWrite
Hai, I'm trying to write these var output data from these codes inside excel file. My directory to store the data is /D:\FYP\image / but receive an error message : /Error in write.xls(mydata, "D:\\FYP\\image.mydata.xls") : object 'mydata' not found/ these are my codes, can you help give an advice or idea with my problem: /library("biOps")
2014 Apr 13
2
Adding an external library to Xapian
Configure command: ./configure --enable-maintainer mode I dont get any output with nm that contains Trie. On Sun, Apr 13, 2014 at 11:20 PM, James Aylett <james-xapian at tartarus.org>wrote: > On 13 Apr 2014, at 18:39, Pallavi Gudipati <pallavigudipati at gmail.com> > wrote: > > > I am working in Ubuntu 12.04. I have tried re-configuring the source > tree too.
2017 Oct 22
0
Test set and Train set in Caret package train function
Hey all, Does anyone know how we can get train set and test set for each fold of 5 fold cross validation in Caret package? Imagine if I want to do cross validation by random forest method, I do the following in Caret: set.seed(12) train_control <- trainControl(method="cv", number=5,savePredictions = TRUE) rfmodel <- train(Species~., data=iris, trControl=train_control,
2013 Apr 12
0
kNNimpute error
Hi all, I'm trying to use kNNimpute in the imputation package to fill in missing precipitation data for a data frame I have. Example is: okee: Date rainfall 1997-05-01 0 1997-05-02 0 1997-05-03 NA 1997-05-04 0 1997-05-05 0 ..................... ..
2014 Apr 13
2
Adding an external library to Xapian
A linker error is encountered even after following the above steps. ERROR: undefined reference to `Xapian::Trie::Trie()' On Sun, Apr 13, 2014 at 8:00 PM, James Aylett <james-xapian at tartarus.org>wrote: > On 13 Apr 2014, at 15:24, Siddhant Mutha <siddhantmutha at gmail.com> wrote: > > > We are writing a new module which needs to be added to the Xapian > source.
2014 Apr 13
2
Adding an external library to Xapian
I am working in Ubuntu 12.04. I have tried re-configuring the source tree too. Removing the destructor stops the error messages for the destructor but the constructor's error persist. ERROR: http://pastebin.com/r0wYNfEs On Sun, Apr 13, 2014 at 10:56 PM, James Aylett <james-xapian at tartarus.org>wrote: > On 13 Apr 2014, at 17:49, Siddhant Mutha <siddhantmutha at gmail.com>
2014 Apr 13
2
Adding an external library to Xapian
Oh, no no. It was a typo in the mail. We did the same thing you mentioned. *Siddhant Mutha* Undergraduate Student Department of Computer Science and Engineering IIT Madras Chennai http://www.siddhantmutha.com/ <http:/www.siddhantmutha.com/> On Sun, Apr 13, 2014 at 11:31 PM, James Aylett <james-xapian at tartarus.org>wrote: > On 13 Apr 2014, at 18:56, Pallavi Gudipati
2014 Apr 13
2
Adding an external library to Xapian
The outputs: config.log : http://pastebin.com/tEBiCgcb lib_src: http://pastebin.com/mm7K7pFc On Sun, Apr 13, 2014 at 11:36 PM, James Aylett <james-xapian at tartarus.org>wrote: > On 13 Apr 2014, at 19:03, Siddhant Mutha <siddhantmutha at gmail.com> wrote: > > > Oh, no no. It was a typo in the mail. We did the same thing you > mentioned. > > Can you give me the
2014 Apr 13
2
Adding an external library to Xapian
My code is not on Github. I am using the tarball as of now. The following it the error that occurred: http://pastebin.com/cVJrjUZX On Sun, Apr 13, 2014 at 8:16 PM, James Aylett <james-xapian at tartarus.org>wrote: > On 13 Apr 2014, at 15:37, Pallavi Gudipati <pallavigudipati at gmail.com> > wrote: > > > A linker error is encountered even after following the above
2014 Apr 13
2
Adding an external library to Xapian
trie.cc still isnt showing up. http://pastebin.com/c89kWz3L Also we have shifted to git: https://github.com/sidmutha/xapian -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20140413/b82f4a92/attachment-0002.html>
2014 Apr 13
2
Adding an external library to Xapian
It is there: https://github.com/sidmutha/xapian/blob/master/xapian-core/api/Makefile.mk#L53 On an other note, I'm trying to run ./bootstrap from the cloned repo. But it gives an error saying "unknown option -C" followed by "Bootstrap failed". *Siddhant Mutha* Undergraduate Student Department of Computer Science and Engineering IIT Madras Chennai
2014 Mar 21
0
Wine release 1.7.15
The Wine development release 1.7.15 is now available. What's new in this release (see below for details): - New Task Scheduler service. - Many regression test fixes. - Support for exception unwinding in VBScript. - Various bug fixes. The source is available from the following locations: http://prdownloads.sourceforge.net/wine/wine-1.7.15.tar.bz2
2013 Jan 10
1
how to generate a matrix by an my data.frame
Dear All It is a little hard to give a good small example of my question,so I will show the full data on the bottom and the attachment.Maybe some one could tell me an appropriate way to show it.I'm sorry for the inconvenience. Q:How to generate a 53*53 diagonal matrix by my data Some problems confused me are that: 1.Since it is a diagonal matrix,I have tried to transform col1 and col2 to
2014 Apr 13
2
Adding an external library to Xapian
Hi We are writing a new module which needs to be added to the Xapian source. For this, what modifications are to be made to the Makefile? The two modules we are writing will be in the 'include' and 'api' folders. Cheers *Siddhant Mutha* Undergraduate Student Department of Computer Science and Engineering IIT Madras Chennai http://www.siddhantmutha.com/
2014 Apr 13
2
Adding an external library to Xapian
We are using the --enable-maintainer-mode and will move to git soon. The diff file is attached. *Siddhant Mutha* Undergraduate Student Department of Computer Science and Engineering IIT Madras Chennai http://www.siddhantmutha.com/ <http:/www.siddhantmutha.com/> On Sun, Apr 13, 2014 at 8:26 PM, James Aylett <james-xapian at tartarus.org>wrote: > On 13 Apr 2014, at 15:48, Pallavi