Giter Site home page Giter Site logo

Comments (3)

mkearney avatar mkearney commented on August 24, 2024

They should be printed as to distinguish between the string "NA." Is that not what's happening?

from rtweet.

emillykkejensen avatar emillykkejensen commented on August 24, 2024

For all other columns but those 3 (and for the github version mentions_user_id, mentions_screen_name, hashtags, urls and coordinates).

from rtweet.

mkearney avatar mkearney commented on August 24, 2024

This may not be so bad. I should update the docs either way, but those variables are recursive, and storing them as a matrix has advantages.

(r code below included b/c I was curious about NA printing and found this informative)

> dbl <- matrix(1:9, 3, 3)
> dbl
     [,1] [,2] [,3]
[1,]    1    4    7
[2,]    2    5    8
[3,]    3    6    9
> data.frame(dbl)
  X1 X2 X3
1  1  4  7
2  2  5  8
3  3  6  9
> chr <- matrix(letters[1:9], 3, 3)
> chr
     [,1] [,2] [,3]
[1,] "a"  "d"  "g" 
[2,] "b"  "e"  "h" 
[3,] "c"  "f"  "i" 
> data.frame(chr)
  X1 X2 X3
1  a  d  g
2  b  e  h
3  c  f  i
> dbl_na <- matrix(NA_real_, 3, 3)
> dbl_na
     [,1] [,2] [,3]
[1,]   NA   NA   NA
[2,]   NA   NA   NA
[3,]   NA   NA   NA
> data.frame(dbl_na)
  X1 X2 X3
1 NA NA NA
2 NA NA NA
3 NA NA NA
> chr_na <- matrix(NA_character_, 3, 3)
> chr_na
     [,1] [,2] [,3]
[1,] NA   NA   NA  
[2,] NA   NA   NA  
[3,] NA   NA   NA  
> data.frame(chr_na)
    X1   X2   X3
1 <NA> <NA> <NA>
2 <NA> <NA> <NA>
3 <NA> <NA> <NA>

from rtweet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.