Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R function read.DIF() and read.table() #38

Open
jmaccherone opened this issue May 9, 2013 · 2 comments
Open

R function read.DIF() and read.table() #38

jmaccherone opened this issue May 9, 2013 · 2 comments

Comments

@jmaccherone
Copy link
Collaborator

Used to import data.
read.DIF() for Windows machines, read.table() for Macs.
Can use with clipboard and assign to data frame as a way to import.
variableName <- read.DIF("clipboard", transpose=TRUE)
variableName <- read.table(pipe("pbpaste"))

@lmaccherone
Copy link
Owner

We need some way to import data from files. We'll also need ways to import from http GET but we'll do that under a different issue.

@lmaccherone
Copy link
Owner

If the file is a csv file then we should import into an Array of Maps (look at the "table" for the book assignment).

So, if the user specifies $myTable = read.table('mydata.csv') and mydata.csv contains:

"column1", "column2", "column3"
1, "my name", true
10, "another name", false

Then we want it to come in as an Array of Maps

$myTable = [
  {column1: 1, column2: "my name", column3: true},
  {column1: 10, column2: "another name", column3: false}
]

Let's use node module csv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants