Skip to content

Commit

Permalink
README work
Browse files Browse the repository at this point in the history
  • Loading branch information
PMassicotte committed Feb 4, 2016
1 parent 9a16642 commit 0816747
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ res <- eem_extract(eems, 1:3, remove = TRUE)
folder <- system.file("extdata/cary/eem", package = "eemR")
eem <- eem_read(folder)
names(eem)
eem_sample_names(eem)
names(eem) <- c("A", "B", "C")
eem_sample_names(eem) <- c("A", "B", "C")
names(eem)
eem_sample_names(eem)
```


Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,12 @@ Changing sample names
folder <- system.file("extdata/cary/eem", package = "eemR")
eem <- eem_read(folder)

names(eem)
#> NULL
eem_sample_names(eem)
#> [1] "sample1" "sample2" "sample3"

names(eem) <- c("A", "B", "C")
eem_sample_names(eem) <- c("A", "B", "C")

names(eem)
eem_sample_names(eem)
#> [1] "A" "B" "C"
```

Expand Down Expand Up @@ -312,11 +312,11 @@ eem <- eem_read(folder)
filename <- paste(tempfile(), ".mat", sep = "")

eem_export_matlab(filename, eem)
#> Successfully exported 3 EEMs to /tmp/Rtmp9ArEIP/file4c5a4a6ee6e8.mat.
#> Successfully exported 3 EEMs to /tmp/RtmpJDHRgA/file51053a6bcab2.mat.

## It is also possible to export more than one object at time
eem_export_matlab(filename, eem, eem)
#> Successfully exported 6 EEMs to /tmp/Rtmp9ArEIP/file4c5a4a6ee6e8.mat.
#> Successfully exported 6 EEMs to /tmp/RtmpJDHRgA/file51053a6bcab2.mat.
```

Note that the name of the structure generated by the function will be `OriginalData` to *complement* with PARAFAC standard. Then, the importation into Matlab is made easy using the `load()` function. Please note that there is a bug preventing to keep matrix dimension. Simply use the `reshape()` function after you exported data.
Expand Down

0 comments on commit 0816747

Please sign in to comment.