Learn R Programming

OpenRepGrid (version 0.1.12)

saveAsTxt: Save grid in a text file (txt).

Description

saveAsTxt will save the grid as a .txt file in format used by OpenRepGrid. This file format can also easily be edited by hand (see importTxt for a description). The funtion will open an interactive dialog box to let the user enter a filename if no file argument is supplied in the function call.

Usage

saveAsTxt(x, file = NA)

Arguments

x

repgrid object.

file

Filename to save the grid to. The name should have the suffix .txt. If the function is called without specifying this argumnet a dialog box is opened.

Value

Invisibly returns the name of the file.

See Also

importTxt

Examples

Run this code
# NOT RUN {
 x <- randomGrid()
 saveAsTxt(x, "random.txt")

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab