it returns another "tibble" instead of a vector. You can use RENAME to rename files or directories that are external to a SAS session as well as members of a SAS data library. Like most people, you were probably not aware that when imported using this feature, your "File" is not a data frame, hence indexing does not work properly i.e. Would it be possible at least to give an option to import data as a data frame? You could still make tibbles the default, but at least people would be aware what class it This is the reason for your problem. Hello How can I rename columns names of was data set by the following way: Rename 1st column to 'Id' Rename 2nd column to 'City' Rename 3rd column to 'country '. Of course it is always possible to convert the tibble to a data frame after import, but that rather destroys the convenience of this feature. I am connecting to UNIX SAS using FILENAME SFTP method, but I am getting the following issue: NOTE: remote:<>/Testexcel.And make sure your other editor is registered in Windows as the default 'Open with' action for SAS programs. Simply right-click on the program node in your process flow, select Open Open < program name > with Windows Default.I am sure that Camilla is not the first, and will not be the last to be tripped up by this. The RENAME statement in the data step just changes the name that the variable will have in the output data set. You can launch your program into your other favorite editor from SAS Enterprise Guide. It is particularly insidious since tibbles appear the same as data frames in the environment pane, and this support article does not even mention that the data is imported as a tibble. Currently it imports files as one of these "tibble" things, which screws up a lot of legacy code and even some base R functions, often creating a debugging nightmare. The Import Dataset dropdown is a potentially very convenient feature, but would be much more useful if it gave the option to read csv files etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |