Learn R Programming

translateSPSS2R (version 1.0.0)

Toolset for Translating SPSS-Syntax to R-Code

Description

Package with translated commands of SPSS. The usage is oriented on the handling of SPSS-Syntax. Mainly the package has two purposes: It facilitates SPSS-Users to change over to R and aids migration projects from SPSS to R.

Copy Link

Version

Install

install.packages('translateSPSS2R')

Monthly Downloads

3

Version

1.0.0

License

GPL-3

Maintainer

Andreas Wygrabek

Last Published

June 23rd, 2015

Functions in translateSPSS2R (1.0.0)

attributesBackup

Stores Attributes
computeUpcase

Convert lower-case letters to upper-case
computeArtan

Computes the arc-tan.
computeXdate_date

Extracts the date out of a date string.
computeCtime_minutes

Calculates the difference between two dates in minutes
computeChar_lpad

Expand strings on the left
computeDate_yrday

Creates a date with the format year/yearday
computeTime_hms

Creates a date with the format Hour-Minute-Second
applyAttributeDemerge

Merges Attributdata
computeArsin

Computes the arc-sine.
span

Indicates range of varlist
xpssEndIf

Ends a DO IF - END IF subset
computeChar_length

Length of a string in characters
computeXdate_jday

Calculates the date of year on basis of a given date
applyDateCheck

Apply Date Checks
computeChar_index

Locate position of first occurence of a pattern
applyMetaCheck

Apply Meta Checks
enter

enter
computeCfvar

Computes the coefficient of variation
xpssFilter

Creates a FILTER subset
computeCtime_hours

Calculates the difference between two dates in hours
computeVariance

Variance
xpssCount

Counts frequencies of specific observations
xpssRecode

Recodes variables
computeAbs

Computes the absolute value.
computeMax

Computes the Maxima
computeConcat

computeConcat (x, sep = "")
computeExp

Computes the exponential
computeChar_mblen

Byte per character or sign
xpssMissingValues

Defines missing values for variables.
xpssAny

Selecting cases by condition
fromXPSS

Sample dataset
computeDate_wkyr

Creates a date with the format year/calendar week
computeSin

Computes the sine function
as.xpssFrame

Coerces data.frames to xpssFrame objects
computeCtime_seconds

Calculates the difference between two dates in seconds
computeDate_moyr

Creates a date with the format month-year
computeStrunc

Truncating strings
computeXdate_month

Extracts the month component on basis of a given date
computeNmiss

Displays the amount of missing values in variables.
xpssSample

Creates a sample
computeDate_qyr

Creates a date with the format year/quarter
xpssCasenum

Sequential numbering of cases
computeChar_substr

creates a substring
xpssRenameVariables

Renaming Variables
computeCos

Computes the cosinus.
xpssVariableLabels

Modifies variable labels
computeDate_dmy

Creates a date with the format day-month-year
computeSysmis

Displays if a variable contains system-missing values
computeMean

Atithmetic Mean
computeChar_rindex

Locate position of last occurence of a pattern
xpssAddValueLabels

Modifies value labels
xpssRegression

Calculates a linear Regression
xpssFrequencies

Simple descriptive statistics
computeReplace

Replace matched pattern in a string
xpssJDate

Days since 14. Oct 1582
computeMiss

Displays whether a variable contains missing values
xpssMeans

Simple descriptive statistics
computeLag

Moves cases of variables
computeLength

Number of bytes in a string
computeLn

Computes the logarithm naturalis
computeMedian

Median Value
computeSqrt

Computes the square root
computeXdate_hour

Extracts the hour value out of a given date
xpssDoIf

Creates a DO IF - END IF subset
xpssSelectIf

Creates a subset of cases
computeRnd

Rounds values.
computeMod

Returns the remainder of a division.
computeNvalid

Displays the amount of valid values in variables.
computeXdate_year

Extracts the year on basis of a given date
computeLngamma

Computes the logarithm of the gamma function
computeLtrim

Trims string on left side
xpssDescriptives

Simple descriptive statistics
computeChar_rpad

Expand strings on the right
xpssSplitFileOff

Set the data split off
computeValue

Displays the value of the variable cases.
computeXdate_second

Extracts the second on basis of a given date
translateSPSS2R-package

Documentation
xpssFrame

Creates a xpssFrame Object
computeSd

Standard Deviation
computeTime_days

Calculates the number of passed hours on basis of the given days
computeLower

Convert upper-case letters to lower-case
xpssTime

Minutes since 14. Oct 1582
xpssString

Creates string variables
computeMin

Minima
xpssElseIf

Creates a subcondition within a DO IF - END IF subset
xpssCorrelations

Pearson product-moment correlations
xpssNofCases

Selects the first n rows of the dataset
xpssSplitFile

Splits the data.frame into pieces by a factor
computeXdate_mday

Extracts the date of month on basis of a given date
computeLg10

Computes the logarithm base 10
computeXdate_wkday

Calcualtes the day of week on basis of a given date
xpssCompute

Creates data
xpssDeleteVariables

Deletes variables from dataset
xpssFilterOff

Ends a FILTER subset
xpssDate11

Todays date
computeXdate_tday

Calculates the difference of days between the entered date and October 14, 1582.
computeRtrim

Trims string on right side
xpssVarsToCases

Transforms variables to cases
computeXdate_week

Calcualtes the calendar week on basis of a given date
xpssValueLabels

Modifies value labels
xpssList

Displays the content of variables.
applyAttributes

Apply stored attributes
computeXdate_minute

Extracts the minute component on basis of a given date
xpssNumeric

Creates numeric variables
xpssFlip

Flips variables
xpssTemporary

Temporary modification of the data
xpssDate

Today's date
computeDate_mdy

Creates a date with the format month-day-year
xpssSortVariables

Sorting variables
xpssTtest

Performs a T-Test
xpssSortCases

Sorts data ascending or descending order
computeCtime_days

Calculates the difference of time between two dates in days
computeXdate_time

Extracts the time componente on basis of a given date
computeXdate_quarter

Calculates the quarter on basis of a given date
computeNtrim

Return the input data without removing trailing blanks