Open TanyaS08 opened 2 months ago
This is sort of the first pass I made
action | R | Julia |
---|---|---|
checking current working directory | getwd() | pwd() |
install a package | install.package(PACKAGE_NAME) | Pkg.add(PACKAGE_NAME) ] add PACKAGE_NAME |
call/import a package | library(PACKAGE_NAME) | using PACKAGE_NAME |
resolving naming conflicts (functions from different packages with the same name) | PACKAGE_NAME::function() | PACKAGE_NAME.function() |
calling column from dataframe | df\$COL_NAME | df.COL_NAME |
calling the first elements of a dataframe | head() | first() |
calling the last elements of a dataframe | tail() | last() |
I think it might be nice to collate some of the differences between R and Julia as a little cheatsheet (read table) of sorts? Might be a cleaner way to show things as opposed to doing it in text.