Re: [R] Display a dataframe

2014-07-04 Thread arun
You can use:
print(dd1, row.names=F)
    # Chisq DF   Pr(>Chisq) term   
 153.0216306  1 7.578366e-35 # Sex  
  13.3696538  1 5.114571e-04 # Volume   
   0.8476713  1 7.144239e-01 # Weight   
   1.2196050  1 5.388764e-01 # Intensity
   2.6349405  1 2.090719e-01 # ISO  
   6.0507714  1 2.780045e-02 # SEC  

A.K.





On Friday, July 4, 2014 10:27 AM, Gang Chen  wrote:



I really your kind help! This is exactly what I was looking for except that I 
need to get rid of the numbered row names.


On July 3, 2014 9:57:00 PM EDT, arun  wrote:
Hi,
>May be this helps:
>nC <- max(nchar(row.names(dd)))
> term <- formatC(row.names(dd), width=-nC)
>#or
> term <- sprintf("%-11s", row.names(dd))
>
>  dd1 <- setNames(data.frame(unname(dd), term,stringsAsFactors=F), 
>c(colnames(dd), formatC("term",width=-nC)))
>dd1
>#  # Chisq DF   Pr(>Chisq) term   
>#1 153.0216306  1 7.578366e-35 # Sex  
>#2  13.3696538  1 5.114571e-04 # Volume   
>#3   0.8476713  1 7.144239e-01 # Weight   
>#4   1.2196050  1 5.388764e-01 # Intensity
>#5   2.6349405  1 2.090719e-01 # ISO  
>#6   6.0507714  1 2.780045e-02 # SEC  
>
>A.K.
>
>
>
>
>
>On Thursday, July 3, 2014 3:57 PM, Gang Chen  wrote:
>I have a matrix 'dd' defined as below:
>
>dd <- t(matrix(c(153.0216306,  1, 7.578366e-35,
>13.3696538,  1, 5.114571e-04,
>0.8476713,  1, 7.144239e-01,
>1.2196050,  1, 5.388764e-01,
>2.6349405,  1, 2.090719e-01,
>6.0507714,  1, 2.780045e-02), nrow=3, ncol=6))
>dimnames(dd)[[2]] <- c('# Chisq', 'DF', 'Pr(>Chisq)')
>dimnames(dd)[[1]] <- c('# Sex', '# Volume', '# Weight', '# Intensity',
>'# ISO', '# SEC')
>
>'dd' displays as the following:
>
>                # Chisq DF   Pr(>Chisq)
># Sex       153.0216306  1 7.578366e-35
># Volume     13.3696538  1 5.114571e-04
># Weight      0.8476713  1 7.144239e-01
># Intensity   1.2196050  1 5.388764e-01
># ISO         2.6349405  1 2.090719e-01
># SEC         6.0507714  1 2.780045e-02
>
>I would like to display it as:
>
># Chisq               DF   Pr(>Chisq)                        term
>153.0216306  1 7.578366e-35                            # Sex
>13.3696538  1 5.114571e-04             
                # Volume
>0.8476713  1 7.144239e-01                                # Weight
>1.2196050  1 5.388764e-01                                # Intensity
>2.6349405  1 2.090719e-01                                # ISO
>6.0507714  1 2.780045e-02                                # SEC
>
>This is what I came up with
>
>(cc <- data.frame(data.frame(dd), term=dimnames(dd)[[1]]))
>
>               X..Chisq DF   Pr..Chisq.        term
># Sex       153.0216306  1 7.578366e-35       # Sex
># Volume     13.3696538  1 5.114571e-04    # Volume
># Weight      0.8476713  1 7.144239e-01    # Weight
># Intensity   1.2196050  1 5.388764e-01 # Intensity
># ISO         2.6349405  1 2.090719e-01       # ISO
># SEC         6.0507714  1 2.780045e-02       # SEC
>
>But I'm not happy with the following
two issues:
>
>1) How to get rid of the row names?
>2) The special characters of #, (, >,) in the column names are not
>displayed correctly.
>
>Any suggestions?
>
>Thanks,
>Gang
>
>
>
>
>R-help@r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.
>
>

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Display a dataframe

2014-07-04 Thread David Winsemius


On Jul 4, 2014, at 7:27 AM, Gang Chen wrote:

I really your kind help! This is exactly what I was looking for  
except that I need to get rid of the numbered row names.




Look at the documentation:

?print.data.frame

You cannot "get rid of" rownames in dataframes (at least as far as I  
know) but you _can_ print them without rownames.



--
David


On July 3, 2014 9:57:00 PM EDT, arun  wrote:

Hi,
May be this helps:
nC <- max(nchar(row.names(dd)))
 term <- formatC(row.names(dd), width=-nC)
#or
 term <- sprintf("%-11s", row.names(dd))

  dd1 <- setNames(data.frame(unname(dd), term,stringsAsFactors=F),
c(colnames(dd), formatC("term",width=-nC)))
dd1
#  # Chisq DF   Pr(>Chisq) term
#1 153.0216306  1 7.578366e-35 # Sex
#2  13.3696538  1 5.114571e-04 # Volume
#3   0.8476713  1 7.144239e-01 # Weight
#4   1.2196050  1 5.388764e-01 # Intensity
#5   2.6349405  1 2.090719e-01 # ISO
#6   6.0507714  1 2.780045e-02 # SEC

A.K.





On Thursday, July 3, 2014 3:57 PM, Gang Chen 
wrote:
I have a matrix 'dd' defined as below:

dd <- t(matrix(c(153.0216306,  1, 7.578366e-35,
13.3696538,  1, 5.114571e-04,
0.8476713,  1, 7.144239e-01,
1.2196050,  1, 5.388764e-01,
2.6349405,  1, 2.090719e-01,
6.0507714,  1, 2.780045e-02), nrow=3, ncol=6))
dimnames(dd)[[2]] <- c('# Chisq', 'DF', 'Pr(>Chisq)')
dimnames(dd)[[1]] <- c('# Sex', '# Volume', '# Weight', '#  
Intensity',

'# ISO', '# SEC')

'dd' displays as the following:

# Chisq DF   Pr(>Chisq)
# Sex   153.0216306  1 7.578366e-35
# Volume 13.3696538  1 5.114571e-04
# Weight  0.8476713  1 7.144239e-01
# Intensity   1.2196050  1 5.388764e-01
# ISO 2.6349405  1 2.090719e-01
# SEC 6.0507714  1 2.780045e-02

I would like to display it as:

# Chisq   DF   Pr(>Chisq)term
153.0216306  1 7.578366e-35# Sex
13.3696538  1 5.114571e-04  # Volume
0.8476713  1 7.144239e-01# Weight
1.2196050  1 5.388764e-01# Intensity
2.6349405  1 2.090719e-01# ISO
6.0507714  1 2.780045e-02# SEC

This is what I came up with

(cc <- data.frame(data.frame(dd), term=dimnames(dd)[[1]]))

   X..Chisq DF   Pr..Chisq.term
# Sex   153.0216306  1 7.578366e-35   # Sex
# Volume 13.3696538  1 5.114571e-04# Volume
# Weight  0.8476713  1 7.144239e-01# Weight
# Intensity   1.2196050  1 5.388764e-01 # Intensity
# ISO 2.6349405  1 2.090719e-01   # ISO
# SEC 6.0507714  1 2.780045e-02   # SEC

But I'm not happy with the following two issues:

1) How to get rid of the row names?
2) The special characters of #, (, >,) in the column names are not
displayed correctly.

Any suggestions?

Thanks,
Gang



David Winsemius, MD
Alameda, CA, USA

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Display a dataframe

2014-07-04 Thread Gang Chen
I really your kind help! This is exactly what I was looking for except that I 
need to get rid of the numbered row names.

On July 3, 2014 9:57:00 PM EDT, arun  wrote:
>Hi,
>May be this helps:
>nC <- max(nchar(row.names(dd)))
> term <- formatC(row.names(dd), width=-nC)
>#or
> term <- sprintf("%-11s", row.names(dd))
>
>  dd1 <- setNames(data.frame(unname(dd), term,stringsAsFactors=F),
>c(colnames(dd), formatC("term",width=-nC)))
>dd1
>#      # Chisq DF   Pr(>Chisq) term       
>#1 153.0216306  1 7.578366e-35 # Sex      
>#2  13.3696538  1 5.114571e-04 # Volume   
>#3   0.8476713  1 7.144239e-01 # Weight   
>#4   1.2196050  1 5.388764e-01 # Intensity
>#5   2.6349405  1 2.090719e-01 # ISO      
>#6   6.0507714  1 2.780045e-02 # SEC      
>
>A.K.
>
>
>
>
>
>On Thursday, July 3, 2014 3:57 PM, Gang Chen 
>wrote:
>I have a matrix 'dd' defined as below:
>
>dd <- t(matrix(c(153.0216306,  1, 7.578366e-35,
>13.3696538,  1, 5.114571e-04,
>0.8476713,  1, 7.144239e-01,
>1.2196050,  1, 5.388764e-01,
>2.6349405,  1, 2.090719e-01,
>6.0507714,  1, 2.780045e-02), nrow=3, ncol=6))
>dimnames(dd)[[2]] <- c('# Chisq', 'DF', 'Pr(>Chisq)')
>dimnames(dd)[[1]] <- c('# Sex', '# Volume', '# Weight', '# Intensity',
>'# ISO', '# SEC')
>
>'dd' displays as the following:
>
>                # Chisq DF   Pr(>Chisq)
># Sex       153.0216306  1 7.578366e-35
># Volume     13.3696538  1 5.114571e-04
># Weight      0.8476713  1 7.144239e-01
># Intensity   1.2196050  1 5.388764e-01
># ISO         2.6349405  1 2.090719e-01
># SEC         6.0507714  1 2.780045e-02
>
>I would like to display it as:
>
># Chisq               DF   Pr(>Chisq)                      
>  term
>153.0216306  1 7.578366e-35                            # Sex
>13.3696538  1 5.114571e-04                              # 
>Volume
>0.8476713  1 7.144239e-01                                # 
>Weight
>1.2196050  1 5.388764e-01                                # 
>Intensity
>2.6349405  1 2.090719e-01                                # ISO
>6.0507714  1 2.780045e-02                                # SEC
>
>This is what I came up with
>
>(cc <- data.frame(data.frame(dd), term=dimnames(dd)[[1]]))
>
>               X..Chisq DF   Pr..Chisq.        term
># Sex       153.0216306  1 7.578366e-35       # Sex
># Volume     13.3696538  1 5.114571e-04    # Volume
># Weight      0.8476713  1 7.144239e-01    # Weight
># Intensity   1.2196050  1 5.388764e-01 # Intensity
># ISO         2.6349405  1 2.090719e-01       # ISO
># SEC         6.0507714  1 2.780045e-02       # SEC
>
>But I'm not happy with the following two issues:
>
>1) How to get rid of the row names?
>2) The special characters of #, (, >,) in the column names are not
>displayed correctly.
>
>Any suggestions?
>
>Thanks,
>Gang
>
>__
>R-help@r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.

