Re: [R] Using options(max.print = 1000000) to read in data

2019-07-09 Thread Spencer Brackett
My apologies! I made this much to complicated and allowed myself to become confused with the straightforward advice given. I tried running the lines Mr. Barradas suggested after receiving the output for as.matrix() and I understand now. Thank you all again for your patience. Best, Spencer On Tu

Re: [R] Using options(max.print = 1000000) to read in data

2019-07-09 Thread Michael Friendly
You continue to labor under false conceptions, starting with your subject line indicating that you should be able to *see* your huge data set in the R console. Take a pause, have a coffee or tea and re-read the helpful advice various people have tried to offer before continuing this thread. -Mi

Re: [R] Using options(max.print = 1000000) to read in data

2019-07-09 Thread Patrick (Malone Quantitative)
Spencer, what prints into your console is not the point. As others have said, the best way to find it if an R object is the type matrix is is.matrix() . That will return TRUE or FALSE. [[alternative HTML version deleted]] __ R-help@r-project.org

Re: [R] Using options(max.print = 1000000) to read in data

2019-07-09 Thread Spencer Brackett
So even though a number of rows were omitted during the ‘print in’ or visualization of the dataset into my console, the data frame is now set as a matrix? I believe so, per Mr. Barradas’s last email. Sorry for the confusion, I was expecting the whole dataset to load into my console and was concern

Re: [R] Using options(max.print = 1000000) to read in data

2019-07-09 Thread Michael Friendly
Why do you need it to be a matrix? A data.frame is like a matrix, but allows columns of mixed types. as.matrix() will coerce your data frame to a matrix if you really need this. On 7/08/19 4:43 p.m., Spencer Brackett wrote: Using str(GBM.txt) produced the same output as last time, which lists

Re: [R] Using options(max.print = 1000000) to read in data

2019-07-09 Thread Richard O'Keefe
The obvious question is "what do you mean, FORMATTED AS a matrix?" Once you have read an object into R, you have no information about how it was formatted. Another question is "what do you mean, MATRIX"? Do you mean the kind of R object specifically recognised by is.matrix, or do you mean "rectangu

Re: [R] Using options(max.print = 1000000) to read in data

2019-07-08 Thread Stephen Ellison
> This corresponds with the info found in my global environment for the > object indicated. Now, how do I go about determining if the dataset is a > matrix? Consider ?is.matrix ? S Ellison *** This email and any attachments are co

Re: [R] Using options(max.print = 1000000) to read in data

2019-07-08 Thread Rui Barradas
Hello, Look at the output of these two commands: 1) str() str(matrix(0, nrow = 20530, ncol =173)) num [1:20530, 1:173] 0 0 0 0 0 0 0 0 0 0 ... The important part is num [1:20530, 1:173] This says it's a numeric vector with dimensions 20530 and 173, it's a matrix 2) str() str(as.data.fram

Re: [R] Using options(max.print = 1000000) to read in data

2019-07-08 Thread Spencer Brackett
Using str(GBM.txt) produced the same output as last time, which lists the number of objects acting on a particular number of variables for the said dataset and a few rows read from the original file. The result of class(GBM.txt) generates the following.. > class(GBM.txt) [1] "data.frame" Is this

Re: [R] Using options(max.print = 1000000) to read in data

2019-07-08 Thread Bert Gunter
Why did you not do as Kevin suggested?? Or, more simply, ?is.matrix which could be found in ?matrix. *Please* consult R's docs before posting such queries. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Bre

Re: [R] Using options(max.print = 1000000) to read in data

2019-07-08 Thread Rui Barradas
Hello, Inline. Às 15:26 de 08/07/19, Spencer Brackett escreveu: Thank you, Here is a summary of the resulting output nrow(GBM.txt) [1] 20530 ncol(GBM.txt) [1] 173 This corresponds with the info found in my global environment for the object indicated. Now, how do I go about determinin

Re: [R] Using options(max.print = 1000000) to read in data

2019-07-08 Thread Spencer Brackett
Thank you, Here is a summary of the resulting output >nrow(GBM.txt) [1] 20530 > ncol(GBM.txt) [1] 173 This corresponds with the info found in my global environment for the object indicated. Now, how do I go about determining if the dataset is a matrix? On Mon, Jul 8, 2019 at 10:16 AM Kevin

Re: [R] Using options(max.print = 1000000) to read in data

2019-07-08 Thread Kevin Thorpe
> On Jul 8, 2019, at 10:06 AM, Spencer Brackett > wrote: > > Hello, > > I am trying to reload some data into R in order to check to see if it is > formatted as a matrix. I used the command options(max.print = 1000) to > account for the 20,000 some rows omitted previously when just using t

[R] Using options(max.print = 1000000) to read in data

2019-07-08 Thread Spencer Brackett
Hello, I am trying to reload some data into R in order to check to see if it is formatted as a matrix. I used the command options(max.print = 1000) to account for the 20,000 some rows omitted previously when just using the basic version of this function. After entering this command, the data