[[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 http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Display a dataframe

2014-07-04 Thread Gang Chen
Perfect! Thanks a lot!

On July 3, 2014 5:10:02 PM EDT, David L Carlson  wrote:
>Not elegant, but it works:
>
>> term <- dimnames(dd)[[1]]
>> dd1 <- dd
>> dimnames(dd1)[[1]] <- rep("", 6)
>> dd2 <- capture.output(dd1)
>> cat(paste(dd2, "   ", c("Term", term)), fill=48)
> # Chisq DF   Pr(>Chisq) Term 
> 153.0216306  1 7.578366e-35 # Sex 
>  13.3696538  1 5.114571e-04 # Volume 
>   0.8476713  1 7.144239e-01 # Weight 
>   1.2196050  1 5.388764e-01 # Intensity 
>   2.6349405  1 2.090719e-01 # ISO 
>   6.0507714  1 2.780045e-02 # SEC
>
>
>David Carlson
>
>-Original Message-
>From: r-help-boun...@r-project.org
>[mailto:r-help-boun...@r-project.org] On Behalf Of Gang Chen
>Sent: Thursday, July 3, 2014 2:56 PM
>To: r-help
>Subject: [R] Display a dataframe
>
>I have a matrix 'dd' defined as below:
>
>dd <- t(matrix(c(153.0216306,  1, 7.578366e-35,
>13.3696538,  1, 5.114571e-04,
>0.8476713,  1, 7.144239e-01,
>1.2196050,  1, 5.388764e-01,
>2.6349405,  1, 2.090719e-01,
>6.0507714,  1, 2.780045e-02), nrow=3, ncol=6))
>dimnames(dd)[[2]] <- c('# Chisq', 'DF', 'Pr(>Chisq)')
>dimnames(dd)[[1]] <- c('# Sex', '# Volume', '# Weight', '# Intensity',
>'# ISO', '# SEC')
>
>'dd' displays as the following:
>
># Chisq DF   Pr(>Chisq)
># Sex   153.0216306  1 7.578366e-35
># Volume 13.3696538  1 5.114571e-04
># Weight  0.8476713  1 7.144239e-01
># Intensity   1.2196050  1 5.388764e-01
># ISO 2.6349405  1 2.090719e-01
># SEC 6.0507714  1 2.780045e-02
>
>I would like to display it as:
>
># Chisq   DF   Pr(>Chisq)term
>153.0216306  1 7.578366e-35# Sex
>13.3696538  1 5.114571e-04  # Volume
>0.8476713  1 7.144239e-01# Weight
>1.2196050  1 5.388764e-01# Intensity
>2.6349405  1 2.090719e-01# ISO
>6.0507714  1 2.780045e-02# SEC
>
>This is what I came up with
>
>(cc <- data.frame(data.frame(dd), term=dimnames(dd)[[1]]))
>
>   X..Chisq DF   Pr..Chisq.term
># Sex   153.0216306  1 7.578366e-35   # Sex
># Volume 13.3696538  1 5.114571e-04# Volume
># Weight  0.8476713  1 7.144239e-01# Weight
># Intensity   1.2196050  1 5.388764e-01 # Intensity
># ISO 2.6349405  1 2.090719e-01   # ISO
># SEC 6.0507714  1 2.780045e-02   # SEC
>
>But I'm not happy with the following two issues:
>
>1) How to get rid of the row names?
>2) The special characters of #, (, >,) in the column names are not
>displayed correctly.
>
>Any suggestions?
>
>Thanks,
>Gang
>
>__
>R-help@r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.

[[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 http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Display a dataframe

2014-07-03 Thread arun
Hi,
May be this helps:
nC <- max(nchar(row.names(dd)))
 term <- formatC(row.names(dd), width=-nC)
#or
 term <- sprintf("%-11s", row.names(dd))

  dd1 <- setNames(data.frame(unname(dd), term,stringsAsFactors=F), 
c(colnames(dd), formatC("term",width=-nC)))
dd1
#  # Chisq DF   Pr(>Chisq) term   
#1 153.0216306  1 7.578366e-35 # Sex  
#2  13.3696538  1 5.114571e-04 # Volume   
#3   0.8476713  1 7.144239e-01 # Weight   
#4   1.2196050  1 5.388764e-01 # Intensity
#5   2.6349405  1 2.090719e-01 # ISO  
#6   6.0507714  1 2.780045e-02 # SEC  

A.K.





On Thursday, July 3, 2014 3:57 PM, Gang Chen  wrote:
I have a matrix 'dd' defined as below:

dd <- t(matrix(c(153.0216306,  1, 7.578366e-35,
13.3696538,  1, 5.114571e-04,
0.8476713,  1, 7.144239e-01,
1.2196050,  1, 5.388764e-01,
2.6349405,  1, 2.090719e-01,
6.0507714,  1, 2.780045e-02), nrow=3, ncol=6))
dimnames(dd)[[2]] <- c('# Chisq', 'DF', 'Pr(>Chisq)')
dimnames(dd)[[1]] <- c('# Sex', '# Volume', '# Weight', '# Intensity',
'# ISO', '# SEC')

'dd' displays as the following:

                # Chisq DF   Pr(>Chisq)
# Sex       153.0216306  1 7.578366e-35
# Volume     13.3696538  1 5.114571e-04
# Weight      0.8476713  1 7.144239e-01
# Intensity   1.2196050  1 5.388764e-01
# ISO         2.6349405  1 2.090719e-01
# SEC         6.0507714  1 2.780045e-02

I would like to display it as:

# Chisq               DF   Pr(>Chisq)                        term
153.0216306  1 7.578366e-35                            # Sex
13.3696538  1 5.114571e-04                              # Volume
0.8476713  1 7.144239e-01                                # Weight
1.2196050  1 5.388764e-01                                # Intensity
2.6349405  1 2.090719e-01                                # ISO
6.0507714  1 2.780045e-02                                # SEC

This is what I came up with

(cc <- data.frame(data.frame(dd), term=dimnames(dd)[[1]]))

               X..Chisq DF   Pr..Chisq.        term
# Sex       153.0216306  1 7.578366e-35       # Sex
# Volume     13.3696538  1 5.114571e-04    # Volume
# Weight      0.8476713  1 7.144239e-01    # Weight
# Intensity   1.2196050  1 5.388764e-01 # Intensity
# ISO         2.6349405  1 2.090719e-01       # ISO
# SEC         6.0507714  1 2.780045e-02       # SEC

But I'm not happy with the following two issues:

1) How to get rid of the row names?
2) The special characters of #, (, >,) in the column names are not
displayed correctly.

Any suggestions?

Thanks,
Gang

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Display a dataframe

2014-07-03 Thread David L Carlson
Not elegant, but it works:

> term <- dimnames(dd)[[1]]
> dd1 <- dd
> dimnames(dd1)[[1]] <- rep("", 6)
> dd2 <- capture.output(dd1)
> cat(paste(dd2, "   ", c("Term", term)), fill=48)
 # Chisq DF   Pr(>Chisq) Term 
 153.0216306  1 7.578366e-35 # Sex 
  13.3696538  1 5.114571e-04 # Volume 
   0.8476713  1 7.144239e-01 # Weight 
   1.2196050  1 5.388764e-01 # Intensity 
   2.6349405  1 2.090719e-01 # ISO 
   6.0507714  1 2.780045e-02 # SEC


David Carlson

-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On 
Behalf Of Gang Chen
Sent: Thursday, July 3, 2014 2:56 PM
To: r-help
Subject: [R] Display a dataframe

I have a matrix 'dd' defined as below:

dd <- t(matrix(c(153.0216306,  1, 7.578366e-35,
13.3696538,  1, 5.114571e-04,
0.8476713,  1, 7.144239e-01,
1.2196050,  1, 5.388764e-01,
2.6349405,  1, 2.090719e-01,
6.0507714,  1, 2.780045e-02), nrow=3, ncol=6))
dimnames(dd)[[2]] <- c('# Chisq', 'DF', 'Pr(>Chisq)')
dimnames(dd)[[1]] <- c('# Sex', '# Volume', '# Weight', '# Intensity',
'# ISO', '# SEC')

'dd' displays as the following:

# Chisq DF   Pr(>Chisq)
# Sex   153.0216306  1 7.578366e-35
# Volume 13.3696538  1 5.114571e-04
# Weight  0.8476713  1 7.144239e-01
# Intensity   1.2196050  1 5.388764e-01
# ISO 2.6349405  1 2.090719e-01
# SEC 6.0507714  1 2.780045e-02

I would like to display it as:

# Chisq   DF   Pr(>Chisq)term
153.0216306  1 7.578366e-35# Sex
13.3696538  1 5.114571e-04  # Volume
0.8476713  1 7.144239e-01# Weight
1.2196050  1 5.388764e-01# Intensity
2.6349405  1 2.090719e-01# ISO
6.0507714  1 2.780045e-02# SEC

This is what I came up with

(cc <- data.frame(data.frame(dd), term=dimnames(dd)[[1]]))

   X..Chisq DF   Pr..Chisq.term
# Sex   153.0216306  1 7.578366e-35   # Sex
# Volume 13.3696538  1 5.114571e-04# Volume
# Weight  0.8476713  1 7.144239e-01# Weight
# Intensity   1.2196050  1 5.388764e-01 # Intensity
# ISO 2.6349405  1 2.090719e-01   # ISO
# SEC 6.0507714  1 2.780045e-02   # SEC

But I'm not happy with the following two issues:

1) How to get rid of the row names?
2) The special characters of #, (, >,) in the column names are not
displayed correctly.

Any suggestions?

Thanks,
Gang

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Display a DataFrame in a data grid

2011-08-08 Thread Joshua Wiley
Hi Ed,

In addition to Michael's suggestion (which is probably what you want),
consider something like:

head(mtcars)
tail(mtcars)

or for just the corners, you could try a little function like this:

corner <- function(x, n = 3L, ...) {
  stopifnot(length(n) == 1L)
  if (n < 0L || n * 2 > min(dim(x))) n <- floor(min(dim(x))/2)
  x[c(1:n, (nrow(x) - n):nrow(x)), c(1:n, (ncol(x) - n):ncol(x))]
}

corner(mtcars)
corner(mtcars, n = 5)

This extracts a n x n matrix from each corner.

Cheers,

Josh

On Mon, Aug 8, 2011 at 9:52 AM, R. Michael Weylandt
 wrote:
> Welcome to the dark-side!
>
> I think the View() command will do what you want. This brings up a new
> window that displays the data spreadsheet style and you can scroll wherever
> you wish. If you want to do work in your command window, the head() and
> tail() commands will be of help to you.
>
> If you are just getting started with R, I'd recommend the RStudio IDE, which
> will let you pull up variables directly by clicking on their workspace
> entry.
>
> Feel free to back get in touch if this doesn't work for you.
>
> Michael Weylandt
>
> PS - In R speak, it's data.frame -- you probably knew that already, but
> that's one of those little mistakes that can be oh so frustrating to find,
> so I thought I'd just make sure.
>
> On Mon, Aug 8, 2011 at 12:43 PM, Ed Heaton wrote:
>
>> Hi, all;
>>
>>
>>
>> I'm new to R.  Have been a SAS developer for over 20 years.
>>
>>
>>
>> Whenever I create a new table - you call them dataFrame objects - or modify
>> an existing one, I like to open the table in a grid with horizontal and
>> vertical sliders so that I can scan across the table and (especially) look
>> at all four corners.  If I made a gross error, it often shows up when I
>> look
>> at the corners of the table.
>>
>>
>>
>> I just can't seem to find how to evoke such a display.  Can anybody help me
>> here?
>>
>>
>>
>> Ed
>>
>>
>>
>> Ed Heaton
>> Project Manager, Sr. SAS Developer
>> Data and Analytic Solutions, Inc.
>> 3057 Nutley Street, #602
>> Fairfax, VA 22031
>> Office: 301-520-7414
>> Fax: 703-991-8182
>>   ehea...@dasconsultants.com
>>   www.dasconsultants.com
>> CMMI ML-2, SBA 8(a) & SDB, WBE (WBENC), MBE (VA & MD)
>>
>>
>>
>>
>>        [[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
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>
>        [[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 http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Joshua Wiley
Ph.D. Student, Health Psychology
Programmer Analyst II, ATS Statistical Consulting Group
University of California, Los Angeles
https://joshuawiley.com/

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Display a DataFrame in a data grid

2011-08-08 Thread R. Michael Weylandt
Welcome to the dark-side!

I think the View() command will do what you want. This brings up a new
window that displays the data spreadsheet style and you can scroll wherever
you wish. If you want to do work in your command window, the head() and
tail() commands will be of help to you.

If you are just getting started with R, I'd recommend the RStudio IDE, which
will let you pull up variables directly by clicking on their workspace
entry.

Feel free to back get in touch if this doesn't work for you.

Michael Weylandt

PS - In R speak, it's data.frame -- you probably knew that already, but
that's one of those little mistakes that can be oh so frustrating to find,
so I thought I'd just make sure.

On Mon, Aug 8, 2011 at 12:43 PM, Ed Heaton wrote:

> Hi, all;
>
>
>
> I'm new to R.  Have been a SAS developer for over 20 years.
>
>
>
> Whenever I create a new table - you call them dataFrame objects - or modify
> an existing one, I like to open the table in a grid with horizontal and
> vertical sliders so that I can scan across the table and (especially) look
> at all four corners.  If I made a gross error, it often shows up when I
> look
> at the corners of the table.
>
>
>
> I just can't seem to find how to evoke such a display.  Can anybody help me
> here?
>
>
>
> Ed
>
>
>
> Ed Heaton
> Project Manager, Sr. SAS Developer
> Data and Analytic Solutions, Inc.
> 3057 Nutley Street, #602
> Fairfax, VA 22031
> Office: 301-520-7414
> Fax: 703-991-8182
>   ehea...@dasconsultants.com
>   www.dasconsultants.com
> CMMI ML-2, SBA 8(a) & SDB, WBE (WBENC), MBE (VA & MD)
>
>
>
>
>[[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
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[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 http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.